|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.namedobject.IDVerifier
public class IDVerifier
This class contains several helper methods that check the validity of BaseID instances.
A BaseID is considered valid only if all of the following conditions are met:
Field Summary | |
---|---|
static int |
ALL
The result of a performCheck signifying that a character (other than
the first character) contained a character that was a space. |
static int |
CONTAINS_INVALID_CHARACTER
The result of a performCheck signifying that a character (other than
the first character) contained a character that wasn't a letter, digit, underscore,
space, or delimiter. |
static int |
CONTAINS_SPACE
The result of a performCheck signifying that a character (other than
the first character) contained a character that was a space. |
static char |
DELIMITER_CHARACTER
The private character (in the form of char) that delimits the atomic components of the name |
static int |
FIRST_CHARACTER_IS_NOT_A_LETTER
The result of a performCheck signifying that the first character of the
full name is not a letter. |
static int |
NONE
The result of a performCheck signifying that the full name is valid. |
static char |
UNDERSCORE_CHARACTER
The underscore character allowed in full names anywhere except for the first character. |
static int |
ZERO_LENGTH_FULL_NAME
The result of a performCheck signifying that the full name was zero-length. |
Constructor Summary | |
---|---|
IDVerifier()
|
Method Summary | |
---|---|
static boolean |
isValid(BaseID id)
Method to determine whether a BaseID has a valid full name. |
static int |
performCheck(BaseID id)
Method to determine whether a MetadataID has a valid full name, and, if not valid, to identify why it is invalid. |
static int |
performCheck(java.lang.String fullName)
|
static int |
performCheck(java.lang.String fullName,
int levels)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char UNDERSCORE_CHARACTER
public static final char DELIMITER_CHARACTER
public static final int NONE
performCheck
signifying that the full name is valid.
public static final int ZERO_LENGTH_FULL_NAME
performCheck
signifying that the full name was zero-length.
public static final int FIRST_CHARACTER_IS_NOT_A_LETTER
performCheck
signifying that the first character of the
full name is not a letter.
public static final int CONTAINS_INVALID_CHARACTER
performCheck
signifying that a character (other than
the first character) contained a character that wasn't a letter, digit, underscore,
space, or delimiter.
public static final int CONTAINS_SPACE
performCheck
signifying that a character (other than
the first character) contained a character that was a space.
public static final int ALL
performCheck
signifying that a character (other than
the first character) contained a character that was a space.
Constructor Detail |
---|
public IDVerifier()
Method Detail |
---|
public static boolean isValid(BaseID id)
id
- the BaseID that is to be checked for validity
java.lang.IllegalArgumentException
- if the BaseID reference is null.public static int performCheck(BaseID id)
id
- the BaseID that is to be checked for validity
java.lang.IllegalArgumentException
- if the MetadataID reference is null.public static int performCheck(java.lang.String fullName)
public static int performCheck(java.lang.String fullName, int levels)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |