|
||||||||||
| 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.ValueProperty<BeanT>
public final class ValueProperty<BeanT>
Property implementation for XmlValue properties.
This one works for both leaves and nodes, scalars and arrays.
| 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 | |
|---|---|
ValueProperty(JAXBContextImpl context,
RuntimeValuePropertyInfo prop)
|
|
| Method Summary | |
|---|---|
void |
buildChildElementUnmarshallers(UnmarshallerChain chainElem,
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. |
java.lang.String |
getIdValue(BeanT bean)
Gets the value of the property. |
PropertyKind |
getKind()
Gets the Kind of property |
boolean |
hasSerializeURIAction()
Returns true if Property.serializeURIs(Object,XMLSerializer) performs some meaningful action. |
void |
reset(BeanT o)
Resets the property value on the given object. |
void |
serializeBody(BeanT o,
XMLSerializer w,
java.lang.Object outerPeer)
|
void |
serializeURIs(BeanT o,
XMLSerializer w)
|
| Methods inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl |
|---|
getElementPropertyAccessor, getFieldName, getInfo, isHiddenByOverride, setHiddenByOverride, wrapUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueProperty(JAXBContextImpl context,
RuntimeValuePropertyInfo prop)
| Method Detail |
|---|
public final 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 serializeURIs(BeanT o,
XMLSerializer w)
throws org.xml.sax.SAXException,
AccessorException
serializeURIs in interface Property<BeanT>serializeURIs in class PropertyImpl<BeanT>org.xml.sax.SAXException
AccessorExceptionJaxBeanInfo.serializeURIs(Object, XMLSerializer)public boolean hasSerializeURIAction()
PropertyProperty.serializeURIs(Object,XMLSerializer) performs some meaningful action.
hasSerializeURIAction in interface Property<BeanT>hasSerializeURIAction in class PropertyImpl<BeanT>
public void buildChildElementUnmarshallers(UnmarshallerChain chainElem,
QNameMap<ChildLoader> handlers)
StructureLoaderBuilderQNameMap by elements that are expected
by this property.
public PropertyKind getKind()
Property
public void reset(BeanT o)
throws AccessorException
Property... for example by setting 0 or null.
AccessorException
public java.lang.String getIdValue(BeanT bean)
throws AccessorException,
org.xml.sax.SAXException
PropertyPropertyInfo.id() is ID.ID,
and therefore the return type is fixed to String.
AccessorException
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||