public class CasToInlineXml
extends java.lang.Object
Constructor and Description |
---|
CasToInlineXml() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This destroy method does nothing.
|
java.lang.String |
format(CAS aCAS)
Formats a CAS as a String.
|
java.lang.String |
format(CAS aCAS,
FSMatchConstraint aFilter)
Formats a CAS as a String.
|
java.lang.String |
generateXML(CAS aCAS)
Generates inline XML from a CAS.
|
java.lang.String |
generateXML(CAS aCAS,
FSMatchConstraint aFilter)
Generates inline XML from a CAS.
|
void |
generateXML(CAS aCAS,
FSMatchConstraint aFilter,
org.xml.sax.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 java.lang.String format(CAS aCAS) throws CASException
aCAS
- the cas to format as an xml stringCASException
public java.lang.String format(CAS aCAS, FSMatchConstraint aFilter) throws CASException
aCAS
- CASaFilter
- a filter to limit the Feature StructuresCASException
- -public java.lang.String generateXML(CAS aCAS) throws CASException
aCAS
- CAS to generate fromCASException
public void generateXML(CAS aCAS, FSMatchConstraint aFilter, org.xml.sax.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 java.lang.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–2014 The Apache Software Foundation. All rights reserved.