Class RuntimeBuiltinLeafInfoImpl<T>

    • Method Detail

      • getClazz

        public final Class getClazz()
        Description copied from interface: RuntimeLeafInfo
        The same as TypeInfo.getType() but returns the type as a Class.

        Note that the returned Class object does not necessarily represents a class declaration. It can be primitive types.

        Specified by:
        getClazz in interface RuntimeLeafInfo
      • getTypeName

        public QName getTypeName​(T instance)
        Description copied from interface: Transducer
        Transducers implicitly work against a single XML type, but sometimes (most notably XMLGregorianCalendar, an instance may choose different XML types.
        Specified by:
        getTypeName in interface Transducer<T>
        Returns:
        return non-null from this method allows transducers to specify the type it wants to marshal to. Most of the time this method returns null, in which case the implicitly associated type will be used.
      • getType

        public TypeT getType()
        A reference to the representation of the type.
        Specified by:
        getType in interface org.glassfish.jaxb.core.v2.model.core.TypeInfo<TypeT,​ClassDeclT>
      • canBeReferencedByIDREF

        @Deprecated
        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 org.glassfish.jaxb.core.v2.model.core.TypeInfo<TypeT,​ClassDeclT>
      • getTypeName

        public QName getTypeName()
        Specified by:
        getTypeName in interface org.glassfish.jaxb.core.v2.model.core.NonElement<TypeT,​ClassDeclT>
      • getUpstream

        public org.glassfish.jaxb.core.v2.model.annotation.Locatable getUpstream()
        Specified by:
        getUpstream in interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
      • getLocation

        public org.glassfish.jaxb.core.v2.runtime.Location getLocation()
        Specified by:
        getLocation in interface org.glassfish.jaxb.core.v2.model.annotation.Locatable
      • isSimpleType

        public boolean isSimpleType()
        Specified by:
        isSimpleType in interface org.glassfish.jaxb.core.v2.model.core.NonElement<TypeT,​ClassDeclT>
      • toString

        public String toString()
        Specified by:
        toString in interface org.glassfish.jaxb.core.v2.runtime.Location
        Overrides:
        toString in class Object