org.apache.axis.types

Class NCName

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.

Author: Chris Haddad

See Also: XML Schema 3.3.7 NCName Production

Constructor Summary
NCName()
NCName(String stValue)
ctor for NCName
Method Summary
static booleanisValid(String stValue)
validate the value against the xsd definition NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
voidsetValue(String stValue)
validates the data and sets the value for the object.

Constructor Detail

NCName

public NCName()

NCName

public NCName(String stValue)
ctor for NCName

Throws: IllegalArgumentException will be thrown if validation fails

Method Detail

isValid

public static boolean isValid(String stValue)
validate the value against the xsd definition NCName ::= (Letter | '_') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender

setValue

public void setValue(String stValue)
validates the data and sets the value for the object.

Parameters: stValue String value

Throws: IllegalArgumentException if invalid format

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.