org.xces.gate
Class XCESDocument

java.lang.Object
  extended by gate.util.AbstractFeatureBearer
      extended by gate.creole.AbstractResource
          extended by gate.creole.AbstractLanguageResource
              extended by gate.corpora.DocumentImpl
                  extended by org.xces.gate.XCESDocument
All Implemented Interfaces:
gate.Document, gate.event.CreoleListener, gate.event.DatastoreListener, gate.LanguageResource, gate.Resource, gate.SimpleDocument, gate.TextualDocument, gate.util.FeatureBearer, gate.util.NameBearer, java.io.Serializable, java.lang.Comparable, java.util.EventListener

public class XCESDocument
extends gate.corpora.DocumentImpl
implements gate.LanguageResource

Author:
Keith Suderman
See Also:
Serialized Form

Field Summary
static java.lang.String FACTORY_PROPERTY
           
static java.lang.String LOAD_STANDOFF_PARAMETER_NAME
           
static java.lang.String STANDOFF_ANNOTATIONS_PARAMETER_NAME
           
static java.lang.String STANDOFF_LOADED_PARAMETER_NAME
           
static java.lang.String STANDOFF_MARKUP_SET_NAME
           
 
Fields inherited from class gate.corpora.DocumentImpl
content, defaultAnnots, encoding, markupAware, namedAnnotSets, nextAnnotationId, nextNodeId, sourceUrl, sourceUrlEndOffset, sourceUrlStartOffset
 
Fields inherited from class gate.creole.AbstractLanguageResource
dataStore, lrPersistentId
 
Fields inherited from class gate.creole.AbstractResource
name
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Fields inherited from interface gate.Document
DOCUMENT_ENCODING_PARAMETER_NAME, DOCUMENT_END_OFFSET_PARAMETER_NAME, DOCUMENT_MARKUP_AWARE_PARAMETER_NAME, DOCUMENT_PRESERVE_CONTENT_PARAMETER_NAME, DOCUMENT_REPOSITIONING_PARAMETER_NAME, DOCUMENT_START_OFFSET_PARAMETER_NAME, DOCUMENT_STRING_CONTENT_PARAMETER_NAME
 
Fields inherited from interface gate.SimpleDocument
DOCUMENT_URL_PARAMETER_NAME
 
Constructor Summary
XCESDocument()
           
 
Method Summary
protected  java.util.Hashtable getAnnotationFiles(gate.AnnotationSet set)
           
protected  java.util.Hashtable getAnnotationFiles(java.net.URL url)
           
protected  java.lang.String getContent(java.lang.String path)
           
protected  java.lang.String getFileForType(java.lang.String type)
           
 java.lang.Boolean getLoadStandoff()
           
 java.util.List getStandoffAnnotations()
           
 java.lang.String getStandoffASName()
           
 boolean getStandoffLoaded()
           
 gate.Resource init()
           
 void oldLoadStandoff()
           
 void oldOldLoadStandoff(java.net.URL sourceUrl)
           
 void setLoadStandoff(java.lang.Boolean save)
           
 void setStandoffAnnotations(java.util.List list)
           
 void setStandoffASName(java.lang.String name)
           
 void setStandoffLoaded(boolean loaded)
           
 
Methods inherited from class gate.corpora.DocumentImpl
addDocumentListener, cleanup, compareTo, datastoreClosed, datastoreCreated, datastoreOpened, edit, fireAnnotationSetAdded, fireAnnotationSetRemoved, fireContentEdited, getAnnotations, getAnnotations, getAnnotationSetNames, getCollectRepositioningInfo, getContent, getEncoding, getFeatures, getMarkupAware, getNamedAnnotationSets, getNextAnnotationId, getNextNodeId, getOrderingString, getPreserveOriginalContent, getSourceUrl, getSourceUrlEndOffset, getSourceUrlOffsets, getSourceUrlStartOffset, getStringContent, isValidOffset, isValidOffsetRange, isXmlChar, removeAnnotationSet, removeDocumentListener, resourceAdopted, resourceDeleted, resourceLoaded, resourceRenamed, resourceUnloaded, resourceWritten, setCollectRepositioningInfo, setContent, setDataStore, setDefaultAnnotations, setEncoding, setLRPersistenceId, setMarkupAware, setNextAnnotationId, setPreserveOriginalContent, setSourceUrl, setSourceUrlEndOffset, setSourceUrlStartOffset, setStringContent, toString, toXml, toXml, toXml
 
Methods inherited from class gate.creole.AbstractLanguageResource
getDataStore, getLRPersistenceId, getParent, isModified, setParent, sync
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
Methods inherited from class gate.util.AbstractFeatureBearer
setFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gate.LanguageResource
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 

Field Detail

LOAD_STANDOFF_PARAMETER_NAME

public static final java.lang.String LOAD_STANDOFF_PARAMETER_NAME
See Also:
Constant Field Values

STANDOFF_MARKUP_SET_NAME

public static final java.lang.String STANDOFF_MARKUP_SET_NAME
See Also:
Constant Field Values

STANDOFF_ANNOTATIONS_PARAMETER_NAME

public static final java.lang.String STANDOFF_ANNOTATIONS_PARAMETER_NAME
See Also:
Constant Field Values

STANDOFF_LOADED_PARAMETER_NAME

public static final java.lang.String STANDOFF_LOADED_PARAMETER_NAME
See Also:
Constant Field Values

FACTORY_PROPERTY

public static final java.lang.String FACTORY_PROPERTY
See Also:
Constant Field Values
Constructor Detail

XCESDocument

public XCESDocument()
Method Detail

setLoadStandoff

public void setLoadStandoff(java.lang.Boolean save)

getLoadStandoff

public java.lang.Boolean getLoadStandoff()

setStandoffLoaded

public void setStandoffLoaded(boolean loaded)

getStandoffLoaded

public boolean getStandoffLoaded()

setStandoffASName

public void setStandoffASName(java.lang.String name)

getStandoffASName

public java.lang.String getStandoffASName()

setStandoffAnnotations

public void setStandoffAnnotations(java.util.List list)

getStandoffAnnotations

public java.util.List getStandoffAnnotations()

init

public gate.Resource init()
                   throws gate.creole.ResourceInstantiationException
Specified by:
init in interface gate.Resource
Overrides:
init in class gate.corpora.DocumentImpl
Throws:
gate.creole.ResourceInstantiationException

getFileForType

protected java.lang.String getFileForType(java.lang.String type)
                                   throws gate.creole.ResourceInstantiationException
Throws:
gate.creole.ResourceInstantiationException

getContent

protected java.lang.String getContent(java.lang.String path)
                               throws gate.creole.ResourceInstantiationException
Throws:
gate.creole.ResourceInstantiationException

getAnnotationFiles

protected java.util.Hashtable getAnnotationFiles(gate.AnnotationSet set)
                                          throws gate.creole.ResourceInstantiationException
Throws:
gate.creole.ResourceInstantiationException

getAnnotationFiles

protected java.util.Hashtable getAnnotationFiles(java.net.URL url)
                                          throws gate.util.DocumentFormatException
Throws:
gate.util.DocumentFormatException

oldLoadStandoff

public void oldLoadStandoff()
                     throws gate.creole.ResourceInstantiationException
Throws:
gate.creole.ResourceInstantiationException

oldOldLoadStandoff

public void oldOldLoadStandoff(java.net.URL sourceUrl)
                        throws gate.creole.ResourceInstantiationException
Throws:
gate.creole.ResourceInstantiationException