public class SimpleEqualityNodeDataWrapper
extends info.magnolia.cms.util.NodeDataWrapper
NodeDataWrapper
which simply defines equals() and hashCode() methods
based on the property's path and HierarchyManager name.
It also caches the handle of the node, so that equals() and hashCode()
can be used even if the node's JCR session was terminated.Constructor and Description |
---|
SimpleEqualityNodeDataWrapper(info.magnolia.cms.core.NodeData nodeData) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getHandle() |
int |
hashCode() |
delete, getAttribute, getAttributeNames, getBoolean, getContentLength, getDate, getDouble, getHierarchyManager, getJCRProperty, getLong, getName, getParent, getReferencedContent, getReferencedContent, getStream, getString, getString, getType, getValue, getValues, getWrappedNodeData, isExist, isGranted, isMultiValue, refresh, save, setAttribute, setAttribute, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setWrappedNodeData, toString, wrap
public SimpleEqualityNodeDataWrapper(info.magnolia.cms.core.NodeData nodeData)
public String getHandle()
getHandle
in interface info.magnolia.cms.core.NodeData
getHandle
in class info.magnolia.cms.util.NodeDataWrapper
Copyright © 2016 Magnolia International Ltd.. All rights reserved.