Interface TCasFormatter

All Known Implementing Classes:
TCasToInlineXml

public interface TCasFormatter
Interface for components that generate a String representation of a CAS.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(CAS aCAS)
    Produces a string representation of a CAS.
    format(CAS aCAS, FSMatchConstraint aFilter)
    Produces a string representation of a CAS.
  • Method Details

    • format

      String format(CAS aCAS) throws CASException
      Produces a string representation of a CAS.
      Parameters:
      aCAS - the CAS to be formatted
      Returns:
      a string representation of aCAS.
      Throws:
      CASException - if an exception occurs reading from the CAS
    • format

      String format(CAS aCAS, FSMatchConstraint aFilter) throws CASException
      Produces a string representation of a CAS. Only those feature structures that satisfy the specified filter will appear in the string representation.
      Parameters:
      aCAS - the CAS to be formatted
      aFilter - a constraint which FeatureStructures must satisfy in order to be included in the resulting string
      Returns:
      a string representation of aCAS.
      Throws:
      CASException - if an exception occurs reading from the CAS