|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.NodeID
public class NodeID
Holds hierarchical ID of a node. The hierarchy models nested meta nodes. All IDs will have one static instance of ROOTID as their top ID in this hierarchy.
| Field Summary | |
|---|---|
(package private) static NodeID |
ROOTID
|
| Constructor Summary | |
|---|---|
NodeID(int ix)
Creates top level NodeID object. |
|
NodeID(NodeID prefix,
int ix)
Creates now NodeID object based on a predefined prefix (usually the ID of the encapsulating project or metanode) and the node's ID itself. |
|
| Method Summary | |
|---|---|
int |
compareTo(NodeID o)
|
boolean |
equals(Object obj)
|
String |
getIDWithoutRoot()
|
int |
getIndex()
|
NodeID |
getPrefix()
|
int |
hashCode()
|
boolean |
hasPrefix(NodeID prefix)
Checks for matching prefix (this node prefix can be longer, though). |
boolean |
hasSamePrefix(NodeID prefix)
Checks for exact matching prefixes. |
String |
toString()
Returns on string representation of index. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final NodeID ROOTID
| Constructor Detail |
|---|
public NodeID(NodeID prefix,
int ix)
prefix - of IDix - itselfpublic NodeID(int ix)
ix - itself| Method Detail |
|---|
public NodeID getPrefix()
public int getIndex()
public String getIDWithoutRoot()
public boolean hasSamePrefix(NodeID prefix)
prefix - to check
public boolean hasPrefix(NodeID prefix)
prefix - to check
public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int compareTo(NodeID o)
compareTo in interface Comparable<NodeID>Comparable.compareTo(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||