com.sun.tools.xjc.model

Class CAttributePropertyInfo

public final class CAttributePropertyInfo extends CSingleTypePropertyInfo implements AttributePropertyInfo<NType,NClass>

AttributePropertyInfo for the compiler.
Constructor Summary
CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, QName typeName, boolean required)
Method Summary
<V> Vaccept(CPropertyVisitor<V> visitor)
QNamegetXmlName()
booleanisOptionalPrimitive()
booleanisRequired()
booleanisUnboxable()
An optional attribute can never be unboxable, for we need null to represent the absence.
PropertyKindkind()

Constructor Detail

CAttributePropertyInfo

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

accept

public <V> V accept(CPropertyVisitor<V> visitor)

getXmlName

public QName getXmlName()

isOptionalPrimitive

boolean isOptionalPrimitive()

isRequired

public boolean isRequired()

isUnboxable

public boolean isUnboxable()
An optional attribute can never be unboxable, for we need null to represent the absence.

kind

public final PropertyKind kind()