public interface Element
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(LabelSet labelSet)
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,
java.lang.String symbol)
Adds a label (a string value) to the symbol table and to the graph element.
|
void |
clear()
Resets the graph element.
|
LabeledStructure |
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.
|
java.lang.String |
getLabelSymbol(SymbolTable table)
Returns the label symbol(a string representation) of the symbol table if it exists, otherwise
an exception is thrown.
|
java.util.Set<SymbolTable> |
getLabelTypes()
Returns a set of symbol tables (labeling functions or label types) that labels the graph element.
|
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(LabeledStructure belongsToGraph)
Sets the graph (structure) in which the graph element belongs to.
|
void addLabel(SymbolTable table, java.lang.String symbol) throws MaltChainedException
table - the symbol tablesymbol - a label symbolMaltChainedExceptionvoid addLabel(SymbolTable table, int code) throws MaltChainedException
table - the symbol tablecode - a label codeMaltChainedExceptionvoid addLabel(LabelSet labelSet) throws MaltChainedException
labelSet - a label set.MaltChainedExceptionboolean hasLabel(SymbolTable table) throws MaltChainedException
table - the symbol tableMaltChainedExceptionjava.lang.String getLabelSymbol(SymbolTable table) throws MaltChainedException
table - the symbol tableMaltChainedExceptionint getLabelCode(SymbolTable table) throws MaltChainedException
table - the symbol tableMaltChainedExceptionboolean isLabeled()
int nLabels()
java.util.Set<SymbolTable> getLabelTypes()
LabelSet getLabelSet()
void removeLabel(SymbolTable table) throws MaltChainedException
MaltChainedExceptionvoid removeLabels() throws MaltChainedException
MaltChainedExceptionLabeledStructure getBelongsToGraph()
void setBelongsToGraph(LabeledStructure belongsToGraph)
belongsToGraph - a graph (structure).void clear() throws MaltChainedException
MaltChainedExceptionCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.