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
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)
|
EnglishSentenceFormat
public EnglishSentenceFormat(boolean convertMixedCaseSymbols)
EnglishSentenceFormat
public EnglishSentenceFormat()
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)