public interface SimpleDocument extends LanguageResource, Comparable<Object>
Modifier and Type | Field and Description |
---|---|
static String |
DOCUMENT_URL_PARAMETER_NAME
The parameter name for the document URL
|
Modifier and Type | Method and Description |
---|---|
AnnotationSet |
getAnnotations()
Get the default set of annotations.
|
AnnotationSet |
getAnnotations(String name)
Get a named set of annotations.
|
Set<String> |
getAnnotationSetNames() |
DocumentContent |
getContent() |
URL |
getSourceUrl()
Documents are identified by URLs
|
void |
removeAnnotationSet(String name)
Removes one of the named annotation sets.
|
void |
setContent(DocumentContent newContent)
Set method for the document content
|
void |
setSourceUrl(URL sourceUrl)
Set method for the document's URL
|
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
cleanup, getParameterValue, init, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
compareTo
static final String DOCUMENT_URL_PARAMETER_NAME
URL getSourceUrl()
void setSourceUrl(URL sourceUrl)
DocumentContent getContent()
void setContent(DocumentContent newContent)
AnnotationSet getAnnotations()
AnnotationSet getAnnotations(String name)
Set<String> getAnnotationSetNames()
void removeAnnotationSet(String name)
name
- the name of the annotation set to be removedCopyright © 2024 GATE. All rights reserved.