com.sun.tools.xjc.model
Class CReferencePropertyInfo

java.lang.Object
  extended by com.sun.tools.xjc.model.CPropertyInfo
      extended by com.sun.tools.xjc.model.CReferencePropertyInfo
All Implemented Interfaces:
CCustomizable, com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>, com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

public final class CReferencePropertyInfo
extends CPropertyInfo
implements com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

ReferencePropertyInfo for the compiler.


Field Summary
 
Fields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, javadoc, locator, realization, schemaType
 
Constructor Summary
CReferencePropertyInfo(java.lang.String name, boolean collection, boolean isMixed, com.sun.xml.xsom.XSComponent source, CCustomizations customizations, org.xml.sax.Locator locator)
           
 
Method Summary
<V> V
accept(CPropertyVisitor<V> visitor)
           
 CAdapter getAdapter()
           
 NClass getDOMHandler()
           
 java.util.Set<CElement> getElements()
           
 javax.activation.MimeType getExpectedMimeType()
           
 com.sun.xml.bind.v2.model.core.WildcardMode getWildcard()
           
 javax.xml.namespace.QName getXmlName()
          We'll never use a wrapper element in XJC.
 com.sun.xml.bind.v2.model.core.ID id()
          A reference property can never be ID/IDREF because they always point to other element classes.
 boolean isCollectionNillable()
           
 boolean isMixed()
           
 boolean isOptionalPrimitive()
          Returns true if this property needs to represent null just for the purpose of representing an absence of the property.
 boolean isUnboxable()
          Reference properties refer to elements, and none of the Java primitive type maps to an element.
 com.sun.xml.bind.v2.model.core.PropertyKind kind()
           
 java.util.Set<? extends CTypeInfo> ref()
           
 void setWildcard(com.sun.xml.bind.v2.model.core.WildcardMode mode)
           
 
Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo
displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, getSchemaType, inlineBinaryData, isCollection, parent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.model.core.PropertyInfo
displayName, getName, getSchemaType, inlineBinaryData, isCollection, parent
 

Constructor Detail

CReferencePropertyInfo

public CReferencePropertyInfo(java.lang.String name,
                              boolean collection,
                              boolean isMixed,
                              com.sun.xml.xsom.XSComponent source,
                              CCustomizations customizations,
                              org.xml.sax.Locator locator)
Method Detail

ref

public java.util.Set<? extends CTypeInfo> ref()
Specified by:
ref in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
Specified by:
ref in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>
Specified by:
ref in class CPropertyInfo

getElements

public java.util.Set<CElement> getElements()
Specified by:
getElements in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

isMixed

public boolean isMixed()
Specified by:
isMixed in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

getXmlName

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

Specified by:
getXmlName in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

isUnboxable

public 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.

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

getAdapter

public CAdapter getAdapter()
Specified by:
getAdapter in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>
Specified by:
getAdapter in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>
Specified by:
getAdapter in class CPropertyInfo

kind

public final com.sun.xml.bind.v2.model.core.PropertyKind kind()
Specified by:
kind in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>

id

public com.sun.xml.bind.v2.model.core.ID id()
A reference property can never be ID/IDREF because they always point to other element classes.

Specified by:
id in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>

getWildcard

public com.sun.xml.bind.v2.model.core.WildcardMode getWildcard()
Specified by:
getWildcard in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

setWildcard

public void setWildcard(com.sun.xml.bind.v2.model.core.WildcardMode mode)

getDOMHandler

public NClass getDOMHandler()
Specified by:
getDOMHandler in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>

getExpectedMimeType

public javax.activation.MimeType getExpectedMimeType()
Specified by:
getExpectedMimeType in interface com.sun.xml.bind.v2.model.core.PropertyInfo<NType,NClass>

isCollectionNillable

public boolean isCollectionNillable()
Specified by:
isCollectionNillable in interface com.sun.xml.bind.v2.model.core.ReferencePropertyInfo<NType,NClass>