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 .
|
Inherits org.corpus_tools.salt.core.impl.SAbstractAnnotationImpl, and org.corpus_tools.salt.core.SAnnotation.
Inherited by org.corpus_tools.salt.semantics.impl.SCatAnnotationImpl, org.corpus_tools.salt.semantics.impl.SLemmaAnnotationImpl, org.corpus_tools.salt.semantics.impl.SPOSAnnotationImpl, org.corpus_tools.salt.semantics.impl.SSentenceAnnotationImpl, org.corpus_tools.salt.semantics.impl.STypeAnnotationImpl, and org.corpus_tools.salt.semantics.impl.SWordAnnotationImpl.
Public Member Functions | |||||||
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.
| |||||||
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.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
| |||||||
void | addAnnotation (SAnnotation annotation) | ||||||
Adds the passed annotation to this container.
| |||||||
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.
| |||||||
Iterator< SAnnotation > | iterator_SAnnotation () | ||||||
Returns an iterator to iterate over the SAnnotation objects contained by this container.Using an iterator is slightly faster than getAnnotations().
| |||||||
void | addMetaAnnotation (SMetaAnnotation metaAnnotation) | ||||||
Adds the passed meta annotation to this container.
| |||||||
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.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
| |||||||
SMetaAnnotation | getMetaAnnotation (String qName) | ||||||
Returns a meta annotation having the passed qualified name, if this container contains such a meta annotation. More... | |||||||
Iterator< SMetaAnnotation > | iterator_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.
| |||||||
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.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
| |||||||
void | addProcessingAnnotation (SProcessingAnnotation annotation) | ||||||
Adds the passed processing-annotation to this container.
| |||||||
SProcessingAnnotation | getProcessingAnnotation (String qName) | ||||||
Returns a processing-annotation having the passed qualified name, if this container contains such a processing-annotation.
| |||||||
Iterator< SProcessingAnnotation > | iterator_SProcessingAnnotation () | ||||||
Returns an iterator to iterate over the SProcessingAnnotation objects contained by this container.Using an iterator is slightly faster than getProcessingAnnotations().
| |||||||
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.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
| |||||||
void | addFeature (SFeature feature) | ||||||
Adds the passed feature to this container.
| |||||||
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. More... | |||||||
Iterator< SFeature > | iterator_SFeature () | ||||||
Returns an iterator to iterate over the SFeature objects contained by this container.Using an iterator is slightly faster than getFeatures().
| |||||||
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()} | |||||||
void | setNamespace (String namespace) | ||||||
{@inheritDoc Label::setNamespace(String)} | |||||||
String | getName () | ||||||
{@inheritDoc Label::getName()} | |||||||
void | setName (String name) | ||||||
{@inheritDoc Label::setName(String)} | |||||||
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.
| |||||||
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< Label > | getLabels () | ||||||
{@inheritDoc LabelableElement::getLabels()} | |||||||
Label | getLabel (String qName) | ||||||
{@inheritDoc LabelableElement::getLabel(String)} | |||||||
Label | getLabel (String namespace, String name) | ||||||
{@inheritedDoc LabelableElement::getLabel(String, String)} | |||||||
Set< Label > | getLabelsByNamespace (String namespace) | ||||||
{@inheritDoc LabelableElement::getLabelsByNamespace(String)} | |||||||
void | addLabel (Label label) | ||||||
Adds the given Label object to the list of labels.
| |||||||
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 > | |||||||
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.
| |
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... | |
org.corpus_tools.salt.core.impl.SAnnotationImpl.SAnnotationImpl | ( | Label | delegate | ) |
Initializes an object of type SAnnotationImpl.
If delegate is not null, all functions of this method are delegated to the delegate object. Setting delegate makes this object to a container.
a | delegate object of the same type. |