Salt  3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.semantics.impl.STypeAnnotationImpl Class Reference

Inherits org.corpus_tools.salt.core.impl.SAnnotationImpl, and org.corpus_tools.salt.semantics.STypeAnnotation.

Public Member Functions

 STypeAnnotationImpl ()
 Initializes an object of type STypeAnnotationImpl.
 
 STypeAnnotationImpl (Label delegate)
 Initializes an object of type STypeAnnotationImpl. More...
 
void setName (String name)
 Calling this method has no effect.
 
void setNamespace (String namespace)
 Calling this method has no effect.
 
- Public Member Functions inherited from org.corpus_tools.salt.core.impl.SAnnotationImpl
 SAnnotationImpl ()
 Initializes an object of type SAnnotationImpl.
 
 SAnnotationImpl (Label delegate)
 Initializes an object of type SAnnotationImpl. More...
 
- Public Member Functions inherited from org.corpus_tools.salt.core.impl.SAbstractAnnotationImpl
 SAbstractAnnotationImpl ()
 Initializes an object of type SAbstractAnnotationImpl.
 
 SAbstractAnnotationImpl (Label delegate)
 Initializes an object of type SAbstractAnnotationImpl. More...
 
SDATATYPE getValueType ()
 SAbstractAnnotation#getValue_Type()
 
void setValueType (SDATATYPE newSValueType)
 {@inheritDoc SAbstractAnnotation::setValueType(SDATATYPE)}
 
String getValue_STEXT ()
 SAbstractAnnotation#getValue_STEXT()
 
Boolean getValue_SBOOLEAN ()
 SAbstractAnnotation#getValue_SBOOLEAN()
 
Long getValue_SNUMERIC ()
 SAbstractAnnotation#getValue_SNUMERIC()
 
Double getValue_SFLOAT ()
 SAbstractAnnotation#getValue_SFLOAT()
 
URI getValue_SURI ()
 SAbstractAnnotation#getValue_SURI()
 
Object getValue_SOBJECT ()
 SAbstractAnnotation#getValue_SOBJECT()
 
SAnnotation createAnnotation (String namespace, String name, Object value)
 Creates and returns an annotation having the passed namespace, name and value.
Parameters
namespacenamespace of the annotation
namename of the annotation
valuevalue of the annotation
Returns
the created annotation

 
Set< SAnnotationcreateAnnotations (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.The syntax for Annotations is:
(SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+
where SNS is the namespace of the annotation, SNAME is its name and SVALUE is the value of the annotation
Parameters
annotationStringString containing the annotations

 
void addAnnotation (SAnnotation annotation)
 Adds the passed annotation to this container.
Parameters
annotationannotation to be added

 
SAnnotation getAnnotation (String qName)
 Returns an annotation having the passed qualified name, if this container contains such an annotation.
Parameters
qNamethe qualified of the annotation. A qualified name consists of: namespace+'::'+name
Returns
an annotation having the qualified name, if such an annotation exists, null otherwise

 
SAnnotation getAnnotation (String namespace, String name)
 Returns an annotation having the passed qualified name, if this container contains such an annotation.
Parameters
namespacethe namespace of the annotation.
namethe name of the annotation.
Returns
an annotation having the qualified name, if such an annotation exists, null otherwise

 
Iterator< SAnnotationiterator_SAnnotation ()
 Returns an iterator to iterate over the SAnnotation objects contained by this container.Using an iterator is slightly faster than getAnnotations().
Returns
an iterator of SAnnotation objects

 
void addMetaAnnotation (SMetaAnnotation metaAnnotation)
 Adds the passed meta annotation to this container.
Parameters
metaAnnotationmeta annotation to be added

 
SMetaAnnotation createMetaAnnotation (String namespace, String name, Object value)
 Creates and returns a meta annotation having the passed namespace, name and value.
Parameters
namespacenamespace of the meta annotation
namename of the meta annotation
valuevalue of the meta annotation
Returns
the created meta annotation

 
Set< SMetaAnnotationcreateMetaAnnotations (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.The syntax for meta annotations is:
(SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+
where SNS is the namespace of the meta annotation, SNAME is its name and SVALUE is the value of the meta annotation
Parameters
metaAnnotationStringString containing the meta annotations

 
SMetaAnnotation getMetaAnnotation (String qName)
 Returns a meta annotation having the passed qualified name, if this container contains such a meta annotation. More...
 
Iterator< SMetaAnnotationiterator_SMetaAnnotation ()
 Returns an iterator to iterate over the SMetaAnnotation objects contained by this container. More...
 
SProcessingAnnotation createProcessingAnnotation (String namespace, String name, Object value)
 Creates and returns a processing-annotation having the passed namespace, name and value.
Parameters
namespacenamespace of the processing-annotation
namename of the processing-annotation
valuevalue of the processing-annotation
Returns
the created processing-annotation

 
Set< SProcessingAnnotationcreateProcessingAnnotations (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.The syntax for processing-annotations is:
(SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+
where SNS is the namespace of the processing-annotation, SNAME is its name and SVALUE is the value of the processing-annotation
Parameters
annotationStringString containing the processing-annotations

 
void addProcessingAnnotation (SProcessingAnnotation annotation)
 Adds the passed processing-annotation to this container.
Parameters
processingAnnotationannotation to be added

 
SProcessingAnnotation getProcessingAnnotation (String qName)
 Returns a processing-annotation having the passed qualified name, if this container contains such a processing-annotation.
Parameters
qNamethe qualified of the processing-annotation. A qualified name consists of: namespace+'::'+name
Returns
an processing-annotation having the qualified name, if such an processing-annotation exists, null otherwise

 
Iterator< SProcessingAnnotationiterator_SProcessingAnnotation ()
 Returns an iterator to iterate over the SProcessingAnnotation objects contained by this container.Using an iterator is slightly faster than getProcessingAnnotations().
Returns
an iterator of SAnnotation objects

 
SFeature createFeature (String namespace, String name, Object value)
 Creates and returns an feature having the passed namespace, name and value.
Parameters
namespacenamespace of the feature
namename of the feature
valuevalue of the feature
Returns
the created feature

 
Set< SFeaturecreateFeatures (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.The syntax for Features is:
(SNS::)?SNAME(=SVALUE)?(;SNS::SNAME=SVALUE)+
where SNS is the namespace of the feature, SNAME is its name and SVALUE is the value of the feature
Parameters
featureStringString containing the features

 
void addFeature (SFeature feature)
 Adds the passed feature to this container.
Parameters
featurefeature to be added

 
SFeature getFeature (String qName)
 Returns an feature having the passed qualified name, if this container contains such an feature.
Parameters
qNamethe qualified of the feature. A qualified name consists of: namespace+'::'+name
Returns
an feature having the qualified name, if such an feature exists, null otherwise

 
SFeature getFeature (String namespace, String name)
 Returns an feature having the passed qualified name, if this container contains such an feature. More...
 
Iterator< SFeatureiterator_SFeature ()
 Returns an iterator to iterate over the SFeature objects contained by this container.Using an iterator is slightly faster than getFeatures().
Returns
an iterator of SFeature objects

 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelImpl
 LabelImpl (Label delegatee)
 Initializes a new object and sets an internal delegatee. More...
 
String getNamespace ()
 {@inheritDoc Label::getNamespace()}
 
String getName ()
 {@inheritDoc Label::getName()}
 
String getQName ()
 {@inheritDoc Label::getQName()}
 
void setQName (String newQName)
 {@inheritDoc Label::setQName(String)}
 
Object getValue ()
 {@inheritDoc Label::getValue()}
 
void setValue (Object value)
 {@inheritDoc Label::setValue(Object)}
 
void setContainer (LabelableElement container)
 
LabelableElement getContainer ()
 Returns the container element, which contains this label.The label and the container are double chained, which means when a label is added to the container, the labels container is automatically set to it or even removed.
Returns
container of this label

 
void basicSetLabelableElement (LabelableElement container)
 This is an internally used method. More...
 
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. More...
 
String toString ()
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
 LabelableElementImpl (LabelableElement delegatee)
 Initializes a new object and sets an internal delegate. More...
 
Collection< LabelgetLabels ()
 {@inheritDoc LabelableElement::getLabels()}
 
Label getLabel (String qName)
 {@inheritDoc LabelableElement::getLabel(String)}
 
Label getLabel (String namespace, String name)
 {@inheritedDoc LabelableElement::getLabel(String, String)}
 
Set< LabelgetLabelsByNamespace (String namespace)
 {@inheritDoc LabelableElement::getLabelsByNamespace(String)}
 
void addLabel (Label label)
 Adds the given Label object to the list of labels.
Parameters
labelthe Label object to be added

 
void basicAddLabel (Label label)
 This is an internally used method. More...
 
void removeLabel (String qName)
 {@inheritDoc LabelableElement::removeLabel(String)}
 
void basicRemoveLabel (String qName)
 This is an internally used method. More...
 
void removeLabel (String namespace, String name)
 {@inheritDoc LabelableElement::removeLabel(String, String))}
 
void removeAll ()
 {@inheritDoc LabelableElement::removeAll()}
 
boolean containsLabel (String qName)
 {@inheritDoc LabelableElement::containsLabel(String)}
 
Integer sizeLabels ()
 {@inheritDoc LabelableElement::sizeLabels()}
 
- Public Member Functions inherited from org.corpus_tools.salt.graph.Label
public< C extends LabelableElement > void setContainer (C container)
 Sets the container element, which contains this label. More...
 
- Public Member Functions inherited from org.corpus_tools.salt.util.Copyable< T >
copy (T other)
 Takes a new 'empty' object and sets all its fields by copying by value. More...
 

Additional Inherited Members

- Static Public Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
static final int EXPECTED_NUMBER_OF_LABELS = 5
 Determines the expected number of labels.
 
- Static Public Attributes inherited from org.corpus_tools.salt.graph.Label
static final String NS_SEPERATOR = "::"
 Separator between namespace and name: qname= NAMESPACE {@value NS_SEPERATOR} NAME.
 
- Protected Member Functions inherited from org.corpus_tools.salt.core.impl.SAbstractAnnotationImpl
SDATATYPE computeSValueType ()
 
- Protected Member Functions inherited from org.corpus_tools.salt.graph.impl.LabelImpl
Label getDelegate ()
 Returns the delegate object.If delegate is not null, all functions of this method are delegated to the delegate object. Setting delegate makes this object to a container.
Returns
the delegate object

 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LabelImpl
String name = null
 
Object value = null
 The generic value field.
 
LabelableElement container = null
 The container of this object.
 
- Protected Attributes inherited from org.corpus_tools.salt.graph.impl.LabelableElementImpl
LabelableElement delegate = null
 A delegate object of the same type. More...
 

Constructor & Destructor Documentation

◆ STypeAnnotationImpl()

org.corpus_tools.salt.semantics.impl.STypeAnnotationImpl.STypeAnnotationImpl ( Label  delegate)

Initializes an object of type STypeAnnotationImpl.

If delegate is not null, all functions of this method are delegated to the delegate object. Setting delegate makes this object to a container.

Parameters
adelegate object of the same type.