- java.lang.Object
-
- org.glassfish.jaxb.runtime.v2.runtime.AssociationMap<XmlNode>
-
public final class AssociationMap<XmlNode> extends Object
Bi-directional map between elements, inner peers, and outer peers.TODO: this should be rewritten for efficiency.
- Since:
- 2.0
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description AssociationMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInner(XmlNode element, Object inner)Records the newelement <->innerpeer association.voidaddOuter(XmlNode element, Object outer)Records the newelement <-> outerpeer association.voidaddUsed(XmlNode n)org.glassfish.jaxb.runtime.v2.runtime.AssociationMap.Entry<XmlNode>byElement(Object e)org.glassfish.jaxb.runtime.v2.runtime.AssociationMap.Entry<XmlNode>byPeer(Object o)ObjectgetInnerPeer(XmlNode element)ObjectgetOuterPeer(XmlNode element)
-
-
-
Method Detail
-
addInner
public void addInner(XmlNode element, Object inner)
Records the newelement <->innerpeer association.
-
addOuter
public void addOuter(XmlNode element, Object outer)
Records the newelement <-> outerpeer association.
-
addUsed
public void addUsed(XmlNode n)
-
byElement
public org.glassfish.jaxb.runtime.v2.runtime.AssociationMap.Entry<XmlNode> byElement(Object e)
-
-