Property implementation for AttributePropertyInfo.
This one works for both leaves and nodes, scalars and arrays.
Implements Comparable so that it can be sorted lexicographically.
| Modifier and Type | Field and Description |
|---|---|
| private final Accessor | |
| public final Name | attName
Attribute name. |
| public final TransducedAccessor | xacc
Heart of the conversion logic. |
| Access | Constructor and Description |
|---|---|
| public |
| acc | back to summary |
|---|---|
| private final Accessor<BeanT, ValueT> acc | |
| attName | back to summary |
|---|---|
| public final Name attName Attribute name. | |
| xacc | back to summary |
|---|---|
| public final TransducedAccessor<BeanT> xacc Heart of the conversion logic. | |
| AttributeProperty | back to summary |
|---|---|
| public AttributeProperty(JAXBContextImpl context, RuntimeAttributePropertyInfo prop) | |
| buildChildElementUnmarshallers | back to summary |
|---|---|
| public void buildChildElementUnmarshallers(UnmarshallerChain chainElem, QNameMap<ChildLoader> handlers) Implements org. Doc from org. Every Property class has an implementation of buildChildElementUnmarshallers
which will fill in the specified
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(AttributeProperty<BeanT> that) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getIdValue | back to summary |
|---|---|
| public String getIdValue(BeanT bean) throws AccessorException, SAXException Implements org. Doc from org. Gets the value of the property.
This method is only used when the corresponding
| |
| getKind | back to summary |
|---|---|
| public PropertyKind getKind() Implements org. Doc from org. Gets the Kind of property
| |
| hasSerializeURIAction | back to summary |
|---|---|
| public boolean hasSerializeURIAction() Overrides org. Implements org. Doc from org. Returns true if
| |
| reset | back to summary |
|---|---|
| public void reset(BeanT o) throws AccessorException Implements org. Doc from org. Resets the property value on the given object. ... for example by setting 0 or null.
| |
| serializeAttributes | back to summary |
|---|---|
| public void serializeAttributes(BeanT o, XMLSerializer w) throws SAXException, AccessorException, IOException, XMLStreamException Marshals one attribute. | |
| serializeURIs | back to summary |
|---|---|
| public void serializeURIs(BeanT o, XMLSerializer w) throws AccessorException, SAXException Overrides org. Implements org.
| |