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, toString
public Name()
public Name(String stValue) throws IllegalArgumentException
IllegalArgumentException
- will be thrown if validation failspublic void setValue(String stValue) throws IllegalArgumentException
setValue
in class Token
stValue
- String valueIllegalArgumentException
- if invalid formatpublic static boolean isValid(String stValue)
Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.