org.hippoecm.hst.jackrabbit.ocm.hippo
Class HippoStdNode

java.lang.Object
  extended by org.hippoecm.hst.jackrabbit.ocm.hippo.HippoStdNode
All Implemented Interfaces:
NodeAware, SimpleObjectConverterAware
Direct Known Subclasses:
HippoStdDocument, HippoStdFolder

public class HippoStdNode
extends Object
implements NodeAware, SimpleObjectConverterAware


Nested Class Summary
 class HippoStdNode.ComparatorMap
           
 
Constructor Summary
HippoStdNode()
           
 
Method Summary
 boolean equalCompare(Object compare)
          A convenience method capable of comparing two HippoStdNode instances for you for the underlying jcr node.
 Map<Object,Object> getEqualComparator()
          A convenience method capable of comparing two HippoStdNode instances for you for the underlying jcr node.
 HippoStdNode getHippoStdNode(String relPath)
           
 String getName()
           
 javax.jcr.Node getNode()
           
 HippoStdFolder getParentFolder()
           
 String getPath()
           
 Map<String,Object> getProperty()
           
 SimpleObjectConverter getSimpleObjectConverter()
           
 void setNode(javax.jcr.Node node)
          Callback that supplies the originating JCR node.
 void setPath(String path)
           
 void setSimpleObjectConverter(SimpleObjectConverter simpleObjectConverter)
          Callback that supplies the object converter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HippoStdNode

public HippoStdNode()
Method Detail

getNode

public javax.jcr.Node getNode()

setNode

public void setNode(javax.jcr.Node node)
Description copied from interface: NodeAware
Callback that supplies the originating JCR node.

Specified by:
setNode in interface NodeAware

getSimpleObjectConverter

public SimpleObjectConverter getSimpleObjectConverter()

setSimpleObjectConverter

public void setSimpleObjectConverter(SimpleObjectConverter simpleObjectConverter)
Description copied from interface: SimpleObjectConverterAware
Callback that supplies the object converter.

Specified by:
setSimpleObjectConverter in interface SimpleObjectConverterAware

getPath

public String getPath()

setPath

public void setPath(String path)

getName

public String getName()

getProperty

public Map<String,Object> getProperty()

getHippoStdNode

public HippoStdNode getHippoStdNode(String relPath)

getParentFolder

public HippoStdFolder getParentFolder()

equalCompare

public boolean equalCompare(Object compare)
A convenience method capable of comparing two HippoStdNode instances for you for the underlying jcr node. When the nodes being compared have the same canonical node (physical equivalence) this method returns true.

Parameters:
compare - the object to compare to
Returns:
true if the object compared has the same canonical node

getEqualComparator

public Map<Object,Object> getEqualComparator()
A convenience method capable of comparing two HippoStdNode instances for you for the underlying jcr node. When the nodes being compared have the same canonical node (physical equivalence) the get(Object o) returns true. In expression language, for example jsp, you can use to compare as follows: ${mydocument.equalComparator[otherdocument]} this only returns true when mydocument and otherdocument have the same canonical node

Returns:
a ComparatorMap in which you can compare HippoStdNode's via the get(Object o)


Copyright © 2008-2012 Hippo. All Rights Reserved.