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.util.internal.SAnnotationContainerHelper Class Reference

This class is a helper class for internal use. More...

Classes

class  MyIterator
 

Static Public Member Functions

static void addAnnotation (SAnnotationContainer container, SAnnotation annotation)
 
static SAnnotation getAnnotation (SAnnotationContainer container, String qName)
 
static Set< SAnnotationcreateAnnotations (SAnnotationContainer container, String annotationString)
 
static< A extends SAnnotation > Set< A > getAnnotations (SAnnotationContainer container)
 Returns all SAnnotation object, which are contained by the passed container. More...
 
static Iterator< SAnnotationiterator_SAnnotation (SAnnotationContainer container)
 
static SAnnotation createAnnotation (SAnnotationContainer container, String namespace, String name, Object value)
 
static void addMetaAnnotation (SAnnotationContainer container, SMetaAnnotation metaAnnotation)
 
static SMetaAnnotation createMetaAnnotation (SAnnotationContainer container, String namespace, String name, Object value)
 
static Set< SMetaAnnotationcreateMetaAnnotations (SAnnotationContainer container, String metaAnnotationString)
 
static< A extends SMetaAnnotation > Set< A > getMetaAnnotations (SAnnotationContainer container)
 Returns all SMetaAnnotation object, which are contained by the passed container. More...
 
static SMetaAnnotation getMetaAnnotation (SAnnotationContainer container, String qName)
 
static Iterator< SMetaAnnotationiterator_SMetaAnnotation (SAnnotationContainer container)
 
static void addProcessingAnnotation (SAnnotationContainer container, SProcessingAnnotation annotation)
 
static SProcessingAnnotation getProcessingAnnotation (SAnnotationContainer container, String qName)
 
static Set< SProcessingAnnotationcreateProcessingAnnotations (SAnnotationContainer container, String annotationString)
 
static< A extends SProcessingAnnotation > Set< A > getProcessingAnnotations (SAnnotationContainer container)
 Returns all SProcessingAnnotation object, which are contained by the passed container. More...
 
static Iterator< SProcessingAnnotationiterator_SProcessingAnnotation (SAnnotationContainer container)
 
static SProcessingAnnotation createProcessingAnnotation (SAnnotationContainer container, String namespace, String name, Object value)
 
static void addFeature (SAnnotationContainer container, SFeature annotation)
 
static SFeature getFeature (SAnnotationContainer container, String qName)
 
static Set< SFeaturecreateFeatures (SAnnotationContainer container, String annotationString)
 
static< A extends SFeature > Set< A > getFeatures (SAnnotationContainer container)
 Returns all SFeature object, which are contained by the passed container. More...
 
static Iterator< SFeatureiterator_SFeature (SAnnotationContainer container)
 
static SFeature createFeature (SAnnotationContainer container, String namespace, String name, Object value)
 

Detailed Description

This class is a helper class for internal use.

It is used by SNode, SRelation, SGraph etc. . It provides methods to access all SAnnotation, SMetaAnnotation, SProcessingAnnotation and SFeature objects.

Author
florian

Member Function Documentation

◆ getAnnotations()

static <A extends SAnnotation> Set<A> org.corpus_tools.salt.util.internal.SAnnotationContainerHelper.getAnnotations ( SAnnotationContainer  container)
static

Returns all SAnnotation object, which are contained by the passed container.

Attention: This method is slow, since it iterates over all contained labels and creates a new list of all SAnnotation objects.

Parameters
containerthe container object which contains the SAnnotation to be searched for
Returns
an unmodifiable list of SAnnotation object or an empty list

◆ getFeatures()

static <A extends SFeature> Set<A> org.corpus_tools.salt.util.internal.SAnnotationContainerHelper.getFeatures ( SAnnotationContainer  container)
static

Returns all SFeature object, which are contained by the passed container.

Attention: This method is slow, since it iterates over all contained labels and creates a new list of all SFeature objects.

Parameters
containerthe container object which contains the SFeature to be searched for
Returns
an unmodifiable list of SFeature object or an empty list

◆ getMetaAnnotations()

static <A extends SMetaAnnotation> Set<A> org.corpus_tools.salt.util.internal.SAnnotationContainerHelper.getMetaAnnotations ( SAnnotationContainer  container)
static

Returns all SMetaAnnotation object, which are contained by the passed container.

Attention: This method is slow, since it iterates over all contained labels and creates a new list of all SMetaAnnotation objects.

Parameters
containerthe container object which contains the SMetaAnnotation to be searched for
Returns
an unmodifiable list of SMetaAnnotation object or an empty list

◆ getProcessingAnnotations()

static <A extends SProcessingAnnotation> Set<A> org.corpus_tools.salt.util.internal.SAnnotationContainerHelper.getProcessingAnnotations ( SAnnotationContainer  container)
static

Returns all SProcessingAnnotation object, which are contained by the passed container.

Attention: This method is slow, since it iterates over all contained labels and creates a new list of all SProcessingAnnotation objects.

Parameters
containerthe container object which contains the SProcessingAnnotation to be searched for
Returns
an unmodifiable list of SProcessingAnnotation object or an empty list