public class CasToInlineXml extends Object
| Constructor and Description |
|---|
CasToInlineXml() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This destroy method does nothing.
|
String |
format(CAS aCAS)
Formats a CAS as a String.
|
String |
format(CAS aCAS,
FSMatchConstraint aFilter)
Formats a CAS as a String.
|
String |
generateXML(CAS aCAS)
Generates inline XML from a CAS.
|
String |
generateXML(CAS aCAS,
FSMatchConstraint aFilter)
Generates inline XML from a CAS.
|
void |
generateXML(CAS aCAS,
FSMatchConstraint aFilter,
ContentHandler aHandler)
Generates inline XML from a CAS using a passed in ContentHandler
|
boolean |
isFormattedOutput() |
void |
setFormattedOutput(boolean formattedOutput)
Set a flag that will be used to control how the ContentHandler will be initialized - to either
format or not, the generated Inline XML
|
public void destroy()
Resource.destroy()public String format(CAS aCAS) throws CASException
aCAS - the cas to format as an xml stringCASException - -public String format(CAS aCAS, FSMatchConstraint aFilter) throws CASException
aCAS - CASaFilter - a filter to limit the Feature StructuresCASException - -public String generateXML(CAS aCAS) throws CASException
aCAS - CAS to generate fromCASException - -public void generateXML(CAS aCAS, FSMatchConstraint aFilter, ContentHandler aHandler) throws CASException
aCAS - CAS to generate fromaFilter - constraint that determines which annotations are included in the output. If null (or
omitted), all annotations are included.aHandler - the content handler to useCASException - -public String generateXML(CAS aCAS, FSMatchConstraint aFilter) throws CASException
aCAS - CAS to generate fromaFilter - constraint that determines which annotations are included in the output. If null (or
ommitted), all annotations are included.CASException - -public boolean isFormattedOutput()
public void setFormattedOutput(boolean formattedOutput)
formattedOutput - true means to format the output, and is the defaultCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.