com.sun.xml.bind.v2.runtime.property
Class ListElementProperty<BeanT,ListT,ItemT>
java.lang.Object
com.sun.xml.bind.v2.runtime.property.PropertyImpl<BeanT>
com.sun.xml.bind.v2.runtime.property.ArrayProperty<BeanT,ListT,ItemT>
com.sun.xml.bind.v2.runtime.property.ListElementProperty<BeanT,ListT,ItemT>
- All Implemented Interfaces:
- Property<BeanT>, StructureLoaderBuilder
final class ListElementProperty<BeanT,ListT,ItemT>
- extends ArrayProperty<BeanT,ListT,ItemT>
Property implementation for ElementPropertyInfo whose
ElementPropertyInfo.isValueList() is true.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListElementProperty
public ListElementProperty(JAXBContextImpl grammar,
RuntimeElementPropertyInfo prop)
getKind
public PropertyKind getKind()
- Description copied from interface:
Property
- Gets the Kind of property
- Returns:
- always non-null.
buildChildElementUnmarshallers
public void buildChildElementUnmarshallers(UnmarshallerChain chain,
QNameMap<ChildLoader> handlers)
- Description copied from interface:
StructureLoaderBuilder
- Every Property class has an implementation of buildChildElementUnmarshallers
which will fill in the specified
QNameMap by elements that are expected
by this property.
serializeBody
public void serializeBody(BeanT o,
XMLSerializer w,
java.lang.Object outerPeer)
throws org.xml.sax.SAXException,
AccessorException,
java.io.IOException,
javax.xml.stream.XMLStreamException
- Specified by:
serializeBody in interface Property<BeanT>- Overrides:
serializeBody in class PropertyImpl<BeanT>
outerPeer - used when this property is expected to print out an element
and that should be associated with this outer peer. normally null.
this is only used for JaxBeanInfo for JAXBElements.
- Throws:
AccessorException - If thrown, caught by the caller and reported.
org.xml.sax.SAXException
java.io.IOException
javax.xml.stream.XMLStreamException- See Also:
JaxBeanInfo.serializeBody(Object, XMLSerializer)
getElementPropertyAccessor
public Accessor getElementPropertyAccessor(java.lang.String nsUri,
java.lang.String localName)
- Description copied from interface:
Property
- If this property is mapped to the specified element,
return an accessor to it.
- Specified by:
getElementPropertyAccessor in interface Property<BeanT>- Overrides:
getElementPropertyAccessor in class PropertyImpl<BeanT>
- Returns:
- null if the property is not mapped to the specified element.