org.jgraph.pad
Class DefaultGraphModelFileFormatXML.AttributeCollection

java.lang.Object
  extended byorg.jgraph.pad.DefaultGraphModelFileFormatXML.AttributeCollection
Enclosing class:
DefaultGraphModelFileFormatXML

public class DefaultGraphModelFileFormatXML.AttributeCollection
extends java.lang.Object


Field Summary
 java.util.List maps
           
 
Constructor Summary
DefaultGraphModelFileFormatXML.AttributeCollection()
           
 
Method Summary
 int addMap(java.util.Map attr)
           
 void clear()
           
 java.util.Map diffMap(java.util.Map oldState, java.util.Map newState)
          Returns a new map that contains all (key, value)-pairs of newState where either key is not used or value is different for key in oldState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maps

public java.util.List maps
Constructor Detail

DefaultGraphModelFileFormatXML.AttributeCollection

public DefaultGraphModelFileFormatXML.AttributeCollection()
Method Detail

addMap

public int addMap(java.util.Map attr)

clear

public void clear()

diffMap

public java.util.Map diffMap(java.util.Map oldState,
                             java.util.Map newState)
Returns a new map that contains all (key, value)-pairs of newState where either key is not used or value is different for key in oldState. In other words, this method removes the common entries from oldState and newState, and returns the "difference" between the two. This method never returns null.