Class NCName
- java.lang.Object
-
- org.apache.axis2.databinding.types.NormalizedString
-
- org.apache.axis2.databinding.types.Token
-
- org.apache.axis2.databinding.types.Name
-
- org.apache.axis2.databinding.types.NCName
-
- All Implemented Interfaces:
Serializable
public class NCName extends Name
Custom class for supporting XSD data type NCName NCName represents XML "non-colonized" Names The base type of NCName is Name.- See Also:
- XML Schema 3.3.7, NCName Production, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(String stValue)
validate the value against the xsd definitionvoid
setValue(String stValue)
validates the data and sets the value for the object.-
Methods inherited from class org.apache.axis2.databinding.types.NormalizedString
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
NCName
public NCName()
-
NCName
public NCName(String stValue) throws IllegalArgumentException
ctor for NCName- Throws:
IllegalArgumentException
- will be thrown if validation fails
-
-
Method Detail
-
setValue
public void setValue(String stValue) throws IllegalArgumentException
validates the data and sets the value for the object.- Overrides:
setValue
in className
- Parameters:
stValue
- String value- Throws:
IllegalArgumentException
- if invalid format
-
isValid
public static boolean isValid(String stValue)
validate the value against the xsd definition NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
-
-