|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectde.pado.dv.Node
public class Node
This class models a Node. A node has a word and a part of speech. It can be in a graph, in which case it additionally has an index, but it does not have to.
| Constructor Summary | |
|---|---|
Node(java.lang.String word,
java.lang.String pos)
Initialisation for a node without an index (word, POS) |
|
Node(java.lang.String word,
java.lang.String pos,
java.lang.Integer index)
Initialisation for a node with an index (word, POS, index) |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getIndex()
Returns the index (if present). |
java.lang.String |
getPOS()
Returns the part of speech |
java.lang.String |
getWord()
Returns the word |
boolean |
matches(Node n)
Two nodes match iff their words and parts of speech are equal, or if either is a wildcard ("*") |
java.lang.String |
toString()
Returns a string representation of the Node object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node(java.lang.String word,
java.lang.String pos,
java.lang.Integer index)
public Node(java.lang.String word,
java.lang.String pos)
| Method Detail |
|---|
public java.lang.String getWord()
public java.lang.String getPOS()
public java.lang.Integer getIndex()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean matches(Node n)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||