public class StructNodeDelegate extends Object implements IStructNode
IStructNode
namely containing the position of all related
siblings, the first-child and all nodes defined by the NodeDelegate
as well.Constructor and Description |
---|
StructNodeDelegate(NodeDelegate pDel,
long pFirstChild,
long pRightSib,
long pLeftSib,
long pChildCount)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decrementChildCount()
Decrementing the child count.
|
boolean |
equals(Object obj) |
long |
getChildCount()
Gets the number of children of the item.
|
long |
getDataKey()
Delegate method for getNodeKey.
|
long |
getFirstChildKey()
Gets key of the context item's first child.
|
com.google.common.hash.Funnel<IData> |
getFunnel()
Getting a Funnel for computing guava-based hashes.
|
long |
getHash()
Delegate method for getHash.
|
int |
getKind()
Gets the kind of the item (atomic value, element node, attribute
node....).
|
long |
getLeftSiblingKey()
Gets key of the context item's left sibling.
|
long |
getParentKey()
Delegate method for getParentKey.
|
long |
getRightSiblingKey()
Gets key of the context item's right sibling.
|
int |
getTypeKey()
Delegate method for getTypeKey.
|
boolean |
hasFirstChild()
Declares, whether the item has a first child.
|
int |
hashCode() |
boolean |
hasLeftSibling()
Declares, whether the item has a left sibling.
|
boolean |
hasParent()
Delegate method for hasParent.
|
boolean |
hasRightSibling()
Declares, whether the item has a right sibling.
|
void |
incrementChildCount()
Incrementing the child count.
|
void |
serialize(DataOutput pOutput)
Serializing to given dataput
|
void |
setFirstChildKey(long pKey)
Setting the first child sibling key to this node.
|
void |
setHash(long pHash)
Delegate method for setHash.
|
void |
setLeftSiblingKey(long pKey)
Setting the left sibling key to this node.
|
void |
setParentKey(long pParentKey)
Delegate method for setParentKey.
|
void |
setRightSiblingKey(long pKey)
Setting the right sibling key to this node.
|
void |
setTypeKey(int pTypeKey)
Delegate method for setTypeKey.
|
String |
toString() |
public StructNodeDelegate(NodeDelegate pDel, long pFirstChild, long pRightSib, long pLeftSib, long pChildCount)
pDel
- to be setpFirstChild
- to be setpRightSib
- to be setpLeftSib
- to be setpChildCount
- to be setpublic int getKind()
public boolean hasFirstChild()
hasFirstChild
in interface IStructNode
public boolean hasLeftSibling()
hasLeftSibling
in interface IStructNode
public boolean hasRightSibling()
hasRightSibling
in interface IStructNode
public long getChildCount()
getChildCount
in interface IStructNode
public long getFirstChildKey()
getFirstChildKey
in interface IStructNode
public long getLeftSiblingKey()
getLeftSiblingKey
in interface IStructNode
public long getRightSiblingKey()
getRightSiblingKey
in interface IStructNode
public void setRightSiblingKey(long pKey)
setRightSiblingKey
in interface IStructNode
pKey
- the new key to be set.public void setLeftSiblingKey(long pKey)
setLeftSiblingKey
in interface IStructNode
pKey
- the new key to be set.public void setFirstChildKey(long pKey)
setFirstChildKey
in interface IStructNode
pKey
- the new key to be set.public void decrementChildCount()
decrementChildCount
in interface IStructNode
public void incrementChildCount()
incrementChildCount
in interface IStructNode
public long getDataKey()
getDataKey
in interface IData
NodeDelegate.getDataKey()
public long getParentKey()
getParentKey
in interface INode
NodeDelegate.getParentKey()
public void setParentKey(long pParentKey)
setParentKey
in interface INode
pParentKey
- NodeDelegate.setParentKey(long)
public long getHash()
getHash
in interface INode
NodeDelegate.getHash()
public void setHash(long pHash)
setHash
in interface INode
pHash
- NodeDelegate.setHash(long)
public int getTypeKey()
getTypeKey
in interface INode
NodeDelegate.getTypeKey()
public void setTypeKey(int pTypeKey)
setTypeKey
in interface INode
pTypeKey
- NodeDelegate.setTypeKey(int)
public boolean hasParent()
hasParent
in interface INode
NodeDelegate.hasParent()
public void serialize(DataOutput pOutput) throws TTIOException
serialize
in interface IData
pOutput
- to serialize toTTIOException
public com.google.common.hash.Funnel<IData> getFunnel()
IData
Copyright © 2013. All Rights Reserved.