Class CElementInfo

    • Field Detail

      • parent

        public final CClassInfoParent parent
        If this element is global, the element info is considered to be package-level, and this points to the package in which this element lives in.

        For local elements, this points to the parent CClassInfo.

    • Method Detail

      • getDefaultValue

        public final java.lang.String getDefaultValue()
      • _package

        public final JPackage _package()
      • getContentType

        public CNonElement getContentType()
        Description copied from interface: ElementInfo
        Short for getProperty().ref().get(0). The type of the value this element holds. Normally, this is the T of JAXBElement<T>. But if the property is adapted, this is the on-the-wire type. Or if the element has a list of values, then this field represents the type of the individual item.
        Specified by:
        getContentType in interface ElementInfo<NType,​NClass>
        See Also:
        ElementInfo.getContentInMemoryType()
      • getType

        public NType getType()
        Deprecated.
        why are you calling a method that returns this?
        Description copied from interface: ElementInfo
        Returns the representation for JAXBElement<contentInMemoryType>.

        This returns the signature in Java and thus isn't affected by the adapter.

        Specified by:
        getType in interface ElementInfo<NType,​NClass>
        Specified by:
        getType in interface TypeInfo<NType,​NClass>
        Returns:
        always non-null.
      • getElementName

        public javax.xml.namespace.QName getElementName()
        Description copied from interface: Element
        Gets the element name of the class.
        Specified by:
        getElementName in interface Element<NType,​NClass>
        Returns:
        Always non-null.
      • toType

        public JType toType​(Outline o,
                            Aspect aspect)
        Description copied from interface: NType
        Returns the representation of this type in code model.

        This operation requires the whole model to be built, and hence it takes Outline.

        Under some code generation strategy, some bean classes are considered implementation specific (such as impl.FooImpl class) These classes always have accompanying "exposed" type (such as the Foo interface).

        For such Jekyll and Hyde type, the aspect parameter determines which personality is returned.

        Specified by:
        toType in interface CTypeInfo
        Specified by:
        toType in interface NType
        aspect - If Aspect.IMPLEMENTATION, this method returns the implementation specific class that this type represents. If Aspect.EXPOSED, this method returns the publicly exposed type that this type represents. For ordinary classes, the aspect parameter is meaningless.
        See Also:
        NType.toType(Outline, com.sun.tools.xjc.outline.Aspect)
      • getSqueezedName

        public java.lang.String getSqueezedName()
        Returns the "squeezed name" of this element.
        See Also:
        CClassInfo.getSqueezedName()
      • setSubstitutionHead

        public void setSubstitutionHead​(CElementInfo substitutionHead)
      • isBoxedType

        public boolean isBoxedType()
        Description copied from interface: NType
        Returns true iff this type represents a class that has a unboxed form. For example, for String this is false, but for Integer this is true.
        Specified by:
        isBoxedType in interface NType
      • fullName

        public java.lang.String fullName()
        Description copied from interface: NType
        Human readable name of this type.
        Specified by:
        fullName in interface CClassInfoParent
        Specified by:
        fullName in interface NType
      • shortName

        public java.lang.String shortName()
      • hasClass

        public boolean hasClass()
        True if this element has its own class (as opposed to be represented as an instance of JAXBElement.
      • 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.
      • isAbstract

        public boolean isAbstract()
        Description copied from interface: CElement
        Returns true iff this element is an abstract element.
        Specified by:
        isAbstract in interface CElement
      • setAbstract

        public void setAbstract()
        Description copied from interface: CElement
        Marks this element as an abstract element.
        Specified by:
        setAbstract in interface CElement
      • isCollection

        public final boolean isCollection()
      • getAdapterUse

        public final CAdapter getAdapterUse()
      • idUse

        public final ID idUse()
      • 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.)
      • canBeReferencedByIDREF

        public final boolean canBeReferencedByIDREF()
        Deprecated.
        why are you calling an unimplemented method?
        Description copied from interface: TypeInfo
        True if this type is a valid target from a property annotated with XmlIDREF.
        Specified by:
        canBeReferencedByIDREF in interface TypeInfo<NType,​NClass>
      • getExpectedMimeType

        public javax.activation.MimeType getExpectedMimeType()
        No default MimeType.
      • getLocation

        public final 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