Class CAttributePropertyInfo

    • Field Detail

      • type

        protected final TypeUse type
    • Constructor Detail

      • CAttributePropertyInfo

        public CAttributePropertyInfo​(java.lang.String name,
                                      XSComponent source,
                                      CCustomizations customizations,
                                      org.xml.sax.Locator locator,
                                      javax.xml.namespace.QName attName,
                                      TypeUse type,
                                      @Nullable
                                      javax.xml.namespace.QName typeName,
                                      boolean required)
        Parameters:
        type - Represents the bound type of this attribute.
        typeName - XML Schema type name of this attribute. Optional for other schema languages.
    • Method Detail

      • isUnboxable

        public boolean isUnboxable()
        An optional attribute can never be unboxable, for we need null to represent the absence.
        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
      • getSchemaType

        public javax.xml.namespace.QName getSchemaType()
        Description copied from interface: PropertyInfo
        The effective value of XmlSchemaType annotation, if any.

        If the property doesn't have XmlSchemaType annotation, this method returns null.

        Since a type name is a property of a Java type, not a Java property, A schema type name of a Java type should be primarily obtained by using NonElement.getTypeName(). This method is to correctly implement the ugly semantics of XmlSchemaType (namely when this returns non-null, it overrides the type names of all types that are in this property.)

      • id

        public final ID id()
        Description copied from interface: PropertyInfo
        Returns the IDness of the value of this element.
        Returns:
        always non-null
        See Also:
        XmlID, XmlIDREF
      • getExpectedMimeType

        public final javax.activation.MimeType getExpectedMimeType()
        Description copied from interface: PropertyInfo
        Expected MIME type, if any.
      • ref

        public final java.util.List<? extends CTypeInfo> ref()
        Description copied from interface: PropertyInfo
        List of TypeInfos that this property references. This allows the caller to traverse the reference graph without getting into the details of each different property type.
        Specified by:
        ref in interface PropertyInfo<NType,​NClass>
        Specified by:
        ref in class CPropertyInfo
        Returns:
        non-null read-only collection.
      • getSource

        public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()