<xs:complexType>
<xs:sequence>
<xs:element name="entry" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="key" type="XXXX"/>
<xs:element name="value" type="YYYY"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
This property is used to represent a default binding of a Map property.
(Map properties with adapters will be represented by ElementPropertyInfo.)
I didn't like the idea of adding such a special-purpose PropertyInfo to a model.
The alternative was to implicitly assume an adapter, and have internal representation of
the Entry class ready.
But the fact that the key type and the value type changes with the parameterization makes
it very difficult to have such a class (especially inside Annotation Processing, where we can't even generate
classes.)
| Modifier and Type | Method and Description |
|---|---|
| public NonElement | |
| public NonElement | |
| public QName | |
| public boolean | isCollectionNillable()
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. |
| getKeyType | back to summary |
|---|---|
| public NonElement Type of the key of the map. K of
| |
| getValueType | back to summary |
|---|---|
| public NonElement Type of the value of the map. V of
| |
| getXmlName | back to summary |
|---|---|
| public QName getXmlName() Gets the wrapper element name.
| |
| isCollectionNillable | back to summary |
|---|---|
| public boolean isCollectionNillable() 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. | |