Class RuleMatchAsXmlSerializer


  • public class RuleMatchAsXmlSerializer
    extends java.lang.Object
    Deprecated.
    don't use for new use cases, the only place this should still be used is for the API mode of the command-line client (deprecated since 3.5)
    Generate XML to represent matching rules.
    Since:
    2.5 (as 'RuleAsXmlSerializer' up to 3.1)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int CAPACITY
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      private static java.lang.String escapeXMLForAPIOutput​(java.lang.String s)
      Deprecated.
       
      java.lang.String getXmlEnd()
      Deprecated.
      Get the string to end the XML.
      java.lang.String getXmlStart​(Language lang, Language motherTongue)
      Deprecated.
      Get the string to begin the XML.
      private java.lang.String getXmlUnknownWords​(java.util.List<java.lang.String> unknownWords)
      Deprecated.
       
      java.lang.String ruleMatchesToXml​(java.util.List<RuleMatch> ruleMatches, java.lang.String text, int contextSize, Language lang)
      Deprecated.
      Get an XML representation of the given rule matches.
      java.lang.String ruleMatchesToXml​(java.util.List<RuleMatch> ruleMatches, java.lang.String text, int contextSize, Language lang, Language motherTongue)
      Deprecated.
      Get an XML representation of the given rule matches.
      java.lang.String ruleMatchesToXml​(java.util.List<RuleMatch> ruleMatches, java.lang.String text, int contextSize, StringTools.ApiPrintMode xmlMode, Language lang, java.util.List<java.lang.String> unknownWords)
      Deprecated.
      Get an XML representation of the given rule matches.
      java.lang.String ruleMatchesToXmlSnippet​(java.util.List<RuleMatch> ruleMatches, java.lang.String text, int contextSize)
      Deprecated.
      Get the XML snippet (i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait