com.sun.xml.bind.v2.runtime.property
Class ArrayProperty<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>
All Implemented Interfaces:
Property<BeanT>, StructureLoaderBuilder
Direct Known Subclasses:
ArrayERProperty, ListElementProperty

abstract class ArrayProperty<BeanT,ListT,ItemT>
extends PropertyImpl<BeanT>

Property implementation for multi-value properties (including arrays and collections.)


Field Summary
protected  Accessor<BeanT,ListT> acc
           
protected  Lister<BeanT,ListT,ItemT,Object> 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
protected ArrayProperty(JAXBContextImpl context, RuntimePropertyInfo prop)
           
 
Method Summary
 String getIdValue(BeanT bean)
          Gets the value of the property.
 void reset(BeanT o)
          Resets the property value on the given object.
 
Methods inherited from class com.sun.xml.bind.v2.runtime.property.PropertyImpl
getElementPropertyAccessor, hasSerializeURIAction, serializeBody, serializeURIs, wrapUp
 
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
getKind
 
Methods inherited from interface com.sun.xml.bind.v2.runtime.property.StructureLoaderBuilder
buildChildElementUnmarshallers
 

Field Detail

acc

protected final Accessor<BeanT,ListT> acc

lister

protected final Lister<BeanT,ListT,ItemT,Object> lister
Constructor Detail

ArrayProperty

protected ArrayProperty(JAXBContextImpl context,
                        RuntimePropertyInfo prop)
Method Detail

reset

public void reset(BeanT o)
           throws AccessorException
Description copied from interface: Property
Resets the property value on the given object.

... for example by setting 0 or null.

Throws:
AccessorException

getIdValue

public final String getIdValue(BeanT bean)
Description copied from interface: Property
Gets the value of the property. This method is only used when the corresponding PropertyInfo.id() is ID.ID, and therefore the return type is fixed to String.