com.sun.xml.bind.v2.runtime.property
Class PropertyImpl<BeanT>

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.property.PropertyImpl<BeanT>
All Implemented Interfaces:
Property<BeanT>, StructureLoaderBuilder
Direct Known Subclasses:
ArrayProperty, AttributeProperty, SingleElementLeafProperty, SingleElementNodeProperty, SingleMapNodeProperty, SingleReferenceNodeProperty, ValueProperty

abstract class PropertyImpl<BeanT>
extends Object
implements Property<BeanT>


Field Summary
protected  String fieldName
          Name of this field.
 
Fields inherited from interface com.sun.xml.bind.v2.runtime.property.StructureLoaderBuilder
CATCH_ALL, TEXT_HANDLER
 
Constructor Summary
PropertyImpl(JAXBContextImpl context, RuntimePropertyInfo prop)
           
 
Method Summary
 Accessor getElementPropertyAccessor(String nsUri, String localName)
          If this property is mapped to the specified element, return an accessor to it.
 boolean hasSerializeURIAction()
          Returns true if Property.serializeURIs(Object,XMLSerializer) performs some meaningful action.
 void serializeBody(BeanT o, XMLSerializer w, Object outerPeer)
           
 void serializeURIs(BeanT o, XMLSerializer w)
           
 void wrapUp()
          Called at the end of the JAXBContext initialization phase to clean up any unnecessary references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.bind.v2.runtime.property.Property
getIdValue, getKind, reset
 
Methods inherited from interface com.sun.xml.bind.v2.runtime.property.StructureLoaderBuilder
buildChildElementUnmarshallers
 

Field Detail

fieldName

protected final String fieldName
Name of this field.

Constructor Detail

PropertyImpl

public PropertyImpl(JAXBContextImpl context,
                    RuntimePropertyInfo prop)
Method Detail

serializeBody

public void serializeBody(BeanT o,
                          XMLSerializer w,
                          Object outerPeer)
                   throws SAXException,
                          AccessorException,
                          IOException,
                          javax.xml.stream.XMLStreamException
Specified by:
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.
Throws:
AccessorException - If thrown, caught by the caller and reported.
SAXException
IOException
javax.xml.stream.XMLStreamException
See Also:
JaxBeanInfo.serializeBody(Object, XMLSerializer)

serializeURIs

public void serializeURIs(BeanT o,
                          XMLSerializer w)
                   throws SAXException,
                          AccessorException
Specified by:
serializeURIs in interface Property<BeanT>
Throws:
SAXException
AccessorException
See Also:
JaxBeanInfo.serializeURIs(Object, XMLSerializer)

hasSerializeURIAction

public boolean hasSerializeURIAction()
Description copied from interface: Property
Returns true if Property.serializeURIs(Object,XMLSerializer) performs some meaningful action.

Specified by:
hasSerializeURIAction in interface Property<BeanT>

getElementPropertyAccessor

public Accessor getElementPropertyAccessor(String nsUri,
                                           String localName)
Description copied from interface: Property
If this property is mapped to the specified element, return an accessor to it.

Specified by:
getElementPropertyAccessor in interface Property<BeanT>
Returns:
null if the property is not mapped to the specified element.

wrapUp

public void wrapUp()
Description copied from interface: Property
Called at the end of the JAXBContext initialization phase to clean up any unnecessary references.

Specified by:
wrapUp in interface Property<BeanT>