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

public final Class AssociationMap<XmlNode>

extends Object
Class Inheritance
Imports
java.util.HashSet, .IdentityHashMap, .Map, .Set

Bi-directional map between elements, inner peers, and outer peers.

Todo

this should be rewritten for efficiency.

Author
Kohsuke Kawaguchi ([email protected])
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Map<XmlNode, AssociationMap.Entry<XmlNode>>
private final Map<Object, AssociationMap.Entry<XmlNode>>
private final Set<XmlNode>

Constructor Summary

AccessConstructor and Description
public
AssociationMap()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
addInner(XmlNode element, Object inner)

Records the new element <->inner peer association.

public void
addOuter(XmlNode element, Object outer)

Records the new element <-> outer peer association.

public void
addUsed(XmlNode n)

public AssociationMap.Entry<XmlNode>
public AssociationMap.Entry<XmlNode>
public Object
getInnerPeer(XmlNode element)

public Object
getOuterPeer(XmlNode element)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

byElementback to summary
private final Map<XmlNode, AssociationMap.Entry<XmlNode>> byElement
byPeerback to summary
private final Map<Object, AssociationMap.Entry<XmlNode>> byPeer
usedNodesback to summary
private final Set<XmlNode> usedNodes

Constructor Detail

AssociationMapback to summary
public AssociationMap()

Default constructor.

Method Detail

addInnerback to summary
public void addInner(XmlNode element, Object inner)

Records the new element <->inner peer association.

addOuterback to summary
public void addOuter(XmlNode element, Object outer)

Records the new element <-> outer peer association.

addUsedback to summary
public void addUsed(XmlNode n)
byElementback to summary
public AssociationMap.Entry<XmlNode> byElement(Object e)
byPeerback to summary
public AssociationMap.Entry<XmlNode> byPeer(Object o)
getInnerPeerback to summary
public Object getInnerPeer(XmlNode element)
getOuterPeerback to summary
public Object getOuterPeer(XmlNode element)
org.glassfish.jaxb.runtime.v2.runtime back to summary

public final Class AssociationMap.Entry<XmlNode>

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private XmlNode
element

XML element.

private Object
inner

inner peer, or null.

private Object
outer

outer peer, or null.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public XmlNode
public Object
public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementback to summary
private XmlNode element

XML element.

innerback to summary
private Object inner

inner peer, or null.

outerback to summary
private Object outer

outer peer, or null.

Constructor Detail

Entryback to summary
private Entry()

Method Detail

elementback to summary
public XmlNode element()
innerback to summary
public Object inner()
outerback to summary
public Object outer()