Class 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.
Author:
Chris Haddad <chaddad@cobia.net>
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    NCName(String stValue)
    ctor for NCName
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class org.apache.axis.types.NormalizedString

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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