public class NamingUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateCategoryNameFromPattern(Container parent)
This procedure generates the name for a record category based on the naming pattern
specified.
|
static java.lang.String |
generateFolderNameFromPattern(RecordContainer parent)
This procedure generates the name for a record folder based on the naming pattern
specified.
|
static java.lang.String |
generateNextVolumeName(RecordVolumeContainer parent)
This procedure generates the next name for a record volume based on the parent container specified.
|
static java.lang.String |
generateRecordNameFromPattern(Container parent)
This procedure generates the name for a record based on the naming pattern
specified.
|
static NamingPatternSequence |
getNamingPatternSequence(Container parent)
This procedure will retrieve a naming pattern sequence object associcated with
a container
|
static java.lang.Boolean |
isCategoryNameConsistentWithPattern(java.lang.String proposedName,
Container parent)
This procedure validates the proposed name for a record category based on the naming pattern.
|
static java.lang.Boolean |
isFolderNameConsistentWithPattern(java.lang.String proposedName,
Container parent)
This procedure validates the name for a record folder based on the naming pattern.
|
static java.lang.Boolean |
isNamingPatternValid(java.lang.String namingPattern)
This procedure validates whether a naming pattern is valid.
|
static java.lang.Boolean |
isRecordNameConsistentWithPattern(java.lang.String proposedName,
Container parent)
This procedure validates a proposed name for a record based on the naming pattern
for its container.
|
public static java.lang.String generateNextVolumeName(RecordVolumeContainer parent)
parent
- the RecordVolumeContainer
parent of the record volume that will have its name generated.String
generated for the next volume based on the given parent container.public static java.lang.String generateRecordNameFromPattern(Container parent)
parent
- the Container
parent of the record being created.
This entry cannot be null
.String
generated based on naming pattern and macro substitution.public static java.lang.String generateCategoryNameFromPattern(Container parent)
parent
- the Container
parent of the record category being created.
This entry cannot be null
.String
generated based on naming pattern and macro substitution.public static java.lang.String generateFolderNameFromPattern(RecordContainer parent)
parent
- the Container
parent of the record folder being created.
This entry cannot be null
.String
generated based on naming pattern and macro substitution.public static java.lang.Boolean isRecordNameConsistentWithPattern(java.lang.String proposedName, Container parent)
proposedName
- the proposed name String
for the record that is checked against the pattern.parent
- the Container
parent of the record being created.
This entry cannot be null
.Boolean.TRUE
if the name is consistent with the pattern OR if no pattern applies,
Boolean.FALSE
otherwise.public static java.lang.Boolean isCategoryNameConsistentWithPattern(java.lang.String proposedName, Container parent)
proposedName
- the proposed name String
for the record category to validate against the pattern.parent
- the Container
parent of the record category being created.
This entry cannot be null
.Boolean.TRUE
if the name is consistent with the pattern or if no pattern applies,
Boolean.FALSE
otherwise.public static java.lang.Boolean isFolderNameConsistentWithPattern(java.lang.String proposedName, Container parent)
proposedName
- The proposed name String
for the record folder to validate against the pattern.parent
- The parent Container
of the record folder being created.
This entry cannot be null
.Boolean.TRUE
if the name is consistent with the pattern OR if no pattern applies,
Boolean.FALSE
otherwise.public static java.lang.Boolean isNamingPatternValid(java.lang.String namingPattern)
namingPattern
- The naming pattern to validateBoolean.TRUE
if the specified pattern is valid,
Boolean.FALSE
otherwise.public static NamingPatternSequence getNamingPatternSequence(Container parent)
parent
- - retrieve the object associated with this container© Copyright IBM Corp. 2010, 2013. All Rights Reserved.