Class CAttributePropertyInfo

java.lang.Object
com.sun.tools.xjc.model.CPropertyInfo
com.sun.tools.xjc.model.CAttributePropertyInfo
All Implemented Interfaces:
CCustomizable, org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource, org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,NClass>, org.glassfish.jaxb.core.v2.model.core.NonElementRef<NType,NClass>, org.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass>

public final class CAttributePropertyInfo extends CPropertyInfo implements org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,NClass>
AttributePropertyInfo for the compiler.
Author:
Kohsuke Kawaguchi
  • Field Details

    • type

      protected final TypeUse type
  • Constructor Details

    • 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 Details

    • isRequired

      public boolean isRequired()
      Specified by:
      isRequired in interface org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,NClass>
    • getXmlName

      public QName getXmlName()
      Specified by:
      getXmlName in interface org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,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
    • accept

      public <V> V accept(CPropertyVisitor<V> visitor)
      Specified by:
      accept in class CPropertyInfo
    • accept

      public <R, P> R accept(CPropertyVisitor2<R,P> visitor, P p)
      Specified by:
      accept in class CPropertyInfo
    • kind

      public final org.glassfish.jaxb.core.v2.model.core.PropertyKind kind()
      Specified by:
      kind in interface org.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass>
    • getSchemaType

      public QName getSchemaType()
    • id

      public final org.glassfish.jaxb.core.v2.model.core.ID id()
    • getExpectedMimeType

      public final jakarta.activation.MimeType getExpectedMimeType()
    • ref

      public final List<? extends CTypeInfo> ref()
      Specified by:
      ref in interface org.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass>
      Specified by:
      ref in class CPropertyInfo
    • getTarget

      public final CNonElement getTarget()
    • getAdapter

      public final CAdapter getAdapter()
      Specified by:
      getAdapter in interface org.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass>
      Specified by:
      getAdapter in class CPropertyInfo
    • getSource

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