ReferencePropertyInfo for the compiler.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final Set | elements
List of referenced elements. |
| private final boolean | |
| private boolean | |
| private final boolean | required
True if this property can never be absent legally. |
| private WildcardMode |
| Access | Constructor and Description |
|---|---|
| public | CReferencePropertyInfo(String name, boolean collection, boolean required, boolean isMixed, XSComponent source, CCustomizations customizations, Locator locator, boolean dummy, boolean content, boolean isMixedExtended)
|
| Modifier and Type | Method and Description |
|---|---|
| public <V> V | accept(CPropertyVisitor<V> visitor)
Implements abstract com.
|
| public <R, P> R | accept(CPropertyVisitor2<R, P> visitor, P p)
Implements abstract com.
|
| public QName | collectElementNames(Map<QName, CPropertyInfo> table)
Overrides com. Puts the element names that this property possesses to the map, so that we can find two properties that own the same element name, which is an error. |
| public CAdapter | |
| public NClass | getDOMHandler()
Implements org. If this property supports the wildcard, returns its DOM handler. |
| public Set | getElements()
Implements org. Returns the information about the possible elements in this property. |
| public MimeType | getExpectedMimeType()
Implements org. Expected MIME type, if any. |
| public QName | getSchemaType()
Implements org. The effective value of |
| public WildcardMode | getWildcard()
Implements org. If this property supports the wildcard, returns its mode. |
| public QName | getXmlName()
Implements org.
Deprecated
We'll never use a wrapper element in XJC. |
| public ID | id()
Implements org. A reference property can never be ID/IDREF because they always point to other element classes. |
| public boolean | isCollectionNillable()
Implements org. Returns true if this property is nillable (meaning the absence of the value is treated as nil='true') This method is only used when this property is a collection. |
| public boolean | isCollectionRequired()
Implements org. Checks if the wrapper element is required. |
| public boolean | |
| public boolean | |
| public boolean | isMixed()
Implements org. Returns true if this property can hold |
| public boolean | |
| public boolean | isOptionalPrimitive()
Overrides com. Returns true if this property needs to represent null just for the purpose of representing an absence of the property. |
| public boolean | isRequired()
Implements org. Returns true if this element is mandatory. |
| public boolean | isUnboxable()
Overrides com. Reference properties refer to elements, and none of the Java primitive type maps to an element. |
| public PropertyKind | kind()
Implements org. Gets the kind of this property. |
| public Set | ref()
Implements abstract com. Implements org. List of |
| public void |
| content | back to summary |
|---|---|
| private boolean content | |
| dummy | back to summary |
|---|---|
| private boolean dummy | |
| elements | back to summary |
|---|---|
| private final Set<CElement> elements List of referenced elements. | |
| isMixed | back to summary |
|---|---|
| private final boolean isMixed | |
| isMixedExtendedCust | back to summary |
|---|---|
| private boolean isMixedExtendedCust | |
| required | back to summary |
|---|---|
| private final boolean required True if this property can never be absent legally. | |
| wildcard | back to summary |
|---|---|
| private WildcardMode wildcard | |
| CReferencePropertyInfo | back to summary |
|---|---|
| public CReferencePropertyInfo(String name, boolean collection, boolean required, boolean isMixed, XSComponent source, CCustomizations customizations, Locator locator, boolean dummy, boolean content, boolean isMixedExtended) | |
| accept | back to summary |
|---|---|
| public <V> V accept(CPropertyVisitor<V> visitor) Implements abstract com.
| |
| accept | back to summary |
|---|---|
| public <R, P> R accept(CPropertyVisitor2<R, P> visitor, P p) Implements abstract com.
| |
| collectElementNames | back to summary |
|---|---|
| public QName collectElementNames(Map<QName, CPropertyInfo> table) Overrides com. Doc from com. Puts the element names that this property possesses to the map, so that we can find two properties that own the same element name, which is an error.
| |
| getAdapter | back to summary |
|---|---|
| public CAdapter getAdapter() Implements abstract com. Implements org.
| |
| getDOMHandler | back to summary |
|---|---|
| public NClass getDOMHandler() Implements org. Doc from org. If this property supports the wildcard, returns its DOM handler.
| |
| getElements | back to summary |
|---|---|
| public Set Implements org. Doc from org. Returns the information about the possible elements in this property. As of 2004/08/17, the spec only allows you to use different element names when a property is a collection, but I think there's really no reason to limit it there --- if the user wants to use a different tag name for different objects, I don't see why this can be limited to collections. So this is a generalization of the spec. We always allow a property to have multiple types and use different tag names for it, depending on the actual type. In most of the cases, this collection only contains 1 item. So the runtime system is encouraged to provide a faster code-path that is optimized toward such cases.
| |
| getExpectedMimeType | back to summary |
|---|---|
| public MimeType getExpectedMimeType() Implements org. Doc from org. Expected MIME type, if any.
| |
| getSchemaType | back to summary |
|---|---|
| public QName getSchemaType() Implements org. Doc from org. The effective value of
If the property doesn't have
Since a type name is a property of a Java type, not a Java property,
A schema type name of a Java type should be primarily obtained
by using
| |
| getWildcard | back to summary |
|---|---|
| public WildcardMode getWildcard() Implements org. Doc from org. If this property supports the wildcard, returns its mode.
| |
| getXmlName | back to summary |
|---|---|
| public QName getXmlName() Implements org. Deprecated
We'll never use a wrapper element in XJC. Always return null.
| |
| id | back to summary |
|---|---|
| public ID id() Implements org. A reference property can never be ID/IDREF because they always point to other element classes.
| |
| isCollectionNillable | back to summary |
|---|---|
| public boolean isCollectionNillable() Implements org. Doc from org. Returns true if this property is nillable (meaning the absence of the value is treated as nil='true') This method is only used when this property is a collection.
| |
| isCollectionRequired | back to summary |
|---|---|
| public boolean isCollectionRequired() Implements org. Doc from org. Checks if the wrapper element is required.
| |
| isContent | back to summary |
|---|---|
| public boolean isContent() | |
| isDummy | back to summary |
|---|---|
| public boolean isDummy() | |
| isMixed | back to summary |
|---|---|
| public boolean isMixed() Implements org. Doc from org. Returns true if this property can hold
| |
| isMixedExtendedCust | back to summary |
|---|---|
| public boolean isMixedExtendedCust() | |
| isOptionalPrimitive | back to summary |
|---|---|
| public boolean isOptionalPrimitive() Overrides com. Doc from com. Returns true if this property needs to represent null just for the purpose of representing an absence of the property.
| |
| isRequired | back to summary |
|---|---|
| public boolean isRequired() Implements org. Doc from org. Returns true if this element is mandatory.
| |
| isUnboxable | back to summary |
|---|---|
| public boolean isUnboxable() Overrides com. Reference properties refer to elements, and none of the Java primitive type maps to an element. Thus a reference property is always unboxable.
| |
| kind | back to summary |
|---|---|
| public PropertyKind kind() Implements org. Doc from org. Gets the kind of this property.
| |
| ref | back to summary |
|---|---|
| public Set Implements abstract com. Implements org. Doc from org. List of
| |
| setWildcard | back to summary |
|---|---|
| public void setWildcard(WildcardMode mode) | |