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

pack-priv final Class ListElementProperty<BeanT, ListT, ItemT>

extends ArrayProperty<BeanT, ListT, ItemT>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.runtime.v2.util.QNameMap, org.glassfish.jaxb.core.v2.model.core.ElementPropertyInfo, .PropertyKind, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeElementPropertyInfo, .RuntimeTypeRef, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, .Name, .Transducer, .XMLSerializer, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, .ListTransducedAccessorImpl, .TransducedAccessor, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.ChildLoader, .DefaultValueLoaderDecorator, .LeafPropertyLoader, .Loader, org.xml.sax.SAXException, javax.xml.stream.XMLStreamException, java.io.IOException

Property implementation for ElementPropertyInfo whose ElementPropertyInfo#isValueList() is true.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final String
private final Name
private final TransducedAccessor<BeanT>
xacc

Converts all the values to a list and back.

Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayProperty:
acclister

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)

Implements org.glassfish.jaxb.runtime.v2.runtime.property.StructureLoaderBuilder.buildChildElementUnmarshallers.

Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specified QNameMap by elements that are expected by this property.

public Accessor<BeanT, ValueT>
public PropertyKind
public void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.ArrayProperty:
getIdValuereset

Field Detail

defaultValueback to summary
private final String defaultValue
tagNameback to summary
private final Name tagName
xaccback to summary
private final TransducedAccessor<BeanT> xacc

Converts all the values to a list and back.

Constructor Detail

ListElementPropertyback to summary
public ListElementProperty(JAXBContextImpl grammar, RuntimeElementPropertyInfo prop)

Method Detail

buildChildElementUnmarshallersback to summary
public void buildChildElementUnmarshallers(UnmarshallerChain chain, QNameMap<ChildLoader> handlers)

Implements org.glassfish.jaxb.runtime.v2.runtime.property.StructureLoaderBuilder.buildChildElementUnmarshallers.

Doc from org.glassfish.jaxb.runtime.v2.runtime.property.StructureLoaderBuilder.buildChildElementUnmarshallers.

Every Property class has an implementation of buildChildElementUnmarshallers which will fill in the specified QNameMap by elements that are expected by this property.

Annotations
@Override
getElementPropertyAccessorback to summary
public Accessor<BeanT, ValueT> getElementPropertyAccessor(String nsUri, String localName)

Overrides org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl.getElementPropertyAccessor.

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

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

If this property is mapped to the specified element, return an accessor to it.

Annotations
@Override
getKindback to summary
public PropertyKind getKind()

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

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

Gets the Kind of property

Annotations
@Override
serializeBodyback to summary
public void serializeBody(BeanT o, XMLSerializer w, Object outerPeer) throws SAXException, AccessorException, IOException, XMLStreamException

Overrides org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl.serializeBody.

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

Annotations
@Override
Exceptions
AccessorException:

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

If thrown, caught by the caller and reported.