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