|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the commonalities between all sorts of documents.
Method Summary | |
void |
addDocumentListener(DocumentListener l)
|
void |
addGateListener(GateListener l)
|
void |
edit(Long start,
Long end,
DocumentContent replacement)
Make changes to the content. |
AnnotationSet |
getAnnotations()
Get the default set of annotations. |
AnnotationSet |
getAnnotations(String name)
Get a named set of annotations. |
DocumentContent |
getContent()
The content of the document: wraps e.g. |
Boolean |
getMarkupAware()
Get the markup awareness status of the Document. |
Map |
getNamedAnnotationSets()
Returns a map with the named annotation sets |
URL |
getSourceUrl()
Documents are identified by URLs |
Long |
getSourceUrlEndOffset()
Documents may be packed within files; in this case an optional pair of offsets refer to the location of the document. |
Long[] |
getSourceUrlOffsets()
Documents may be packed within files; in this case an optional pair of offsets refer to the location of the document. |
Long |
getSourceUrlStartOffset()
Documents may be packed within files; in this case an optional pair of offsets refer to the location of the document. |
void |
removeAnnotationSet(String name)
Removes one of the named annotation sets. |
void |
removeDocumentListener(DocumentListener l)
|
void |
removeGateListener(GateListener l)
|
void |
setContent(DocumentContent newContent)
Set method for the document content |
void |
setMarkupAware(Boolean b)
Make the document markup-aware. |
void |
setSourceUrl(URL sourceUrl)
Set method for the document's URL |
String |
toXml()
Returns a GateXml document |
Methods inherited from interface gate.LanguageResource |
getDataStore, setDataStore, sync |
Methods inherited from interface gate.Resource |
init |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, getName, setFeatures, setName |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public URL getSourceUrl()
public void setSourceUrl(URL sourceUrl)
public Long[] getSourceUrlOffsets()
public Long getSourceUrlStartOffset()
public Long getSourceUrlEndOffset()
public DocumentContent getContent()
public void setContent(DocumentContent newContent)
public AnnotationSet getAnnotations()
public AnnotationSet getAnnotations(String name)
public Map getNamedAnnotationSets()
public void removeAnnotationSet(String name)
name
- the name of the annotation set to be removedpublic void setMarkupAware(Boolean b)
b
- markup awareness status.public Boolean getMarkupAware()
public String toXml()
public void edit(Long start, Long end, DocumentContent replacement) throws InvalidOffsetException
public void addDocumentListener(DocumentListener l)
public void removeDocumentListener(DocumentListener l)
public void addGateListener(GateListener l)
public void removeGateListener(GateListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |