org.apache.axis2.databinding.types
Class Name
java.lang.Object
org.apache.axis2.databinding.types.NormalizedString
org.apache.axis2.databinding.types.Token
org.apache.axis2.databinding.types.Name
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NCName
public class Name
- extends Token
Custom class for supporting XSD data type Name Name represents XML Names. The value space of Name
is the set of all strings which match the Name production of [XML 1.0 (Second Edition)]. The base
type of Name is token.
- See Also:
- XML Schema 3.3.6,
Serialized Form
Method Summary |
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. |
Name
public Name()
Name
public Name(String stValue)
throws IllegalArgumentException
- ctor for Name
- 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 Token
- Parameters:
stValue
- String value
- Throws:
IllegalArgumentException
- if invalid format
isValid
public static boolean isValid(String stValue)
- validate the value against the xsd definition Name ::= (Letter | '_' | ':') (
NameChar)* NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar |
Extender
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.