JTP API Documentation

jtp.ui.rs
Class EnglishSentenceFormat

java.lang.Object
  |
  +--java.text.Format
        |
        +--jtp.ui.rs.SentenceFormat
              |
              +--jtp.ui.rs.EnglishSentenceFormat
All Implemented Interfaces:
Cloneable, Serializable

public class EnglishSentenceFormat
extends SentenceFormat

EnglishSentenceFormat.java Created: Fri May 31 22:47:47 2002

See Also:
Serialized Form

Constructor Summary
EnglishSentenceFormat()
           
EnglishSentenceFormat(boolean convertMixedCaseSymbols)
           
 
Method Summary
 void addTemplate(Symbol relation, String pattern)
           
static StringBuffer capitalize(StringBuffer sb, int offset)
           
 StringBuffer format(Clause cl, StringBuffer sb, FieldPosition ignored)
           
 StringBuffer format(CNFSentence s, StringBuffer sb, FieldPosition ignored)
           
 StringBuffer format(Literal l, StringBuffer sb, FieldPosition ignored)
           
protected  StringBuffer formatKeyword(String kw, StringBuffer sb)
           
 String getIndent()
           
static StringBuffer indent(StringBuffer sb, String indent, int from)
           
static StringBuffer indent(StringBuffer sb, String indent, int from, int to)
           
 void setDefaultTemplate(String pattern)
           
 void setIndent(String v)
           
 
Methods inherited from class jtp.ui.rs.SentenceFormat
format, getKeywordFormat, getSymbolFormat, getVariableFormat, parseObject, setKeywordFormat
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnglishSentenceFormat

public EnglishSentenceFormat(boolean convertMixedCaseSymbols)

EnglishSentenceFormat

public EnglishSentenceFormat()
Method Detail

getIndent

public String getIndent()

setIndent

public void setIndent(String v)

addTemplate

public void addTemplate(Symbol relation,
                        String pattern)

setDefaultTemplate

public void setDefaultTemplate(String pattern)

format

public StringBuffer format(CNFSentence s,
                           StringBuffer sb,
                           FieldPosition ignored)
Specified by:
format in class SentenceFormat

format

public StringBuffer format(Clause cl,
                           StringBuffer sb,
                           FieldPosition ignored)
Specified by:
format in class SentenceFormat

format

public StringBuffer format(Literal l,
                           StringBuffer sb,
                           FieldPosition ignored)
Specified by:
format in class SentenceFormat

formatKeyword

protected StringBuffer formatKeyword(String kw,
                                     StringBuffer sb)
Specified by:
formatKeyword in class SentenceFormat

indent

public static StringBuffer indent(StringBuffer sb,
                                  String indent,
                                  int from)

indent

public static StringBuffer indent(StringBuffer sb,
                                  String indent,
                                  int from,
                                  int to)

capitalize

public static StringBuffer capitalize(StringBuffer sb,
                                      int offset)

JTP API Documentation