Property<BeanT>, StructureLoaderBuilderpublic final class ValueProperty<BeanT>
extends java.lang.Object
Property implementation for XmlValue properties.
This one works for both leaves and nodes, scalars and arrays.
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
fieldName |
Name of this field.
|
CATCH_ALL, TEXT_HANDLER| Constructor | Description |
|---|---|
ValueProperty(JAXBContextImpl context,
RuntimeValuePropertyInfo prop) |
| Modifier and Type | Method | Description |
|---|---|---|
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. |
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 |
getFieldName() |
|
java.lang.String |
getIdValue(BeanT bean) |
Gets the value of the property.
|
RuntimePropertyInfo |
getInfo() |
Provides more
RuntimePropertyInfo information on the property. |
com.sun.xml.bind.v2.model.core.PropertyKind |
getKind() |
Gets the Kind of property
|
boolean |
hasSerializeURIAction() |
Returns true if
Property.serializeURIs(Object,XMLSerializer) performs some meaningful action. |
boolean |
isHiddenByOverride() |
|
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) |
|
void |
setHiddenByOverride(boolean hidden) |
|
void |
wrapUp() |
Called at the end of the
JAXBContext initialization phase
to clean up any unnecessary references. |
public ValueProperty(JAXBContextImpl context, RuntimeValuePropertyInfo prop)
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>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.SAXExceptionjava.io.IOExceptionjavax.xml.stream.XMLStreamExceptionJaxBeanInfo.serializeBody(Object, XMLSerializer)public void serializeURIs(BeanT o, XMLSerializer w) throws org.xml.sax.SAXException, AccessorException
serializeURIs in interface Property<BeanT>org.xml.sax.SAXExceptionAccessorExceptionJaxBeanInfo.serializeURIs(Object, XMLSerializer)public boolean hasSerializeURIAction()
PropertyProperty.serializeURIs(Object,XMLSerializer) performs some meaningful action.hasSerializeURIAction in interface Property<BeanT>public void buildChildElementUnmarshallers(UnmarshallerChain chainElem, QNameMap<ChildLoader> handlers)
StructureLoaderBuilderQNameMap by elements that are expected
by this property.public com.sun.xml.bind.v2.model.core.PropertyKind getKind()
Propertypublic void reset(BeanT o) throws AccessorException
Property... for example by setting 0 or null.
AccessorExceptionpublic 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.AccessorExceptionorg.xml.sax.SAXExceptionpublic RuntimePropertyInfo getInfo()
PropertyRuntimePropertyInfo information on the property.public Accessor getElementPropertyAccessor(java.lang.String nsUri, java.lang.String localName)
PropertygetElementPropertyAccessor in interface Property<BeanT>public void wrapUp()
PropertyJAXBContext initialization phase
to clean up any unnecessary references.public boolean isHiddenByOverride()
isHiddenByOverride in interface Property<BeanT>public void setHiddenByOverride(boolean hidden)
setHiddenByOverride in interface Property<BeanT>public java.lang.String getFieldName()
getFieldName in interface Property<BeanT>Copyright © 2017 Oracle Corporation. All rights reserved.