public class SAnnotationContainerHelper extends Object
SNode,
SRelation, SGraph etc. . It provides methods to access all
SAnnotation, SMetaAnnotation, SProcessingAnnotation
and SFeature objects.| Modifier and Type | Class and Description |
|---|---|
static class |
SAnnotationContainerHelper.MyIterator<E extends Label> |
| Constructor and Description |
|---|
SAnnotationContainerHelper() |
public static void addAnnotation(SAnnotationContainer container, SAnnotation annotation)
public static SAnnotation getAnnotation(SAnnotationContainer container, String qName)
public static Set<SAnnotation> createAnnotations(SAnnotationContainer container, String annotationString)
public static <A extends SAnnotation> Set<A> getAnnotations(SAnnotationContainer container)
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.
container - the container object which contains the SAnnotation to
be searched forSAnnotation object or an empty
listpublic static Iterator<SAnnotation> iterator_SAnnotation(SAnnotationContainer container)
public static SAnnotation createAnnotation(SAnnotationContainer container, String namespace, String name, Object value)
public static void addMetaAnnotation(SAnnotationContainer container, SMetaAnnotation metaAnnotation)
public static SMetaAnnotation createMetaAnnotation(SAnnotationContainer container, String namespace, String name, Object value)
public static Set<SMetaAnnotation> createMetaAnnotations(SAnnotationContainer container, String metaAnnotationString)
public static <A extends SMetaAnnotation> Set<A> getMetaAnnotations(SAnnotationContainer container)
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.
container - the container object which contains the
SMetaAnnotation to be searched forSMetaAnnotation object or an
empty listpublic static SMetaAnnotation getMetaAnnotation(SAnnotationContainer container, String qName)
public static Iterator<SMetaAnnotation> iterator_SMetaAnnotation(SAnnotationContainer container)
public static void addProcessingAnnotation(SAnnotationContainer container, SProcessingAnnotation annotation)
public static SProcessingAnnotation getProcessingAnnotation(SAnnotationContainer container, String qName)
public static Set<SProcessingAnnotation> createProcessingAnnotations(SAnnotationContainer container, String annotationString)
public static <A extends SProcessingAnnotation> Set<A> getProcessingAnnotations(SAnnotationContainer container)
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.
container - the container object which contains the
SProcessingAnnotation to be searched forSProcessingAnnotation object or
an empty listpublic static Iterator<SProcessingAnnotation> iterator_SProcessingAnnotation(SAnnotationContainer container)
public static SProcessingAnnotation createProcessingAnnotation(SAnnotationContainer container, String namespace, String name, Object value)
public static void addFeature(SAnnotationContainer container, SFeature annotation)
public static SFeature getFeature(SAnnotationContainer container, String qName)
public static Set<SFeature> createFeatures(SAnnotationContainer container, String annotationString)
public static <A extends SFeature> Set<A> getFeatures(SAnnotationContainer container)
public static Iterator<SFeature> iterator_SFeature(SAnnotationContainer container)
public static SFeature createFeature(SAnnotationContainer container, String namespace, String name, Object value)
Copyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.