com.sun.xml.bind.v2.runtime.property
Class ArrayElementLeafProperty<BeanT,ListT,ItemT>

java.lang.Object
  extended by com.sun.xml.bind.v2.runtime.property.PropertyImpl<BeanT>
      extended by com.sun.xml.bind.v2.runtime.property.ArrayProperty<BeanT,ListT,ItemT>
          extended by com.sun.xml.bind.v2.runtime.property.ArrayERProperty<BeanT,ListT,ItemT>
              extended by com.sun.xml.bind.v2.runtime.property.ArrayElementProperty<BeanT,ListT,ItemT>
                  extended by com.sun.xml.bind.v2.runtime.property.ArrayElementLeafProperty<BeanT,ListT,ItemT>
All Implemented Interfaces:
Property<BeanT>, StructureLoaderBuilder

final class ArrayElementLeafProperty<BeanT,ListT,ItemT>
extends ArrayElementProperty<BeanT,ListT,ItemT>

ArrayProperty that contains only one leaf type.

This class is optimized for the case where there's only one kind of types in the array and that type is a leaf type.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.bind.v2.runtime.property.ArrayERProperty
ArrayERProperty.ReceiverImpl
 
Field Summary
 
Fields inherited from class com.sun.xml.bind.v2.runtime.property.ArrayElementProperty
prop
 
Fields inherited from class com.sun.xml.bind.v2.runtime.property.ArrayERProperty
isWrapperNillable, wrapperTagName
 
Fields inherited from class com.sun.xml.bind.v2.runtime.property.ArrayProperty
acc, lister
 
Fields inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl
fieldName
 
Fields inherited from interface com.sun.xml.bind.v2.runtime.property.StructureLoaderBuilder
CATCH_ALL, TEXT_HANDLER
 
Constructor Summary
ArrayElementLeafProperty(JAXBContextImpl p, RuntimeElementPropertyInfo prop)
           
 
Method Summary
 void serializeItem(JaxBeanInfo bi, ItemT item, XMLSerializer w)
          Serializes one item of the property.
 
Methods inherited from class com.sun.xml.bind.v2.runtime.property.ArrayElementProperty
createBodyUnmarshaller, getElementPropertyAccessor, getKind, serializeListBody, wrapUp
 
Methods inherited from class com.sun.xml.bind.v2.runtime.property.ArrayERProperty
buildChildElementUnmarshallers, serializeBody
 
Methods inherited from class com.sun.xml.bind.v2.runtime.property.ArrayProperty
getIdValue, reset
 
Methods inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl
hasSerializeURIAction, serializeURIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayElementLeafProperty

public ArrayElementLeafProperty(JAXBContextImpl p,
                                RuntimeElementPropertyInfo prop)
Method Detail

serializeItem

public void serializeItem(JaxBeanInfo bi,
                          ItemT item,
                          XMLSerializer w)
                   throws SAXException,
                          AccessorException,
                          IOException,
                          javax.xml.stream.XMLStreamException
Description copied from class: ArrayElementProperty
Serializes one item of the property.

Specified by:
serializeItem in class ArrayElementProperty<BeanT,ListT,ItemT>
Throws:
SAXException
AccessorException
IOException
javax.xml.stream.XMLStreamException