com.sun.tools.xjc.model

Class CReferencePropertyInfo

public final class CReferencePropertyInfo extends CPropertyInfo implements ReferencePropertyInfo<NType,NClass>

ReferencePropertyInfo for the compiler.
Constructor Summary
CReferencePropertyInfo(String name, boolean collection, boolean required, boolean isMixed, XSComponent source, CCustomizations customizations, Locator locator, boolean dummy, boolean content, boolean isMixedExtended)
Method Summary
<V> Vaccept(CPropertyVisitor<V> visitor)
QNamecollectElementNames(Map<QName,CPropertyInfo> table)
CAdaptergetAdapter()
NClassgetDOMHandler()
Set<CElement>getElements()
MimeTypegetExpectedMimeType()
QNamegetSchemaType()
WildcardModegetWildcard()
QNamegetXmlName()
We'll never use a wrapper element in XJC.
IDid()
A reference property can never be ID/IDREF because they always point to other element classes.
booleanisCollectionNillable()
booleanisCollectionRequired()
booleanisContent()
booleanisDummy()
booleanisMixed()
booleanisMixedExtendedCust()
booleanisOptionalPrimitive()
booleanisRequired()
booleanisUnboxable()
Reference properties refer to elements, and none of the Java primitive type maps to an element.
PropertyKindkind()
Set<? extends CTypeInfo>ref()
voidsetWildcard(WildcardMode mode)

Constructor Detail

CReferencePropertyInfo

public CReferencePropertyInfo(String name, boolean collection, boolean required, boolean isMixed, XSComponent source, CCustomizations customizations, Locator locator, boolean dummy, boolean content, boolean isMixedExtended)

Method Detail

accept

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

collectElementNames

QName collectElementNames(Map<QName,CPropertyInfo> table)

getAdapter

public CAdapter getAdapter()

getDOMHandler

public NClass getDOMHandler()

getElements

public Set<CElement> getElements()

getExpectedMimeType

public MimeType getExpectedMimeType()

getSchemaType

public QName getSchemaType()

getWildcard

public WildcardMode getWildcard()

getXmlName

QName getXmlName()
We'll never use a wrapper element in XJC. Always return null.

id

public ID id()
A reference property can never be ID/IDREF because they always point to other element classes.

isCollectionNillable

public boolean isCollectionNillable()

isCollectionRequired

public boolean isCollectionRequired()

isContent

public boolean isContent()

isDummy

public boolean isDummy()

isMixed

public boolean isMixed()

isMixedExtendedCust

public boolean isMixedExtendedCust()

isOptionalPrimitive

boolean isOptionalPrimitive()

isRequired

public boolean isRequired()

isUnboxable

boolean isUnboxable()
Reference properties refer to elements, and none of the Java primitive type maps to an element. Thus a reference property is always unboxable.

kind

public final PropertyKind kind()

ref

public Set<? extends CTypeInfo> ref()

setWildcard

public void setWildcard(WildcardMode mode)