Class TokenType

    • Field Detail

      • theInstance

        public static final TokenType theInstance
    • Constructor Detail

      • TokenType

        protected TokenType​(String typeName,
                            boolean isAlwaysValid)
    • Method Detail

      • 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