public interface Property<BeanT> extends StructureLoaderBuilder
CATCH_ALL, TEXT_HANDLER| Modifier and Type | Method and Description |
|---|---|
Accessor |
getElementPropertyAccessor(String nsUri,
String localName)
If this property is mapped to the specified element,
return an accessor to it.
|
String |
getFieldName() |
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,
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, Object outerPeer) throws SAXException, AccessorException, IOException, 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.SAXExceptionIOExceptionXMLStreamExceptionJaxBeanInfo.serializeBody(Object, XMLSerializer)void serializeURIs(BeanT beanT, XMLSerializer target) throws SAXException, AccessorException
SAXExceptionAccessorExceptionJaxBeanInfo.serializeURIs(Object, XMLSerializer)boolean hasSerializeURIAction()
serializeURIs(Object,XMLSerializer) performs some meaningful action.String getIdValue(BeanT bean) throws AccessorException, SAXException
PropertyInfo.id() is ID.ID,
and therefore the return type is fixed to String.AccessorExceptionSAXExceptionPropertyKind getKind()
Accessor getElementPropertyAccessor(String nsUri, 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)
String getFieldName()
Copyright © 2017 JBoss by Red Hat. All rights reserved.