|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.NodeDataWrapper info.magnolia.imaging.parameters.SimpleEqualityNodeDataWrapper
public class SimpleEqualityNodeDataWrapper
A 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.
Field Summary |
---|
Fields inherited from interface info.magnolia.cms.core.NodeData |
---|
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED |
Constructor Summary | |
---|---|
SimpleEqualityNodeDataWrapper(info.magnolia.cms.core.NodeData nodeData)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getHandle()
|
int |
hashCode()
|
Methods inherited from class info.magnolia.cms.util.NodeDataWrapper |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleEqualityNodeDataWrapper(info.magnolia.cms.core.NodeData nodeData)
Method Detail |
---|
public String getHandle()
getHandle
in interface info.magnolia.cms.core.NodeData
getHandle
in class info.magnolia.cms.util.NodeDataWrapper
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |