V - this parameter determines the type of the value of this label.public interface Label extends LabelableElement, Copyable<Label>
Node,
an Relation, a Graph, a Layer or another
Label as shown in . An attribute-value-pair is a triple which
consists of a namespace, a name and a value (namespace::name=value). The
combination of name and namespace is used to identify a label and therefore
must be unique. The namespace is an optional value, to distinguish in case of
there are two labels having the same name.
When a label is added to another container, it is removed from it's former container.
| Modifier and Type | Field and Description |
|---|---|
static String |
NS_SEPERATOR
Separator between namespace and name: qname= NAMESPACE
"::" NAME.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends LabelableElement> |
getContainer()
Returns the container element, which contains this label.
|
String |
getName()
Returns the name of the label.
|
String |
getNamespace()
Returns the optional namespace of the label.
|
String |
getQName()
Returns the qName of this label, which is the combination of namespace
and name must be unique in the containing object.
|
Object |
getValue()
Returns the value of this label.
|
<C extends LabelableElement> |
setContainer(C container)
Sets the container element, which contains this label.
|
void |
setName(String name)
Sets the name of the label.
|
void |
setNamespace(String namespace)
Sets the optional namespace of the label.
|
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.
|
void |
setValue(Object value)
Sets the value of this label.
|
addLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsstatic final String NS_SEPERATOR
String getNamespace()
void setNamespace(String namespace)
namespace - namespaceString getName()
void setName(String name)
name - name of the labelString getQName()
void setQName(String qName)
qname - the qname is splitted into NAMESPACE "::"
NAMEObject getValue()
void setValue(Object value)
value - generic value of this label.<C extends LabelableElement> C getContainer()
<C extends LabelableElement> void setContainer(C container)
value - container of this labelCopyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.