org.apache.axis2.databinding.types
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
- Direct Known Subclasses:
- Entities, Entity, Id, IDRef, IDRefs, NMTokens
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 |
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. |
NCName
public NCName()
NCName
public NCName(String stValue)
throws IllegalArgumentException
- ctor for NCName
- Throws:
IllegalArgumentException
- will be thrown if validation fails
setValue
public void setValue(String stValue)
throws IllegalArgumentException
- validates the data and sets the value for the object.
- Overrides:
setValue
in class Name
- 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
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.