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

pack-priv final Class SingleMapNodeProperty<BeanT, ValueT extends Map<K, V>>

extends PropertyImpl<BeanT>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.api.AccessorException, org.glassfish.jaxb.core.v2.ClassFactory, org.glassfish.jaxb.core.v2.model.core.PropertyKind, org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeMapPropertyInfo, org.glassfish.jaxb.runtime.v2.runtime.JAXBContextImpl, .JaxBeanInfo, .Name, .XMLSerializer, org.glassfish.jaxb.runtime.v2.runtime.reflect.Accessor, org.glassfish.jaxb.runtime.v2.util.QNameMap, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.*, org.xml.sax.SAXException, javax.xml.namespace.QName, javax.xml.stream.XMLStreamException, java.io.IOException, java.util.*

Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final Accessor<BeanT, ValueT>
private final Loader
entryLoader

Handles <entry> and </entry>.

private final Name
entryTag

The tag name that corresponds to the 'entry' element.

private final Loader
itemsLoader

Handles <items> and </items>.

private JaxBeanInfo<BeanT>
private Loader
private static final Receiver
private final Name
private static final Class<T>[]
private final Class<? extends ValueT>
mapImplClass

The implementation class for this property.

private final boolean
private final Name
tagName

The tag name that surrounds the whole property.

private JaxBeanInfo<BeanT>
private Loader
private static final Receiver
private final Name
Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl:
fieldName

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
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 String
getIdValue(BeanT bean)

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

A Map property can never be ID.

public PropertyKind
public void
reset(BeanT bean)

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

Resets the property value on the given object.

public void
Inherited from org.glassfish.jaxb.runtime.v2.runtime.property.PropertyImpl:
getFieldNamegetInfohasSerializeURIActionisHiddenByOverrideserializeURIssetHiddenByOverridewrapUp

Field Detail

accback to summary
private final Accessor<BeanT, ValueT> acc
entryLoaderback to summary
private final Loader entryLoader

Handles <entry> and </entry>. The target will be set to a Map.

entryTagback to summary
private final Name entryTag

The tag name that corresponds to the 'entry' element.

itemsLoaderback to summary
private final Loader itemsLoader

Handles <items> and </items>. The target will be set to a Map.

keyBeanInfoback to summary
private JaxBeanInfo<BeanT> keyBeanInfo
keyLoaderback to summary
private Loader keyLoader
keyReceiverback to summary
private static final Receiver keyReceiver
keyTagback to summary
private final Name keyTag
knownImplClassesback to summary
private static final Class<T>[] knownImplClasses
mapImplClassback to summary
private final Class<? extends ValueT> mapImplClass

The implementation class for this property. If the property is null, we create an instance of this class.

nillableback to summary
private final boolean nillable
tagNameback to summary
private final Name tagName

The tag name that surrounds the whole property.

valueBeanInfoback to summary
private JaxBeanInfo<BeanT> valueBeanInfo
valueLoaderback to summary
private Loader valueLoader
valueReceiverback to summary
private static final Receiver valueReceiver
valueTagback to summary
private final Name valueTag

Constructor Detail

SingleMapNodePropertyback to summary
public SingleMapNodeProperty(JAXBContextImpl context, RuntimeMapPropertyInfo prop)
Annotations
@SuppressWarnings:unchecked

Method Detail

bareStartTagback to summary
private void bareStartTag(XMLSerializer w, Name tagName, Object peer) throws IOException, XMLStreamException, SAXException
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
getIdValueback to summary
public String getIdValue(BeanT bean)

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

A Map property can never be ID.

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
resetback to summary
public void reset(BeanT bean) 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
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.

org.glassfish.jaxb.runtime.v2.runtime.property back to summary

private final Class SingleMapNodeProperty.ReceiverImpl

extends Object
implements Receiver
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.property.SingleMapNodeProperty.ReceiverImpl
All Implemented Interfaces
org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Receiver

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
ReceiverImpl(int index)

Method Summary

Modifier and TypeMethod and Description
public void
receive(UnmarshallingContext.State state, Object o)

Implements org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Receiver.receive.

Called when the child loader is deactivated.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private final int index

Constructor Detail

ReceiverImplback to summary
public ReceiverImpl(int index)

Method Detail

receiveback to summary
public void receive(UnmarshallingContext.State state, Object o)

Implements org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Receiver.receive.

Doc from org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.Receiver.receive.

Called when the child loader is deactivated.

Annotations
@Override
org.glassfish.jaxb.runtime.v2.runtime.property back to summary

private final Class SingleMapNodeProperty.Stack<T>

extends Object
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.runtime.v2.runtime.property.SingleMapNodeProperty.Stack

Field Summary

Modifier and TypeField and Description
private SingleMapNodeProperty.Stack<T>
private T

Constructor Summary

AccessConstructor and Description
private
Stack(SingleMapNodeProperty.Stack<T> parent, T value)

private
Stack(T value)

Method Summary

Modifier and TypeMethod and Description
private static <T> T
private static <T> void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parentback to summary
private SingleMapNodeProperty.Stack<T> parent
valueback to summary
private T value

Constructor Detail

Stackback to summary
private Stack(SingleMapNodeProperty.Stack<T> parent, T value)
Stackback to summary
private Stack(T value)

Method Detail

popback to summary
private static <T> T pop(ThreadLocal<SingleMapNodeProperty.Stack<T>> holder)
pushback to summary
private static <T> void push(ThreadLocal<SingleMapNodeProperty.Stack<T>> holder, T value)