|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.ai.logic.AbstractSentenceWrapper
public abstract class AbstractSentenceWrapper
Provides base functionality for sentence wrappers in the logic system. Wrappers are used to provide a proper display string to the user interface.
Constructor Summary | |
---|---|
protected |
AbstractSentenceWrapper(ISentence sentence)
Construct this object with the given parameter. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Return true if this equals the given object. |
static int |
getMaxLength()
|
ISentence |
getSentence()
Return the sentence wrapped by this object. |
static void |
setMaxLength(int maxLength)
|
protected void |
setSentence(ISentence sentence)
|
String |
toString()
Return a string representation of this object. |
protected String |
truncate(String string)
Limit the given string to the maximum string length. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractSentenceWrapper(ISentence sentence)
sentence
- Sentence.Method Detail |
---|
public static int getMaxLength()
public static void setMaxLength(int maxLength)
maxLength
- The maxLength to set.public boolean equals(Object object)
equals
in interface ISentenceWrapper
equals
in class Object
object
- Object to compare.public ISentence getSentence()
ISentenceWrapper
getSentence
in interface ISentenceWrapper
public String toString()
toString
in interface ISentenceWrapper
toString
in class Object
protected void setSentence(ISentence sentence)
sentence
- The sentence to set.protected String truncate(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |