JTP API Documentation

jtp.ui.rs
Class SentenceFormat

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

public abstract class SentenceFormat
extends Format

SentenceFormat.java Created: Wed Feb 20 21:36:35 2002

See Also:
Serialized Form

Constructor Summary
SentenceFormat()
           
 
Method Summary
abstract  StringBuffer format(Clause cl, StringBuffer sb, FieldPosition ignored)
           
abstract  StringBuffer format(CNFSentence s, StringBuffer sb, FieldPosition ignored)
           
abstract  StringBuffer format(Literal l, StringBuffer sb, FieldPosition ignored)
           
 StringBuffer format(Object o, StringBuffer sb, FieldPosition ignored)
           
protected abstract  StringBuffer formatKeyword(String kw, StringBuffer sb)
           
 Format getKeywordFormat()
          Get the value of keywordFormat.
 UnambiguousFormat getSymbolFormat()
           
 UnambiguousFormat getVariableFormat()
           
 Object parseObject(String param1, ParsePosition param2)
           
 void setKeywordFormat(Format v)
          Set the value of keywordFormat.
 
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

SentenceFormat

public SentenceFormat()
Method Detail

getKeywordFormat

public Format getKeywordFormat()
Get the value of keywordFormat.

Returns:
value of keywordFormat.

setKeywordFormat

public void setKeywordFormat(Format v)
Set the value of keywordFormat.

Parameters:
v - Value to assign to keywordFormat.

getSymbolFormat

public UnambiguousFormat getSymbolFormat()

getVariableFormat

public UnambiguousFormat getVariableFormat()

format

public StringBuffer format(Object o,
                           StringBuffer sb,
                           FieldPosition ignored)
Specified by:
format in class Format
Returns:

format

public abstract StringBuffer format(CNFSentence s,
                                    StringBuffer sb,
                                    FieldPosition ignored)

format

public abstract StringBuffer format(Clause cl,
                                    StringBuffer sb,
                                    FieldPosition ignored)

format

public abstract StringBuffer format(Literal l,
                                    StringBuffer sb,
                                    FieldPosition ignored)

formatKeyword

protected abstract StringBuffer formatKeyword(String kw,
                                              StringBuffer sb)

parseObject

public Object parseObject(String param1,
                          ParsePosition param2)
Specified by:
parseObject in class Format

JTP API Documentation