public class SubTree
extends java.lang.Object
implements java.util.Comparator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
docId |
protected long |
endNodeId |
protected java.lang.String |
startElementName |
protected long |
startNodeId |
protected java.lang.String |
subTreeId |
Constructor and Description |
---|
SubTree()
Defualt constructor
|
SubTree(java.lang.String myDocId,
java.lang.String mySubTreeId,
long myStartNodeId,
long myEndNodeId)
Constructor of subtree
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
methods from Comparator interface
|
boolean |
equals(java.lang.Object obj)
method from Comparator interface
|
java.lang.String |
getDocId()
Get the docId
|
long |
getEndNodeId()
Get end node id
|
java.lang.String |
getStartElementName()
Get startElementName
|
long |
getStartNodeId()
Get start node id
|
java.lang.String |
getSubTreeId()
Get the subTreeId
|
java.util.Stack<NodeRecord> |
getSubTreeNodeStack()
Get subtree node stack
|
void |
setDocId(java.lang.String myId)
Set the a docId
|
void |
setEndNodeId(long nodeId)
Set a end node id
|
void |
setStartElementName(java.lang.String elementName)
Set a startElementName
|
void |
setStartNodeId(long nodeId)
Set a start node id
|
void |
setSubTreeId(java.lang.String myId)
Set the a subtreeId
|
void |
setSubTreeNodeStack(java.util.Stack myStack)
Set subtree node stack
|
protected java.lang.String docId
protected java.lang.String subTreeId
protected java.lang.String startElementName
protected long startNodeId
protected long endNodeId
public SubTree()
public SubTree(java.lang.String myDocId, java.lang.String mySubTreeId, long myStartNodeId, long myEndNodeId)
public java.util.Stack<NodeRecord> getSubTreeNodeStack() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void setSubTreeNodeStack(java.util.Stack myStack)
public void setDocId(java.lang.String myId)
public java.lang.String getDocId()
public void setSubTreeId(java.lang.String myId)
public java.lang.String getSubTreeId()
public void setStartElementName(java.lang.String elementName)
public java.lang.String getStartElementName()
public void setStartNodeId(long nodeId)
public long getStartNodeId()
public void setEndNodeId(long nodeId)
public long getEndNodeId()
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
Copyright © 2020 Regents of the University of California. All Rights Reserved.