com.sun.xml.bind.v2.runtime
Class AssociationMap<XmlNode>

java.lang.Object
  extended by com.sun.xml.bind.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 ([email protected])

Constructor Summary
AssociationMap()
           
 
Method Summary
 void addInner(XmlNode element, Object inner)
          Records the new element<->inner peer association.
 void addOuter(XmlNode element, Object outer)
          Records the new element<->outer peer association.
 void addUsed(XmlNode n)
           
 com.sun.xml.bind.v2.runtime.AssociationMap.Entry<XmlNode> byElement(Object e)
           
 com.sun.xml.bind.v2.runtime.AssociationMap.Entry<XmlNode> byPeer(Object o)
           
 Object getInnerPeer(XmlNode element)
           
 Object getOuterPeer(XmlNode element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationMap

public AssociationMap()
Method Detail

addInner

public void addInner(XmlNode element,
                     Object inner)
Records the new element<->inner peer association.


addOuter

public void addOuter(XmlNode element,
                     Object outer)
Records the new element<->outer peer association.


addUsed

public void addUsed(XmlNode n)

byElement

public com.sun.xml.bind.v2.runtime.AssociationMap.Entry<XmlNode> byElement(Object e)

byPeer

public com.sun.xml.bind.v2.runtime.AssociationMap.Entry<XmlNode> byPeer(Object o)

getInnerPeer

public Object getInnerPeer(XmlNode element)

getOuterPeer

public Object getOuterPeer(XmlNode element)


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.