de.danielbechler.diff.node
Class CollectionNode

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

public final class CollectionNode
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
CollectionNode(Node parent, Accessor accessor, Class<?> valueType)
           
 
Method Summary
 Accessor accessorForItem(Object item)
           
 Collection<Node> getAdditions()
           
 Collection<Node> getChanges()
           
 Collection<Node> getRemovals()
           
 boolean isCollectionNode()
           
 CollectionNode toCollectionNode()
           
 
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, isEqualsOnly, isIgnored, isMapNode, isRemoved, isRootNode, isUntouched, matches, set, setParentNode, setState, setType, toMapNode, toString, unset, visit, visit, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionNode

public CollectionNode(Node parent,
                      Accessor accessor,
                      Class<?> valueType)
Method Detail

accessorForItem

public Accessor accessorForItem(Object item)

getAdditions

public Collection<Node> getAdditions()

getRemovals

public Collection<Node> getRemovals()

getChanges

public Collection<Node> getChanges()

isCollectionNode

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

toCollectionNode

public CollectionNode toCollectionNode()
Specified by:
toCollectionNode in interface Node
Overrides:
toCollectionNode in class DefaultNode


Copyright © 2012. All Rights Reserved.