public class Name extends Token
| Constructor and Description |
|---|
Name() |
Name(String stValue)
ctor for Name
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(String stValue)
validate the value against the xsd definition
Name ::= (Letter | '_' | ':') ( NameChar)*
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
|
void |
setValue(String stValue)
validates the data and sets the value for the object.
|
equals, hashCode, toStringpublic Name()
public Name(String stValue) throws IllegalArgumentException
IllegalArgumentException - will be thrown if validation failspublic void setValue(String stValue) throws IllegalArgumentException
setValue in class TokenstValue - String valueIllegalArgumentException - if invalid formatpublic static boolean isValid(String stValue)
Copyright © The Apache Software Foundation. All Rights Reserved.