Class CBuiltinLeafInfo

    • Method Detail

      • idUse

        public ID idUse()
        Description copied from interface: TypeUse
        Whether the referenced type (individual item type in case of collection) is ID/IDREF.

        ID is a property of a relationship. When a bean Foo has an ID property called 'bar' whose type is String, Foo isn't an ID, String isn't an ID, but this relationship is an ID (in the sense that Foo uses this String as an ID.)

        The same thing can be said with IDREF. When Foo refers to Bar by means of IDREF, neither Foo nor Bar is IDREF.

        That's why we have this method in TypeUse.

        Specified by:
        idUse in interface TypeUse
      • getLocator

        public org.xml.sax.Locator getLocator()
        Description copied from interface: CCustomizable
        Gets the source location in the schema from which this model component is created.
        Specified by:
        getLocator in interface CCustomizable
        Returns:
        never null.
      • getSchemaComponent

        public final XSComponent getSchemaComponent()
        Description copied from interface: CCustomizable
        If this model object is built from XML Schema, this property returns a schema component from which the model is built.
        Specified by:
        getSchemaComponent in interface CCustomizable
        Returns:
        null if the model is built from sources other than XML Schema (such as DTD.)
      • makeAdapted

        public final TypeUse makeAdapted​(java.lang.Class<? extends javax.xml.bind.annotation.adapters.XmlAdapter> adapter,
                                         boolean copy)
        Creates a TypeUse that represents an adapted use of this CBuiltinLeafInfo.
      • makeMimeTyped

        public final TypeUse makeMimeTyped​(javax.activation.MimeType mt)
        Creates a TypeUse that represents a MIME-type assocaited version of this CBuiltinLeafInfo.
      • isElement

        public final boolean isElement()
        Deprecated.
        always return false at this level.
        Description copied from interface: MaybeElement
        If the class is bound to an element, return true.

        Note that when this is true, the class is bound to both an element and a type.

        Specified by:
        isElement in interface MaybeElement<NType,​NClass>
      • getType

        public NType getType()
        A reference to the representation of the type.
        Specified by:
        getType in interface TypeInfo<NType,​NClass>
        Returns:
        always non-null.
      • getTypeNames

        public final javax.xml.namespace.QName[] getTypeNames()
        Returns all the type names recognized by this bean info.
        Returns:
        do not modify the returned array.
      • canBeReferencedByIDREF

        public final boolean canBeReferencedByIDREF()
        Deprecated.
        why are you calling a method whose return value is always known?
        Leaf-type cannot be referenced from IDREF.
        Specified by:
        canBeReferencedByIDREF in interface TypeInfo<NType,​NClass>
      • getTypeName

        public javax.xml.namespace.QName getTypeName()
        Description copied from interface: NonElement
        Gets the primary XML type ANYTYPE_NAME of the class.

        A Java type can be mapped to multiple XML types, but one of them is considered "primary" and used when we generate a schema.

        Specified by:
        getTypeName in interface BuiltinLeafInfo<NType,​NClass>
        Specified by:
        getTypeName in interface NonElement<NType,​NClass>
        Returns:
        null if the object doesn't have an explicit type ANYTYPE_NAME (AKA anonymous.)
      • getLocation

        public Location getLocation()
        Description copied from interface: Locatable
        Gets the location object that this object points to. This operation could be inefficient and costly.
        Specified by:
        getLocation in interface Locatable