ElementPropertyInfo for the compiler.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private CAdapter | adapter
Currently, this is set inside |
| private final MimeType | |
| private ID | |
| private final boolean | |
| private final List | |
| private final boolean | required
True if this property can never be absent legally. |
| private final List | types
List of referenced types. |
| Access | Constructor and Description |
|---|---|
| public | CElementPropertyInfo(String name, CElementPropertyInfo.
|
| 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 MimeType | getExpectedMimeType()
Implements org. Expected MIME type, if any. |
| public QName | getSchemaType()
Implements org. The effective value of |
| public List | getTypes()
Implements org. Returns the information about the types allowed in this property. |
| public QName | getXmlName()
Implements org.
Deprecated
XJC never uses the wrapper element. |
| public ID | id()
Implements org. Returns the IDness of the value of this element. |
| 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 | 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. Returns true if this property is "unboxable". |
| public boolean | isValueList()
Implements org. Returns true if this property is a collection but its XML representation is a list of values, not repeated elements. |
| public PropertyKind | kind()
Implements org. Gets the kind of this property. |
| public List | ref()
Implements abstract com. Implements org. List of |
| public void |
| adapter | back to summary |
|---|---|
| private CAdapter adapter
Currently, this is set inside | |
| expectedMimeType | back to summary |
|---|---|
| private final MimeType expectedMimeType | |
| id | back to summary |
|---|---|
| private ID id | |
| isValueList | back to summary |
|---|---|
| private final boolean isValueList | |
| ref | back to summary |
|---|---|
| private final List<CNonElement> ref | |
| required | back to summary |
|---|---|
| private final boolean required True if this property can never be absent legally. | |
| types | back to summary |
|---|---|
| private final List<CTypeRef> types List of referenced types. | |
| CElementPropertyInfo | back to summary |
|---|---|
| public CElementPropertyInfo(String name, CElementPropertyInfo. | |
| 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.
| |
| 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
| |
| getTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the information about the types allowed in this property.
In a simple case like the following, an element property only has
one @XmlElement String abc; However, in a general case an element property can be heterogeneous, meaning you can put different types in it, each with a different tag name (and a few other settings.)
In this case this method returns a list of two
| |
| getXmlName | back to summary |
|---|---|
| public QName getXmlName() Implements org. Deprecated
XJC never uses the wrapper element. Always return null.
| |
| id | back to summary |
|---|---|
| public ID id() Implements org. Doc from org. Returns the IDness of the value of this element.
| |
| 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.
| |
| 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. For collections, this property isn't used. Todo define the semantics when this is a collection
| |
| isUnboxable | back to summary |
|---|---|
| public boolean isUnboxable() Overrides com. Doc from com. Returns true if this property is "unboxable".
In general, a property often has to be capable of representing null
to indicate the absence of the value. This requires properties
to be generated as Fortunately, there are cases where we know that the property can never legally be absent. When this condition holds we can generate the optimized "unboxed form". The exact such conditions depend on the kind of properties, so refer to the implementation code for the details. This method returns true when the property can be generated as "unboxed form", false otherwise. When this property is a collection, this method returns true if items in the collection is unboxable. Obviously, the collection itself is always a reference type.
| |
| isValueList | back to summary |
|---|---|
| public boolean isValueList() Implements org. Doc from org. Returns true if this property is a collection but its XML representation is a list of values, not repeated elements.
If
When this flag is true,
| |
| kind | back to summary |
|---|---|
| public PropertyKind kind() Implements org. Doc from org. Gets the kind of this property.
| |
| ref | back to summary |
|---|---|
| public List Implements abstract com. Implements org. Doc from org. List of
| |
| setAdapter | back to summary |
|---|---|
| public void setAdapter(CAdapter a) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| public static final CElementPropertyInfo. | |
| public static final CElementPropertyInfo. | |
| public static final CElementPropertyInfo. | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public static CElementPropertyInfo. | |
| public static CElementPropertyInfo. |
| col | back to summary |
|---|---|
| private final boolean col | |
| NOT_REPEATED | back to summary |
|---|---|
| public static final CElementPropertyInfo. | |
| REPEATED_ELEMENT | back to summary |
|---|---|
| public static final CElementPropertyInfo. | |
| REPEATED_VALUE | back to summary |
|---|---|
| public static final CElementPropertyInfo. | |
| val | back to summary |
|---|---|
| private final boolean val | |
| CollectionMode | back to summary |
|---|---|
| private CollectionMode(boolean col, boolean val) | |
| isRepeated | back to summary |
|---|---|
| public boolean isRepeated() | |
| valueOf | back to summary |
|---|---|
| public static CElementPropertyInfo. | |
| values | back to summary |
|---|---|
| public static CElementPropertyInfo. | |