Class CAttributePropertyInfo

    • Field Detail

      • type

        protected final TypeUse type
    • Constructor Detail

      • CAttributePropertyInfo

        public CAttributePropertyInfo​(String name,
                                      XSComponent source,
                                      CCustomizations customizations,
                                      Locator locator,
                                      QName attName,
                                      TypeUse type,
                                      @Nullable
                                      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

      • isRequired

        public boolean isRequired()
        Specified by:
        isRequired in interface AttributePropertyInfo<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>
      • 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
      • kind

        public final PropertyKind kind()
        Specified by:
        kind in interface PropertyInfo<com.sun.tools.xjc.model.nav.NType,​com.sun.tools.xjc.model.nav.NClass>
      • getSchemaType

        public QName getSchemaType()
      • id

        public final ID id()
      • getExpectedMimeType

        public final javax.activation.MimeType getExpectedMimeType()
      • getSource

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