Salt  3.3.6-SNAPSHOT
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.extensions.notification.graph.impl.LabelNotifierImpl Class Reference

Inherits org.corpus_tools.salt.graph.impl.LabelImpl, org.corpus_tools.salt.graph.Label, and org.corpus_tools.salt.extensions.notification.graph.Notifier.

Public Member Functions

List< ListenergetListener ()
 Returns an unmodifiable list of all listeners.If no listener is registered null is returned.
Returns
all registered listeners

 
synchronized void addListener (Listener listener)
 Adds a new listener, which then will be notified about a change in this object.
Parameters
listenerto be notified

 
void addListener (Collection< Listener > listener)
 Adds a set of new listener, which then will be notified about a change in this object.
Parameters
listenerto be notified

 
synchronized void removeListener (Listener listener)
 Removes a listener, which won't be notified about a change in this object anymore.
Parameters
listenerto be notified

 
void addLabel (Label label)
 Adds the given Label object to the list of labels.
Parameters
labelthe Label object to be added
Notifies all registered listeners.
 
void removeLabel (String qName)
 Removes the label having the passed qName.
Parameters
qNamequalified name of the Label to be removed
Notifies all registered listeners.
 
void removeAll ()
 Removes all Label objects. Notifies all registered listeners.
 
void setNamespace (String namespace)
 Sets the optional namespace of the label.The combination of namespace and name must be unique in the containing object.
Parameters
namespacenamespace
Notifies all registered listeners.
 
void setName (String name)
 Sets the name of the label.The combination of namespace and name must be unique in the containing object. The passed name must not be empty.
Parameters
namename of the label
Notifies all registered listeners.
 
void setQName (String qName)
 Sets the qName of this label, which is the combination of namespace and name must be unique in the containing object.
Parameters
qnamethe qname is splitted into NAMESPACE { NS_SEPERATOR} NAME
Notifies all registered listeners.
 
void setValue (Object value)
 Sets the value of this label.
Parameters
valuegeneric value of this label.
Notifies all registered listeners.
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelImpl
 LabelImpl (Label delegatee)
 Initializes a new object and sets an internal delegatee. More...
 
String getNamespace ()
 { Label::getNamespace()}
 
void setNamespace (String namespace)
 { Label::setNamespace(String)}
 
String getName ()
 { Label::getName()}
 
void setName (String name)
 { Label::setName(String)}
 
String getQName ()
 { Label::getQName()}
 
void setQName (String newQName)
 { Label::setQName(String)}
 
Object getValue ()
 { Label::getValue()}
 
void setValue (Object value)
 { Label::setValue(Object)}
 
void setContainer (LabelableElement container)
 
LabelableElement getContainer ()
 Returns the container element, which contains this label.The label and the container are double chained, which means when a label is added to the container, the labels container is automatically set to it or even removed.
Returns
container of this label

 
void basicSetLabelableElement (LabelableElement container)
 This is an internally used method. More...
 
Label copy (Label other)
 This method the namespace, the name and the value from this object to the passed one and returns the passed one. More...
 
String toString ()
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
 LabelableElementImpl (LabelableElement delegatee)
 Initializes a new object and sets an internal delegate. More...
 
Collection< LabelgetLabels ()
 { LabelableElement::getLabels()}
 
Label getLabel (String qName)
 { LabelableElement::getLabel(String)}
 
Label getLabel (String namespace, String name)
 { LabelableElement::getLabel(String, String)}
 
Set< LabelgetLabelsByNamespace (String namespace)
 { LabelableElement::getLabelsByNamespace(String)}
 
void addLabel (Label label)
 Adds the given Label object to the list of labels.
Parameters
labelthe Label object to be added

 
void basicAddLabel (Label label)
 This is an internally used method. More...
 
void removeLabel (String qName)
 { LabelableElement::removeLabel(String)}
 
void basicRemoveLabel (String qName)
 This is an internally used method. More...
 
void removeLabel (String namespace, String name)
 { LabelableElement::removeLabel(String, String))}
 
void removeAll ()
 { LabelableElement::removeAll()}
 
boolean containsLabel (String qName)
 { LabelableElement::containsLabel(String)}
 
Integer sizeLabels ()
 { LabelableElement::sizeLabels()}
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.Label
public< C extends LabelableElement > void setContainer (C container)
 Sets the container element, which contains this label. More...
 
- Public Member Functions inherited from org.corpus_tools.salt.util.Copyable< T >
copy (T other)
 Takes a new 'empty' object and sets all its fields by copying by value. More...
 

Protected Attributes

List< ListenerlistenerList = null
 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LabelImpl
String name = null
 
Object value = null
 The generic value field. More...
 
LabelableElement container = null
 The container of this object. More...
 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
LabelableElement delegate = null
 A delegate object of the same type. More...
 

Additional Inherited Members

- Static Public Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
static final int EXPECTED_NUMBER_OF_LABELS = 5
 Determines the expected number of labels. More...
 
- Static Public Attributes inherited from org.corpus_tools.salt.graph.Label
static final String NS_SEPERATOR = "::"
 Separator between namespace and name: qname= NAMESPACE { NS_SEPERATOR} NAME.
 
- Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelImpl
Label getDelegate ()
 
- Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
LabelableElement getDelegate ()
 Returns the delegate object. More...