|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.noelement.Id
public class Id
This class represents an 'id' or 'idref' in the salsa corpora. It overwrites the equals() and the getHash() method so that two Id objects are the same if they have the same id.
Constructor Summary | |
---|---|
Id(java.lang.String id)
Default constructor that takes the id as an argument. |
|
Id(java.lang.String id,
boolean isTerminal)
Constructor that takes the id and isTerminal as an argument. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the id. |
boolean |
getIsTerminal()
Returns true if this Id belongs to a terminal
node in the given corpus. |
void |
setId(java.lang.String id)
Sets the id. |
void |
setIsTerminal(boolean isTerminal)
Set isTerminal to true if this Id
belongs to a terminal node in the given corpus. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Id(java.lang.String id)
id
- public Id(java.lang.String id, boolean isTerminal)
isTerminal
to false
if this Id
belongs to a nonterminal in the corpus.
id
- Method Detail |
---|
public java.lang.String getId()
public boolean getIsTerminal()
true
if this Id
belongs to a terminal
node in the given corpus.
public void setId(java.lang.String id)
public void setIsTerminal(boolean isTerminal)
isTerminal
to true
if this Id
belongs to a terminal node in the given corpus.
isTerminal
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |