public interface LabelableElement
Label objects and makes
them accessible.
When a label is added to another container, it is removed from it's former container.
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(Label label)
Adds the given Label object to the list of labels.
|
boolean |
containsLabel(String qName)
Checks if this object has a Label object in its list having the given
qualified name.
|
Label |
getLabel(String qName)
Returns a label having the passed qualified name.
|
Label |
getLabel(String namespace,
String name)
Returns a label having the passed namespace and name, if such a label is
contained by this object
|
Collection<Label> |
getLabels()
Returns all labels being contained by this object.
|
Set<Label> |
getLabelsByNamespace(String namespace)
Returns a set containing all Label objects having the given namespace.
|
void |
removeAll()
Removes all
Label objects. |
void |
removeLabel(String qName)
Removes the label having the passed qName.
|
void |
removeLabel(String namespace,
String name)
Removes a Label object from the list of labels of this object.
|
Integer |
sizeLabels()
returns the number of
Label objects contained by this object. |
Collection<Label> getLabels()
Label objectsvoid addLabel(Label label)
label - the Label object to be addedLabel getLabel(String namespace, String name)
Label getLabel(String qName)
qName - the qualified name to be splittedLabel objectvoid removeLabel(String qName)
qName - qualified name of the Label to be removedvoid removeLabel(String namespace, String name)
namespace - the namespace of the object to be removedname - the name of the object to be removedvoid removeAll()
Label objects.Set<Label> getLabelsByNamespace(String namespace)
Label was found or the passed namespace was empty, an
empty list is returned.ns - the namespace of Label objects to be looked for.boolean containsLabel(String qName)
fullName - the full qualified name of the label to be looked forCopyright © 2009–2015 Humboldt-Universität zu Berlin, INRIA. All rights reserved.