public class LabelImpl extends LabelableElementImpl implements Label, Copyable<Label>
| Modifier and Type | Field and Description |
|---|---|
protected LabelableElement |
container
The container of this object.
|
protected String |
name |
protected String |
namespace |
protected Object |
value
The generic value field.
|
delegate, EXPECTED_NUMBER_OF_LABELSNS_SEPERATOR| Constructor and Description |
|---|
LabelImpl() |
LabelImpl(Label delegatee)
Initializes a new object and sets an internal delegatee.
|
| Modifier and Type | Method and Description |
|---|---|
void |
basicSetLabelableElement(LabelableElement container)
This is an internally used method.
|
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.
|
LabelableElement |
getContainer()
Returns the container element, which contains this label.
|
protected Label |
getDelegate()
Returns the delegate object.
|
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.
|
void |
setContainer(LabelableElement 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 newQName)
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.
|
String |
toString() |
addLabel, basicAddLabel, basicRemoveLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsprotected String namespace
protected String name
protected Object value
protected LabelableElement container
public LabelImpl()
public LabelImpl(Label delegatee)
delegatee - object to pass method invocations to.protected Label getDelegate()
LabelableElementImpl.delegate is not null, all
functions of this method are delegated to the delegate object. Setting
LabelableElementImpl.delegate makes this object to a container.getDelegate in class LabelableElementImplpublic String getNamespace()
getNamespace in interface Labelpublic void setNamespace(String namespace)
setNamespace in interface Labelnamespace - namespacepublic String getName()
public void setName(String name)
public String getQName()
public void setQName(String newQName)
public Object getValue()
public void setValue(Object value)
public void setContainer(LabelableElement container)
setContainer in interface Labelpublic LabelableElement getContainer()
getContainer in interface Labelpublic void basicSetLabelableElement(LabelableElement container)
LabelableElement and label object. When a label is
inserted into this container and to avoid an endless invocation the
insertion of a label is split into the two methods
LabelableElementImpl.addLabel(Label) and LabelableElementImpl.basicAddLabel(Label). The
invocation of methods is implement as follows:
That means methodLabelableElementImpl.addLabel(Label)Label.setContainer(LabelableElement)|| \ / || || X || \/ / \ \/LabelableElementImpl.basicAddLabel(Label)basicSetLabelableElement(LabelableElement)
LabelableElementImpl.addLabel(Label) calls
LabelableElementImpl.basicAddLabel(Label) and Label#basicSetGraph(Graph). And
method Label.setContainer(LabelableElement) calls
LabelableElementImpl.basicAddLabel(Label) and
basicSetLabelableElement(LabelableElement).label - label to be insertedpublic Label copy(Label other)
Copyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.