public class DocumentMetaData extends Object
Constructor and Description |
---|
DocumentMetaData() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation a)
Adds a single annotation to the syntactic cue annotation list.
|
void |
addAnnotations(List aList)
Adds a list of annotations to the syntactic cue annotation list.
|
void |
addMetaData(Object key,
Object value)
Adds a meta data entry for the document.
|
void |
addSegment(SegmentMetaData smd)
Adds a segment.
|
List |
getAnnotations()
Gets a list of Annotation objects that represent annotations based
off of document syntactic cues.
|
Map |
getMetaData()
Gets a map of meta data about the document.
|
SegmentMetaData |
getSegment(String segmentID)
Gets meta data about the specified segment.
|
Set<String> |
getSegmentIdentifiers()
Gets a set of segment identifiers.
|
String |
getText() |
void |
setText(String string) |
public void addMetaData(Object key, Object value)
key
- value
- public Map getMetaData()
public void addSegment(SegmentMetaData smd)
smd
- public Set<String> getSegmentIdentifiers()
public SegmentMetaData getSegment(String segmentID)
segmentID
- Identifier of segment.public void addAnnotation(Annotation a)
a
- public void addAnnotations(List aList)
aList
- public List getAnnotations()
public String getText()
public void setText(String string)
string
- Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.