public interface Property<BeanT> extends StructureLoaderBuilder
CATCH_ALL, TEXT_HANDLER| Modifier and Type | Method and Description |
|---|---|
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. |
PropertyKind |
getKind()
Gets the Kind of property
|
boolean |
hasSerializeURIAction()
Returns true if
serializeURIs(Object,XMLSerializer) performs some meaningful action. |
boolean |
isHiddenByOverride() |
void |
reset(BeanT o)
Resets the property value on the given object.
|
void |
serializeBody(BeanT beanT,
XMLSerializer target,
java.lang.Object outerPeer) |
void |
serializeURIs(BeanT beanT,
XMLSerializer target) |
void |
setHiddenByOverride(boolean hidden) |
void |
wrapUp()
Called at the end of the
JAXBContext initialization phase
to clean up any unnecessary references. |
buildChildElementUnmarshallersvoid reset(BeanT o) throws AccessorException
... for example by setting 0 or null.
AccessorExceptionvoid serializeBody(BeanT beanT, XMLSerializer target, java.lang.Object outerPeer) throws org.xml.sax.SAXException, AccessorException, java.io.IOException, javax.xml.stream.XMLStreamException
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)void serializeURIs(BeanT beanT, XMLSerializer target) throws org.xml.sax.SAXException, AccessorException
org.xml.sax.SAXExceptionAccessorExceptionJaxBeanInfo.serializeURIs(Object, XMLSerializer)boolean hasSerializeURIAction()
serializeURIs(Object,XMLSerializer) performs some meaningful action.java.lang.String getIdValue(BeanT bean) throws AccessorException, org.xml.sax.SAXException
PropertyInfo.id() is ID.ID,
and therefore the return type is fixed to String.AccessorExceptionorg.xml.sax.SAXExceptionPropertyKind getKind()
Accessor getElementPropertyAccessor(java.lang.String nsUri, java.lang.String localName)
void wrapUp()
JAXBContext initialization phase
to clean up any unnecessary references.RuntimePropertyInfo getInfo()
RuntimePropertyInfo information on the property.JAXBContextboolean isHiddenByOverride()
void setHiddenByOverride(boolean hidden)
java.lang.String getFieldName()