Class TokenType

All Implemented Interfaces:
DatabindableDatatype, Discrete, XSDatatype, Serializable, org.relaxng.datatype.Datatype
Direct Known Subclasses:
LanguageType, NameType, NcnameType, NmtokenType

public class TokenType extends StringType
"token" type. type of the value object is java.lang.String. See http://www.w3.org/TR/xmlschema-2/#token for the spec
See Also:
  • Field Details

    • theInstance

      public static final TokenType theInstance
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • TokenType

      protected TokenType(String typeName, boolean isAlwaysValid)
  • Method Details

    • getBaseType

      public XSDatatype getBaseType()
      Description copied from interface: XSDatatype
      gets the base type of this type. This method returns null if this object represents the simple ur-type.

      This method is intended to capture the semantics of the base type definition property of the simple type component, but there is an important difference.

      Specifically, if you derive a type D from another type B, then calling D.getBaseType() does not necessarily return B. Instead, it may return an intermediate object (that represents a facet). Calling the getBaseType method recursively will eventually return B.

      Specified by:
      getBaseType in interface XSDatatype
      Overrides:
      getBaseType in class StringType