| Constructor and Description |
|---|
NodeImpl(String path)
Constructs a new
NodeImpl. |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildNodeEntry(Node child)
Adds the given
Node as child. |
void |
addProperty(String key,
String value) |
void |
diff(Node other,
org.apache.jackrabbit.mk.model.NodeDiffHandler handler)
Diffs this node with the other node and calls the passed in diff handler.
|
boolean |
equals(Object obj) |
int |
getChildNodeCount()
Returns the total number of children of this node.
|
Iterator<Node> |
getChildNodeEntries(int offset,
int count)
Returns the children iterator for the supplied offset and count.
|
Node |
getChildNodeEntry(String name)
Returns the descendant node entry (descendant)
|
String |
getPath()
Returns the path of this
Node. |
Map<String,String> |
getProperties()
Returns the properties this
Node was created with. |
Long |
getRevisionId()
Returns the revision id of this node if known already, else this will return
null. |
int |
hashCode() |
void |
removeChildNodeEntry(String name) |
void |
setRevisionId(Long revisionId) |
String |
toString() |
public NodeImpl(String path)
NodeImpl.path - The path.public void addChildNodeEntry(Node child)
Node as child.child - The node to add.public Node getChildNodeEntry(String name)
NodegetChildNodeEntry in interface Nodename - Name of the descendant.public int getChildNodeCount()
Node
This is not necessarily equal to the number of children returned by
#getChildren() since this Node might be created with only
a subset of children.
getChildNodeCount in interface Nodepublic Iterator<Node> getChildNodeEntries(int offset, int count)
NodegetChildNodeEntries in interface Nodeoffset - The offset to return the children from.count - The number of children to return.public void removeChildNodeEntry(String name)
public Map<String,String> getProperties()
NodeNode was created with.getProperties in interface Nodepublic String getPath()
NodeNode.public Long getRevisionId()
Nodenull.
The revision id will be determined only after the commit has been successfully
performed or the node has been read as part of an existing revision.getRevisionId in interface Nodenull.public void setRevisionId(Long revisionId)
public void diff(Node other, org.apache.jackrabbit.mk.model.NodeDiffHandler handler)
NodeCopyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.