|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.v2.runtime.property.PropertyImpl<BeanT>
com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty<BeanT,ValueT>
final class SingleElementNodeProperty<BeanT,ValueT>
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl |
|---|
fieldName |
| Fields inherited from interface com.sun.xml.bind.v2.runtime.property.StructureLoaderBuilder |
|---|
CATCH_ALL, TEXT_HANDLER |
| Constructor Summary | |
|---|---|
SingleElementNodeProperty(JAXBContextImpl context,
RuntimeElementPropertyInfo prop)
|
|
| Method Summary | |
|---|---|
void |
buildChildElementUnmarshallers(UnmarshallerChain chain,
QNameMap<ChildLoader> handlers)
Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specified QNameMap by elements that are expected
by this property. |
Accessor |
getElementPropertyAccessor(java.lang.String nsUri,
java.lang.String localName)
If this property is mapped to the specified element, return an accessor to it. |
java.lang.String |
getIdValue(BeanT beanT)
Gets the value of the property. |
PropertyKind |
getKind()
Gets the Kind of property |
void |
reset(BeanT bean)
Resets the property value on the given object. |
void |
serializeBody(BeanT o,
XMLSerializer w,
java.lang.Object outerPeer)
|
void |
wrapUp()
Called at the end of the JAXBContext initialization phase
to clean up any unnecessary references. |
| Methods inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl |
|---|
getInfo, hasSerializeURIAction, serializeURIs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleElementNodeProperty(JAXBContextImpl context,
RuntimeElementPropertyInfo prop)
| Method Detail |
|---|
public void wrapUp()
PropertyJAXBContext initialization phase
to clean up any unnecessary references.
wrapUp in interface Property<BeanT>wrapUp in class PropertyImpl<BeanT>
public void reset(BeanT bean)
throws AccessorException
Property... for example by setting 0 or null.
AccessorExceptionpublic java.lang.String getIdValue(BeanT beanT)
PropertyPropertyInfo.id() is ID.ID,
and therefore the return type is fixed to String.
public void serializeBody(BeanT o,
XMLSerializer w,
java.lang.Object outerPeer)
throws org.xml.sax.SAXException,
AccessorException,
java.io.IOException,
javax.xml.stream.XMLStreamException
serializeBody in interface Property<BeanT>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.
AccessorException - If thrown, caught by the caller and reported.
org.xml.sax.SAXException
java.io.IOException
javax.xml.stream.XMLStreamExceptionJaxBeanInfo.serializeBody(Object, XMLSerializer)
public void buildChildElementUnmarshallers(UnmarshallerChain chain,
QNameMap<ChildLoader> handlers)
StructureLoaderBuilderQNameMap by elements that are expected
by this property.
public PropertyKind getKind()
Property
public Accessor getElementPropertyAccessor(java.lang.String nsUri,
java.lang.String localName)
Property
getElementPropertyAccessor in interface Property<BeanT>getElementPropertyAccessor in class PropertyImpl<BeanT>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||