Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.runtime.property

pack-priv abstract Class ArrayProperty<BeanT, ListT, ItemT>

extends PropertyImpl<BeanT>
Class Inheritance
Known Direct Subclasses
org.glassfish.jaxb.runtime.v2.runtime.property.ListElementProperty, org.glassfish.jaxb.runtime.v2.runtime.property.ArrayERProperty
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimePropertyInfo, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, .Lister

Property implementation for multi-value properties (including arrays and collections.)
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
protected final Accessor<BeanT, ListT>
protected final Lister<BeanT, ListT, ItemT, Object>
Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl:
fieldName

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public final String
getIdValue(BeanT bean)

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.getIdValue.

Gets the value of the property.

public void
reset(BeanT o)

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.reset.

Resets the property value on the given object.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl:
getElementPropertyAccessorgetFieldNamegetInfohasSerializeURIActionisHiddenByOverrideserializeBodyserializeURIssetHiddenByOverridewrapUp

Field Detail

accback to summary
protected final Accessor<BeanT, ListT> acc
listerback to summary
protected final Lister<BeanT, ListT, ItemT, Object> lister

Constructor Detail

ArrayPropertyback to summary
protected ArrayProperty(JAXBContextImpl context, RuntimePropertyInfo prop)

Method Detail

getIdValueback to summary
public final String getIdValue(BeanT bean)

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.getIdValue.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.Property.getIdValue.

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.

Annotations
@Override
resetback to summary
public void reset(BeanT o) throws AccessorException

Implements org.glassfish.jaxb.runtime.v2.runtime.property.Property.reset.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.Property.reset.

Resets the property value on the given object.

... for example by setting 0 or null.

Annotations
@Override