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. |
buildChildElementUnmarshallers
void reset(BeanT o) throws AccessorException
... for example by setting 0 or null.
AccessorException
void 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 JAXBElement
s.AccessorException
- If thrown, caught by the caller and reported.SAXException
IOException
XMLStreamException
JaxBeanInfo.serializeBody(Object, XMLSerializer)
void serializeURIs(BeanT beanT, XMLSerializer target) throws SAXException, AccessorException
SAXException
AccessorException
JaxBeanInfo.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
.AccessorException
SAXException
PropertyKind 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.JAXBContext
boolean isHiddenByOverride()
void setHiddenByOverride(boolean hidden)
String getFieldName()
Copyright © 2021 JBoss by Red Hat. All rights reserved.