|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.maltparser.core.syntaxgraph.GraphElement
public abstract class GraphElement
| Constructor Summary | |
|---|---|
GraphElement()
|
|
| Method Summary | |
|---|---|
void |
addLabel(LabelSet labels)
Adds the labels of the label set to the label set of the graph element. |
void |
addLabel(SymbolTable table,
int code)
Adds a label (an integer value) to the symbol table and to the graph element. |
void |
addLabel(SymbolTable table,
String symbol)
Adds a label (a string value) to the symbol table and to the graph element. |
void |
clear()
Resets the graph element. |
int |
compareTo(GraphElement o)
|
boolean |
equals(Object obj)
|
SyntaxGraph |
getBelongsToGraph()
Returns the graph (structure) in which the graph element belongs to. |
int |
getLabelCode(SymbolTable table)
Returns the label code (an integer representation) of the symbol table if it exists, otherwise an exception is thrown. |
LabelSet |
getLabelSet()
Returns the label set. |
String |
getLabelSymbol(SymbolTable table)
Returns the label symbol(a string representation) of the symbol table if it exists, otherwise an exception is thrown. |
Set<SymbolTable> |
getLabelTypes()
Returns a set of symbol tables (labeling functions or label types) that labels the graph element. |
int |
hashCode()
|
boolean |
hasLabel(SymbolTable table)
Returns true if the graph element has a label for the symbol table, otherwise false. |
boolean |
isLabeled()
Returns true if the graph element has one or more labels, otherwise false. |
int |
nLabels()
Returns the number of labels of the graph element. |
void |
removeLabel(SymbolTable table)
|
void |
removeLabels()
|
void |
setBelongsToGraph(SyntaxGraph belongsToGraph)
Sets the graph (structure) in which the graph element belongs to. |
String |
toString()
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphElement()
| Method Detail |
|---|
public void addLabel(SymbolTable table,
String symbol)
throws MaltChainedException
addLabel in interface Elementtable - the symbol tablesymbol - a label symbol
MaltChainedException
public void addLabel(SymbolTable table,
int code)
throws MaltChainedException
addLabel in interface Elementtable - the symbol tablecode - a label code
MaltChainedException
public void addLabel(LabelSet labels)
throws MaltChainedException
addLabel in interface Elementlabels - a label set.
MaltChainedException
public boolean hasLabel(SymbolTable table)
throws MaltChainedException
hasLabel in interface Elementtable - the symbol table
MaltChainedException
public String getLabelSymbol(SymbolTable table)
throws MaltChainedException
getLabelSymbol in interface Elementtable - the symbol table
MaltChainedException
public int getLabelCode(SymbolTable table)
throws MaltChainedException
getLabelCode in interface Elementtable - the symbol table
MaltChainedExceptionpublic boolean isLabeled()
isLabeled in interface Elementpublic int nLabels()
nLabels in interface Elementpublic Set<SymbolTable> getLabelTypes()
getLabelTypes in interface Elementpublic LabelSet getLabelSet()
getLabelSet in interface Element
public void removeLabel(SymbolTable table)
throws MaltChainedException
removeLabel in interface ElementMaltChainedException
public void removeLabels()
throws MaltChainedException
removeLabels in interface ElementMaltChainedExceptionpublic SyntaxGraph getBelongsToGraph()
getBelongsToGraph in interface Elementpublic void setBelongsToGraph(SyntaxGraph belongsToGraph)
setBelongsToGraph in interface ElementbelongsToGraph - a graph (structure).
public void clear()
throws MaltChainedException
clear in interface ElementMaltChainedExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(GraphElement o)
public String toString()
toString in class Object
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||