Class CReferencePropertyInfo

  • All Implemented Interfaces:
    CCustomizable, com.sun.xml.bind.v2.model.annotation.AnnotationSource, com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>, com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>

    public final class CReferencePropertyInfo
    extends CPropertyInfo
    implements com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
    ReferencePropertyInfo for the compiler.
    Author:
    Kohsuke Kawaguchi
    • Constructor Detail

      • CReferencePropertyInfo

        public CReferencePropertyInfo​(String name,
                                      boolean collection,
                                      boolean required,
                                      boolean isMixed,
                                      XSComponent source,
                                      CCustomizations customizations,
                                      Locator locator,
                                      boolean dummy,
                                      boolean content,
                                      boolean isMixedExtended)
    • Method Detail

      • ref

        public Set<? extends CTypeInfo> ref()
        Specified by:
        ref in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
        Specified by:
        ref in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
        Specified by:
        ref in class CPropertyInfo
      • getElements

        public Set<CElement> getElements()
        Specified by:
        getElements in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • isMixed

        public boolean isMixed()
        Specified by:
        isMixed in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • isDummy

        public boolean isDummy()
      • isContent

        public boolean isContent()
      • isMixedExtendedCust

        public boolean isMixedExtendedCust()
      • getXmlName

        @Deprecated
        public QName getXmlName()
        Deprecated.
        We'll never use a wrapper element in XJC. Always return null.
        Specified by:
        getXmlName in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • isUnboxable

        public boolean isUnboxable()
        Reference properties refer to elements, and none of the Java primitive type maps to an element. Thus a reference property is always unboxable.
        Overrides:
        isUnboxable in class CPropertyInfo
      • isOptionalPrimitive

        public boolean isOptionalPrimitive()
        Description copied from class: CPropertyInfo
        Returns true if this property needs to represent null just for the purpose of representing an absence of the property.
        Overrides:
        isOptionalPrimitive in class CPropertyInfo
      • getAdapter

        public CAdapter getAdapter()
        Specified by:
        getAdapter in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
        Specified by:
        getAdapter in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
        Specified by:
        getAdapter in class CPropertyInfo
      • kind

        public final com.sun.xml.bind.v2.model.core.PropertyKind kind()
        Specified by:
        kind in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
      • id

        public com.sun.xml.bind.v2.model.core.ID id()
        A reference property can never be ID/IDREF because they always point to other element classes.
        Specified by:
        id in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
      • getWildcard

        public com.sun.xml.bind.v2.model.core.WildcardMode getWildcard()
        Specified by:
        getWildcard in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • setWildcard

        public void setWildcard​(com.sun.xml.bind.v2.model.core.WildcardMode mode)
      • getDOMHandler

        public NClass getDOMHandler()
        Specified by:
        getDOMHandler in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • getExpectedMimeType

        public MimeType getExpectedMimeType()
        Specified by:
        getExpectedMimeType in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
      • isCollectionNillable

        public boolean isCollectionNillable()
        Specified by:
        isCollectionNillable in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • isCollectionRequired

        public boolean isCollectionRequired()
        Specified by:
        isCollectionRequired in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • getSchemaType

        public QName getSchemaType()
        Specified by:
        getSchemaType in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,​NClass>
      • isRequired

        public boolean isRequired()
        Specified by:
        isRequired in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,​NClass>
      • collectElementNames

        public QName collectElementNames​(Map<QName,​CPropertyInfo> table)
        Description copied from class: CPropertyInfo
        Puts the element names that this property possesses to the map, so that we can find two properties that own the same element name, which is an error.
        Overrides:
        collectElementNames in class CPropertyInfo
        Returns:
        null if no conflict was found. Otherwise return the QName that has the collision.