public interface SAnnotationContainer extends LabelableElement
SAnnotation),
meta-annotations (SMetaAnnotation), processing annotations (
SProcessingAnnotation) and features (SFeature).| 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 processingAnnotation)
Adds the passed processing-annotation to this container.
|
SAnnotation |
createAnnotation(String namespace,
String name,
Object value)
Creates and returns an annotation having the passed namespace, name and
value.
|
<A extends 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.
|
<A extends 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.
|
<A extends SMetaAnnotation> |
createMetaAnnotations(String metaAnnotationString)
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.
|
<A extends 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.
|
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. |
addLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsSAnnotation createAnnotation(String namespace, String name, Object value)
namespace - namespace of the annotationname - name of the annotationvalue - value of the annotation<A extends SAnnotation> Set<A> createAnnotations(String annotationString)
SAnnotation object for each annotation being contained in that
string to the given SAnnotationContainer object. The syntax for
Annotations is:annotationString - String containing the annotations<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
iterator_SAnnotation() instead.
void addAnnotation(SAnnotation annotation)
annotation - annotation to be addedSAnnotation getAnnotation(String qName)
qName - the qualified of the annotation. A qualified name consists of:
namespace+'::'+nameSAnnotation getAnnotation(String namespace, String name)
namespace - the namespace of the annotation.name - the name of the annotation.Iterator<SAnnotation> iterator_SAnnotation()
SAnnotation objects
contained by this container. Using an iterator is slightly faster than
getAnnotations().SAnnotation objectsSMetaAnnotation createMetaAnnotation(String namespace, String name, Object value)
namespace - namespace of the meta annotationname - name of the meta annotationvalue - value of the meta annotation<A extends SMetaAnnotation> Set<A> createMetaAnnotations(String metaAnnotationString)
SMetaAnnotation object for each meta annotation being contained
in that string to the given SAnnotationContainer object. The
syntax for meta annotations is:metaAnnotationString - String containing the meta annotations<A extends SMetaAnnotation> Set<A> getMetaAnnotations()
Attention: This method is slow, since it iterates over all contained
labels and creates a new list of all SAnnotation objects. Use
iterator_SAnnotation() instead.
void addMetaAnnotation(SMetaAnnotation metaAnnotation)
metaAnnotation - meta annotation to be addedSMetaAnnotation getMetaAnnotation(String qName)
qName - the qualified of the meta annotation. A qualified name
consists of: namespace+'::'+nameIterator<SMetaAnnotation> iterator_SMetaAnnotation()
SMetaAnnotation objects
contained by this container. Using an iterator is slightly faster than
getMetaAnnotations().SAnnotation objectsSProcessingAnnotation createProcessingAnnotation(String namespace, String name, Object value)
namespace - namespace of the processing-annotationname - name of the processing-annotationvalue - value of the processing-annotation<A extends SProcessingAnnotation> Set<A> 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:annotationString - String containing the processing-annotations<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 iterator_SProcessingAnnotation() instead.
void addProcessingAnnotation(SProcessingAnnotation processingAnnotation)
processingAnnotation - annotation to be addedSProcessingAnnotation getProcessingAnnotation(String qName)
qName - the qualified of the processing-annotation. A qualified name
consists of: namespace+'::'+nameIterator<SProcessingAnnotation> iterator_SProcessingAnnotation()
SProcessingAnnotation
objects contained by this container. Using an iterator is slightly faster
than getProcessingAnnotations().SAnnotation objectsSFeature createFeature(String namespace, String name, Object value)
namespace - namespace of the featurename - name of the featurevalue - value of the feature<A extends SFeature> Set<A> createFeatures(String featureString)
SFeature
object for each feature being contained in that string to the given
SAnnotationContainer object. The syntax for Features is:featureString - String containing the features<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
iterator_SFeature() instead.
void addFeature(SFeature feature)
feature - feature to be addedSFeature getFeature(String qName)
qName - the qualified of the feature. A qualified name consists of:
namespace+'::'+nameSFeature getFeature(String namespace, String name)
namespace - the namespace of the feature.name - the name of the feature.Iterator<SFeature> iterator_SFeature()
SFeature objects
contained by this container. Using an iterator is slightly faster than
getFeatures().SFeature objectsCopyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.