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.
|
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 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
omitted), all annotations are included.CASException
- -Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.