com.sun.xml.bind.v2.runtime.property

Class AttributeProperty<BeanT>

public final class AttributeProperty<BeanT> extends PropertyImpl<BeanT> implements Comparable<AttributeProperty>

Property implementation for AttributePropertyInfo.

This one works for both leaves and nodes, scalars and arrays.

Implements Comparable so that it can be sorted lexicographically.

Field Summary
NameattName
Attribute name.
TransducedAccessor<BeanT>xacc
Heart of the conversion logic.
Constructor Summary
AttributeProperty(JAXBContextImpl context, RuntimeAttributePropertyInfo prop)
Method Summary
voidbuildChildElementUnmarshallers(UnmarshallerChain chainElem, QNameMap<ChildLoader> handlers)
intcompareTo(AttributeProperty that)
StringgetIdValue(BeanT bean)
PropertyKindgetKind()
booleanhasSerializeURIAction()
voidreset(BeanT o)
voidserializeAttributes(BeanT o, XMLSerializer w)
Marshals one attribute.
voidserializeURIs(BeanT o, XMLSerializer w)

Field Detail

attName

public final Name attName
Attribute name.

xacc

public final TransducedAccessor<BeanT> xacc
Heart of the conversion logic.

Constructor Detail

AttributeProperty

public AttributeProperty(JAXBContextImpl context, RuntimeAttributePropertyInfo prop)

Method Detail

buildChildElementUnmarshallers

public void buildChildElementUnmarshallers(UnmarshallerChain chainElem, QNameMap<ChildLoader> handlers)

compareTo

public int compareTo(AttributeProperty that)

getIdValue

public String getIdValue(BeanT bean)

getKind

public PropertyKind getKind()

hasSerializeURIAction

public boolean hasSerializeURIAction()

reset

public void reset(BeanT o)

serializeAttributes

public void serializeAttributes(BeanT o, XMLSerializer w)
Marshals one attribute.

See Also: JaxBeanInfo

serializeURIs

public void serializeURIs(BeanT o, XMLSerializer w)