Class BuiltinLeafInfoImpl<TypeT,​ClassDeclT>

    • Constructor Detail

      • BuiltinLeafInfoImpl

        protected BuiltinLeafInfoImpl​(TypeT type,
                                      javax.xml.namespace.QName... typeNames)
    • Method Detail

      • 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.
      • 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<TypeT,​ClassDeclT>
      • createLeaves

        public static <TypeT,​ClassDeclT> java.util.Map<TypeT,​BuiltinLeafInfoImpl<TypeT,​ClassDeclT>> createLeaves​(Navigator<TypeT,​ClassDeclT,​?,​?> nav)
        Creates all the BuiltinLeafInfoImpls as specified in the spec. LeafInfos are all defined by the spec.
      • getType

        public TypeT getType()
        A reference to the representation of the type.
        Specified by:
        getType in interface TypeInfo<TypeT,​ClassDeclT>
        Returns:
        always non-null.
      • 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<TypeT,​ClassDeclT>
      • 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 NonElement<TypeT,​ClassDeclT>
        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
      • isSimpleType

        public boolean isSimpleType()
        Description copied from interface: NonElement
        Returns true if this NonElement maps to text in XML, without any attribute nor child elements.
        Specified by:
        isSimpleType in interface NonElement<TypeT,​ClassDeclT>
      • toString

        public java.lang.String toString()
        Description copied from interface: Location
        Returns a human-readable string that represents this position.
        Specified by:
        toString in interface Location
        Overrides:
        toString in class java.lang.Object
        Returns:
        never null.