Class DefaultGroup



  • public class DefaultGroup
    extends io.annot8.common.implementations.annotations.AbstractGroup
    Simple implementation of Group interface
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DefaultGroup.Builder
      AbstractContentBuilder class for DefaultGroup, using UUID for generating new IDs and InMemoryImmutableProperties or EmptyImmutableProperties for the properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsAnnotation​(io.annot8.core.annotations.Annotation annotation)  
      java.lang.String getId​()  
      io.annot8.core.properties.ImmutableProperties getProperties​()  
      java.util.Map<java.lang.String,java.util.stream.Stream<io.annot8.core.references.AnnotationReference>> getReferences​()  
      java.util.Optional<java.lang.String> getRole​(io.annot8.core.annotations.Annotation annotation)  
      java.lang.String getType​()  
      • Methods inherited from class io.annot8.common.implementations.annotations.AbstractGroup

        equals, hashCode, toString
      • Methods inherited from interface io.annot8.core.annotations.Group

        containsRole, getAnnotations, getAnnotations, getAnnotationsForContent, getAnnotationsForContentAndRole, getRoles, sameGroup
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getId

        public java.lang.String getId​()
      • getType

        public java.lang.String getType​()
      • getProperties

        public io.annot8.core.properties.ImmutableProperties getProperties​()
      • getReferences

        public java.util.Map<java.lang.String,java.util.stream.Stream<io.annot8.core.references.AnnotationReference>> getReferences​()
      • getRole

        public java.util.Optional<java.lang.String> getRole​(io.annot8.core.annotations.Annotation annotation)
      • containsAnnotation

        public boolean containsAnnotation​(io.annot8.core.annotations.Annotation annotation)