public abstract class SAbstractAnnotationImpl extends LabelImpl implements SAbstractAnnotation, SAnnotationContainer
container, name, namespace, valueEXPECTED_NUMBER_OF_LABELSNS_SEPERATOR| Constructor and Description |
|---|
SAbstractAnnotationImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(SAnnotation annotation)
Adds the passed annotation to this container.
|
void |
addFeature(SFeature feature)
Adds the passed feature to this container.
|
void |
addMetaAnnotation(SMetaAnnotation metaAnnotation)
Adds the passed meta annotation to this container.
|
void |
addProcessingAnnotation(SProcessingAnnotation annotation)
Adds the passed processing-annotation to this container.
|
protected SDATATYPE |
computeSValueType() |
SAnnotation |
createAnnotation(String namespace,
String name,
Object value)
Creates and returns an annotation having the passed namespace, name and
value.
|
Set<SAnnotation> |
createAnnotations(String annotationString)
This method parses the given annotation String and adds an
SAnnotation object for each annotation being contained in that
string to the given SAnnotationContainer object. |
SFeature |
createFeature(String namespace,
String name,
Object value)
Creates and returns an feature having the passed namespace, name and
value.
|
Set<SFeature> |
createFeatures(String featureString)
This method parses the given feature String and adds an
SFeature
object for each feature being contained in that string to the given
SAnnotationContainer object. |
SMetaAnnotation |
createMetaAnnotation(String namespace,
String name,
Object value)
Creates and returns a meta annotation having the passed namespace, name
and value.
|
Set<SMetaAnnotation> |
createMetaAnnotations(String annotationString)
This method parses the given meta annotation String and adds an
SMetaAnnotation object for each meta annotation being contained
in that string to the given SAnnotationContainer object. |
SProcessingAnnotation |
createProcessingAnnotation(String namespace,
String name,
Object value)
Creates and returns a processing-annotation having the passed namespace,
name and value.
|
Set<SProcessingAnnotation> |
createProcessingAnnotations(String annotationString)
This method parses the given processing-annotation String and adds an
SProcessingAnnotation object for each processing-annotation being
contained in that string to the given SAnnotationContainer
object. |
SAnnotation |
getAnnotation(String qName)
Returns an annotation having the passed qualified name, if this container
contains such an annotation.
|
SAnnotation |
getAnnotation(String namespace,
String name)
Returns an annotation having the passed qualified name, if this container
contains such an annotation.
|
<A extends SAnnotation> |
getAnnotations()
Returns all annotations contained by this object.
|
SFeature |
getFeature(String qName)
Returns an feature having the passed qualified name, if this container
contains such an feature.
|
SFeature |
getFeature(String namespace,
String name)
Returns an feature having the passed qualified name, if this container
contains such an feature.
|
<A extends SFeature> |
getFeatures()
Returns all features contained by this object.
|
SMetaAnnotation |
getMetaAnnotation(String qName)
Returns a meta annotation having the passed qualified name, if this
container contains such a meta annotation.
|
<A extends SMetaAnnotation> |
getMetaAnnotations()
Returns all meta annotations contained by this object.
|
SProcessingAnnotation |
getProcessingAnnotation(String qName)
Returns a processing-annotation having the passed qualified name, if this
container contains such a processing-annotation.
|
<A extends SProcessingAnnotation> |
getProcessingAnnotations()
Returns all processing-annotations contained by this object.
|
Boolean |
getValue_SBOOLEAN()
|
Double |
getValue_SFLOAT()
|
Long |
getValue_SNUMERIC()
|
Object |
getValue_SOBJECT()
|
String |
getValue_STEXT()
|
org.eclipse.emf.common.util.URI |
getValue_SURI()
|
SDATATYPE |
getValueType()
|
Iterator<SAnnotation> |
iterator_SAnnotation()
Returns an iterator to iterate over the
SAnnotation objects
contained by this container. |
Iterator<SFeature> |
iterator_SFeature()
Returns an iterator to iterate over the
SFeature objects
contained by this container. |
Iterator<SMetaAnnotation> |
iterator_SMetaAnnotation()
Returns an iterator to iterate over the
SMetaAnnotation objects
contained by this container. |
Iterator<SProcessingAnnotation> |
iterator_SProcessingAnnotation()
Returns an iterator to iterate over the
SProcessingAnnotation
objects contained by this container. |
void |
setValueType(SDATATYPE newSValueType) |
basicSetLabelableElement, copy, getContainer, getName, getNamespace, getQName, getValue, setContainer, setName, setNamespace, setQName, setValue, toStringaddLabel, basicAddLabel, basicRemoveLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContainer, getName, getNamespace, getQName, getValue, setContainer, setName, setNamespace, setQName, setValueaddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsprotected SDATATYPE computeSValueType()
public SDATATYPE getValueType()
getValueType in interface SAbstractAnnotationpublic void setValueType(SDATATYPE newSValueType)
setValueType in interface SAbstractAnnotationpublic String getValue_STEXT()
getValue_STEXT in interface SAbstractAnnotationString representation of the sValue attribute.public Boolean getValue_SBOOLEAN()
getValue_SBOOLEAN in interface SAbstractAnnotationBoolean representation of the sValue attribute.public Long getValue_SNUMERIC()
getValue_SNUMERIC in interface SAbstractAnnotationLong representation of the sValue attribute.public Double getValue_SFLOAT()
getValue_SFLOAT in interface SAbstractAnnotationFloat representation of the sValue attribute.public org.eclipse.emf.common.util.URI getValue_SURI()
getValue_SURI in interface SAbstractAnnotationURI representation of the sValue attribute.public Object getValue_SOBJECT()
getValue_SOBJECT in interface SAbstractAnnotationObject representation of the sValue attributepublic SAnnotation createAnnotation(String namespace, String name, Object value)
createAnnotation in interface SAnnotationContainernamespace - namespace of the annotationname - name of the annotationvalue - value of the annotationpublic Set<SAnnotation> createAnnotations(String annotationString)
SAnnotation object for each annotation being contained in that
string to the given SAnnotationContainer object. The syntax for
Annotations is:createAnnotations in interface SAnnotationContainerannotationString - String containing the annotationspublic void addAnnotation(SAnnotation annotation)
addAnnotation in interface SAnnotationContainerannotation - annotation to be addedpublic <A extends SAnnotation> Set<A> getAnnotations()
Attention: This method is slow, since it iterates over all contained
labels and creates a new list of all SAnnotation objects. Use
SAnnotationContainer.iterator_SAnnotation() instead.
getAnnotations in interface SAnnotationContainerpublic SAnnotation getAnnotation(String qName)
getAnnotation in interface SAnnotationContainerqName - the qualified of the annotation. A qualified name consists of:
namespace+'::'+namepublic SAnnotation getAnnotation(String namespace, String name)
getAnnotation in interface SAnnotationContainernamespace - the namespace of the annotation.name - the name of the annotation.public Iterator<SAnnotation> iterator_SAnnotation()
SAnnotation objects
contained by this container. Using an iterator is slightly faster than
SAnnotationContainer.getAnnotations().iterator_SAnnotation in interface SAnnotationContainerSAnnotation objectspublic void addMetaAnnotation(SMetaAnnotation metaAnnotation)
addMetaAnnotation in interface SAnnotationContainermetaAnnotation - meta annotation to be addedpublic SMetaAnnotation createMetaAnnotation(String namespace, String name, Object value)
createMetaAnnotation in interface SAnnotationContainernamespace - namespace of the meta annotationname - name of the meta annotationvalue - value of the meta annotationpublic Set<SMetaAnnotation> createMetaAnnotations(String annotationString)
SMetaAnnotation object for each meta annotation being contained
in that string to the given SAnnotationContainer object. The
syntax for meta annotations is:createMetaAnnotations in interface SAnnotationContainerannotationString - String containing the meta annotationspublic <A extends SMetaAnnotation> Set<A> getMetaAnnotations()
SAnnotationContainer
Attention: This method is slow, since it iterates over all contained
labels and creates a new list of all SAnnotation objects. Use
SAnnotationContainer.iterator_SAnnotation() instead.
getMetaAnnotations in interface SAnnotationContainerpublic SMetaAnnotation getMetaAnnotation(String qName)
SAnnotationContainergetMetaAnnotation in interface SAnnotationContainerqName - the qualified of the meta annotation. A qualified name
consists of: namespace+'::'+namepublic Iterator<SMetaAnnotation> iterator_SMetaAnnotation()
SAnnotationContainerSMetaAnnotation objects
contained by this container. Using an iterator is slightly faster than
SAnnotationContainer.getMetaAnnotations().iterator_SMetaAnnotation in interface SAnnotationContainerSAnnotation objectspublic SProcessingAnnotation createProcessingAnnotation(String namespace, String name, Object value)
createProcessingAnnotation in interface SAnnotationContainernamespace - namespace of the processing-annotationname - name of the processing-annotationvalue - value of the processing-annotationpublic Set<SProcessingAnnotation> createProcessingAnnotations(String annotationString)
SProcessingAnnotation object for each processing-annotation being
contained in that string to the given SAnnotationContainer
object. The syntax for processing-annotations is:createProcessingAnnotations in interface SAnnotationContainerannotationString - String containing the processing-annotationspublic void addProcessingAnnotation(SProcessingAnnotation annotation)
addProcessingAnnotation in interface SAnnotationContainerannotation - annotation to be addedpublic <A extends SProcessingAnnotation> Set<A> getProcessingAnnotations()
Attention: This method is slow, since it iterates over all contained
labels and creates a new list of all SProcessingAnnotation
objects. Use SAnnotationContainer.iterator_SProcessingAnnotation() instead.
getProcessingAnnotations in interface SAnnotationContainerpublic SProcessingAnnotation getProcessingAnnotation(String qName)
getProcessingAnnotation in interface SAnnotationContainerqName - the qualified of the processing-annotation. A qualified name
consists of: namespace+'::'+namepublic Iterator<SProcessingAnnotation> iterator_SProcessingAnnotation()
SProcessingAnnotation
objects contained by this container. Using an iterator is slightly faster
than SAnnotationContainer.getProcessingAnnotations().iterator_SProcessingAnnotation in interface SAnnotationContainerSAnnotation objectspublic SFeature createFeature(String namespace, String name, Object value)
createFeature in interface SAnnotationContainernamespace - namespace of the featurename - name of the featurevalue - value of the featurepublic Set<SFeature> createFeatures(String featureString)
SFeature
object for each feature being contained in that string to the given
SAnnotationContainer object. The syntax for Features is:createFeatures in interface SAnnotationContainerfeatureString - String containing the featurespublic void addFeature(SFeature feature)
addFeature in interface SAnnotationContainerfeature - feature to be addedpublic <A extends SFeature> Set<A> getFeatures()
Attention: This method is slow, since it iterates over all contained
labels and creates a new list of all SFeature objects. Use
SAnnotationContainer.iterator_SFeature() instead.
getFeatures in interface SAnnotationContainerpublic SFeature getFeature(String qName)
getFeature in interface SAnnotationContainerqName - the qualified of the feature. A qualified name consists of:
namespace+'::'+namepublic SFeature getFeature(String namespace, String name)
SAnnotationContainergetFeature in interface SAnnotationContainernamespace - the namespace of the feature.name - the name of the feature.public Iterator<SFeature> iterator_SFeature()
SFeature objects
contained by this container. Using an iterator is slightly faster than
SAnnotationContainer.getFeatures().iterator_SFeature in interface SAnnotationContainerSFeature objectsCopyright © 2009–2015 Humboldt-Universität zu Berlin, INRIA. All rights reserved.