Class DeferredSimpleType

  • All Implemented Interfaces:
    java.io.Serializable, Referable

    class DeferredSimpleType
    extends SimpleType
    Package private class to handle the case where a simple type can't be instanciated because its parent has not yet been read.
    Version:
    $Revision:
    Author:
    Arnaud Berry
    • Constructor Detail

      • DeferredSimpleType

        DeferredSimpleType()
        Creates a new default DeferredSimpleType.
      • DeferredSimpleType

        DeferredSimpleType​(java.lang.String name)
        Creates a new DeferredSimpleType
        Parameters:
        name - the name of the SimpleType.
      • DeferredSimpleType

        DeferredSimpleType​(java.lang.String name,
                           Schema schema)
        Creates a new DeferredSimpleType
        Parameters:
        name - the name of the SimpleType.
        schema - the parent Schema of the SimpleType.
    • Method Detail

      • setBaseTypeName

        public void setBaseTypeName​(java.lang.String baseTypeName)
        Sets the name of the base type that couldn't be resolved when this type was created.
      • getType

        XMLType getType()
        Package private getter of the simpleType instance.
        Overrides:
        getType in class XMLType
        Returns:
        the type this type "really" represents
      • createInstance

        protected void createInstance()
        Resolves the parents of this simple type in order to create the instance of the appropriate class deriving from simple type and fill it.
      • getStructureType

        public short getStructureType()
        Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl and ElementDecl anyway)
        Overrides:
        getStructureType in class SimpleType
        Returns:
        the type of this Schema Structure
      • getBaseTypeName

        public java.lang.String getBaseTypeName()
        Overridden to return the local copy of the base type's name we own.
        Overrides:
        getBaseTypeName in class XMLType
        Returns:
        Base type's name if available, null otherwise.
        See Also:
        XMLType.getBaseTypeName()