|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.cas_data.impl.CasDataToXCas
public class CasDataToXCas
Takes a CasData and generates XCAS SAX events.
| Constructor Summary | |
|---|---|
CasDataToXCas()
|
|
| Method Summary | |
|---|---|
void |
generateXCas(CasData aCasData)
Generates XCAS for a CasData. |
void |
generateXCas(CasData aCasData,
java.lang.String aUEID)
Special form of generateXCas(CasData) that allows a UEID (Universal Entity ID) element
to be added as the first element in the XCAS. |
void |
generateXCas(CasData aCasData,
java.lang.String aUEID,
boolean aSendStartAndEndDocEvents)
Special form of generateXCas(CasData) that allows a UEID (Universal Entity ID) element
to be added as the first element in the XCAS and also allows start/end document SAX calls to be
supressed. |
java.lang.String |
getDocumentTextFeatureName()
Gets the name of the CASData Feature that stores the document text. |
java.lang.String |
getDocumentTextTypeName()
Gets the name of the CASData FeatureStructure Type that stores the document text. |
void |
setContentHandler(org.xml.sax.ContentHandler aHandler)
Sets the ContentHandler to receive the SAX events. |
void |
setDocumentTextFeatureName(java.lang.String aDocumentTextFeatureName)
Sets the name of the CASData Feature that stores the document text. |
void |
setDocumentTextTypeName(java.lang.String aDocumentTextTypeName)
Sets the name of the CASData FeatureStructure Type that stores the document text. |
void |
setIncludeAnnotationSpannedText(boolean aIncludeAnnotationSpannedText)
|
void |
setTypesToFilter(java.lang.String[] aTypesToFilter)
Specifies names of types that will not be included in the XCAS |
void |
setXCasDocumentTextTagName(java.lang.String aXCasDocTextTag)
Sets the name of the XCAS tag that will contain the document text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CasDataToXCas()
| Method Detail |
|---|
public java.lang.String getDocumentTextTypeName()
public void setDocumentTextTypeName(java.lang.String aDocumentTextTypeName)
aDocumentTextTypeName - the document text type namepublic java.lang.String getDocumentTextFeatureName()
public void setDocumentTextFeatureName(java.lang.String aDocumentTextFeatureName)
aDocumentTextFeatureName - the document text feature namepublic void setXCasDocumentTextTagName(java.lang.String aXCasDocTextTag)
aXCasDocTextTag - the document text tagpublic void setIncludeAnnotationSpannedText(boolean aIncludeAnnotationSpannedText)
aIncludeAnnotationSpannedText - public void setTypesToFilter(java.lang.String[] aTypesToFilter)
aTypesToFilter - public void setContentHandler(org.xml.sax.ContentHandler aHandler)
aHandler -
public void generateXCas(CasData aCasData)
throws org.xml.sax.SAXException
setContentHandler(ContentHandler).
aCasData - the CasData from which XCAS will be generated
org.xml.sax.SAXException - if the ContentHandler throws a SAX Exception
public void generateXCas(CasData aCasData,
java.lang.String aUEID)
throws org.xml.sax.SAXException
generateXCas(CasData) that allows a UEID (Universal Entity ID) element
to be added as the first element in the XCAS.
aCasData - the CasData from which XCAS will be generatedaUEID - the UEID to add to the XCAS
org.xml.sax.SAXException - if the ContentHandler throws a SAX Exception
public void generateXCas(CasData aCasData,
java.lang.String aUEID,
boolean aSendStartAndEndDocEvents)
throws org.xml.sax.SAXException
generateXCas(CasData) that allows a UEID (Universal Entity ID) element
to be added as the first element in the XCAS and also allows start/end document SAX calls to be
supressed.
aCasData - the CasData from which XCAS will be generatedaUEID - the UEID to add to the XCASaSendStartAndEndDocEvents - true to send SAX events for start and end of document, false to supress them.
org.xml.sax.SAXException - if the ContentHandler throws a SAX Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||