de.danielbechler.diff.node
Class MapNode

java.lang.Object
  extended by de.danielbechler.diff.node.DefaultNode
      extended by de.danielbechler.diff.node.MapNode
All Implemented Interfaces:
Accessor, CanonicalAccessor, PropertyDescriptor, Node

public class MapNode
extends DefaultNode

Author:
Daniel Bechler

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.danielbechler.diff.node.Node
Node.State, Node.Visitor
 
Field Summary
 
Fields inherited from interface de.danielbechler.diff.node.Node
ROOT
 
Constructor Summary
MapNode(Node parentNode, Accessor accessor, Class<?> valueType)
           
 
Method Summary
 Accessor accessorForKey(Object key)
           
 int indexKey(Object key)
           
 void indexKeys(Map<?,?> map)
           
 void indexKeys(Map<?,?> map, Map<?,?>... additionalMaps)
           
 boolean isMapNode()
           
 MapNode toMapNode()
           
 
Methods inherited from class de.danielbechler.diff.node.DefaultNode
addChild, canonicalGet, canonicalSet, canonicalUnset, get, getCategories, getChild, getChild, getChild, getChildren, getParentNode, getPathElement, getPropertyPath, getState, getType, hasChanges, hasChildren, isAdded, isChanged, isCircular, isCollectionNode, isEqualsOnly, isIgnored, isRemoved, isRootNode, isUntouched, matches, set, setParentNode, setState, setType, toCollectionNode, toString, unset, visit, visit, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapNode

public MapNode(Node parentNode,
               Accessor accessor,
               Class<?> valueType)
Method Detail

indexKey

public final int indexKey(Object key)

indexKeys

public final void indexKeys(Map<?,?> map)

indexKeys

public final void indexKeys(Map<?,?> map,
                            Map<?,?>... additionalMaps)

accessorForKey

public Accessor accessorForKey(Object key)

isMapNode

public final boolean isMapNode()
Specified by:
isMapNode in interface Node
Overrides:
isMapNode in class DefaultNode

toMapNode

public final MapNode toMapNode()
Specified by:
toMapNode in interface Node
Overrides:
toMapNode in class DefaultNode


Copyright © 2012. All Rights Reserved.