com.sun.tools.xjc.model
Class CAttributePropertyInfo

java.lang.Object
  extended by com.sun.tools.xjc.model.CPropertyInfo
      extended by com.sun.tools.xjc.model.CSingleTypePropertyInfo
          extended by com.sun.tools.xjc.model.CAttributePropertyInfo
All Implemented Interfaces:
CCustomizable

public final class CAttributePropertyInfo
extends CSingleTypePropertyInfo

AttributePropertyInfo for the compiler.


Field Summary
 
Fields inherited from class com.sun.tools.xjc.model.CSingleTypePropertyInfo
type
 
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization
 
Constructor Summary
CAttributePropertyInfo(java.lang.String name, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, org.xml.sax.Locator locator, javax.xml.namespace.QName attName, TypeUse type, javax.xml.namespace.QName typeName, boolean required)
           
 
Method Summary
<V> V
accept(CPropertyVisitor<V> visitor)
           
 javax.xml.namespace.QName getXmlName()
           
 boolean isOptionalPrimitive()
          Returns true if this property needs to represent null just for the purpose of representing an absence of the property.
 boolean isRequired()
           
 boolean isUnboxable()
          An optional attribute can never be unboxable, for we need null to represent the absence.
 PropertyKind kind()
           
 
Methods inherited from class com.sun.tools.xjc.model.CSingleTypePropertyInfo
getAdapter, getExpectedMimeType, getSchemaType, getSource, getTarget, id, ref
 
Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo
collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, needsExplicitTypeName, parent, readAnnotation, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAttributePropertyInfo

public CAttributePropertyInfo(java.lang.String name,
                              com.sun.xml.xsom.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

isRequired

public boolean isRequired()

getXmlName

public javax.xml.namespace.QName getXmlName()

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

kind

public final PropertyKind kind()