Package com.complexible.stardog.docs.nlp
Class Annotated
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.Annotated
-
- Direct Known Subclasses:
CandidateMention
,Document
,Rank
,Span
,Token
public class Annotated extends java.lang.Object
Object that contains a key value interface for annotations- Since:
- 5.2
- Version:
- 5.2
- Author:
- Pedro Oliveira
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.collect.ListMultimap<java.lang.String,java.lang.String>
mAnnotations
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.String theKey)
java.util.Optional<java.lang.String>
first(java.lang.String theKey)
java.util.List<java.lang.String>
get(java.lang.String theKey)
void
put(java.lang.String theKey, java.lang.String theValue)
java.lang.String
toString()
-
-
-
Method Detail
-
put
public void put(java.lang.String theKey, java.lang.String theValue)
-
contains
public boolean contains(java.lang.String theKey)
-
get
public java.util.List<java.lang.String> get(java.lang.String theKey)
-
first
public java.util.Optional<java.lang.String> first(java.lang.String theKey)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-