ElementPropertyInfo implementation used for both
Annotation Processing and runtime.
| Modifier and Type | Field and Description |
|---|---|
| private Boolean | isRequired
Lazily computed. |
| private final boolean | |
| private final List | |
| private List | types
Lazily computed. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ElementPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed)
|
| Modifier and Type | Method and Description |
|---|---|
| protected TypeRefImpl | createTypeRef(QName name, TypeT type, boolean isNillable, String defaultValue)
Used by |
| private String | |
| public List | getTypes()
Implements org. Returns the information about the types allowed in this property. |
| public boolean | isRequired()
Implements org. Returns true if this element is mandatory. |
| 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 final PropertyKind | kind()
Implements org. Gets the kind of this property. |
| protected void | link()
Overrides org. Called after all the |
| public List | ref()
Implements org. List of |
| isRequired | back to summary |
|---|---|
| private Boolean isRequired Lazily computed.
| |
| isValueList | back to summary |
|---|---|
private final boolean isValueList
| |
| ref | back to summary |
|---|---|
| private final List<TypeInfo<TypeT, ClassDeclT>> ref | |
| types | back to summary |
|---|---|
| private List<TypeRefImpl<TypeT, ClassDeclT>> types Lazily computed.
| |
| ElementPropertyInfoImpl | back to summary |
|---|---|
| pack-priv ElementPropertyInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> parent, PropertySeed<TypeT, ClassDeclT, FieldT, MethodT> propertySeed) | |
| createTypeRef | back to summary |
|---|---|
| protected TypeRefImpl Used by | |
| getDefaultValue | back to summary |
|---|---|
| private String getDefaultValue(String value) | |
| 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
| |
| 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
| |
| 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 final PropertyKind kind() Implements org. Doc from org. Gets the kind of this property.
| |
| link | back to summary |
|---|---|
| protected void link() Overrides org. Doc from org. Called after all the
| |
| ref | back to summary |
|---|---|
| public List Implements org. Doc from org. List of
| |