public interface SemanticIdentifierMap
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
SemanticIdentifier |
addLabel(SemanticLabel label)
Adds a SemanticLabel to the map, or returns an existing
SemanticIdentifier if already in the map
|
java.util.ArrayList<SemanticIdentifier> |
addLabels(java.util.Collection<SemanticLabel> labels)
Adds a list of SemanticLabels to the map, returning the list of
the corresponding SemanticIdentifiers for the given SemanticLabels.
|
void |
addSemanticIdentifierMapListener(SemanticIdentifierMapListener listener)
Adds a listener to this semantic identifier map.
|
SemanticIdentifier |
findIdentifier(SemanticLabel label)
Queries into the map to find a SemanticLabel
|
java.util.Collection<SemanticIdentifier> |
getIdentifiers()
Gets all the SemanticIdentifiers in the map.
|
void |
removeSemanticIdentifierMapListener(SemanticIdentifierMapListener listener)
Removes a listener from this semantic identifier map.
|
SemanticIdentifier findIdentifier(SemanticLabel label)
label
- SemanticLabel to query into the map.SemanticIdentifier addLabel(SemanticLabel label)
label
- SemanticLabel to add to or retrieve from the map.java.lang.IllegalArgumentException
- if label is null.java.util.ArrayList<SemanticIdentifier> addLabels(java.util.Collection<SemanticLabel> labels)
labels
- The SemanticLabels to add.java.lang.IllegalArgumentException
- If one of the labels is null.java.util.Collection<SemanticIdentifier> getIdentifiers()
void addSemanticIdentifierMapListener(SemanticIdentifierMapListener listener)
listener
- The listener to add.void removeSemanticIdentifierMapListener(SemanticIdentifierMapListener listener)
listener
- The listener to remove.