|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.basicxsd.Indentator
public class Indentator
Helper class keeping an inserted text and an indentation level, providing methods
to alter the level and to append another text. Formatted text is retrieved by
toString()
method.
Constructor Summary | |
---|---|
Indentator(int spacesPerIndent)
Constructs an instance with zero level of indentation. |
Method Summary | |
---|---|
void |
append(String string)
Appends specified text without indentation. |
void |
decreaseIndentation()
decreases the indentation level per one. |
void |
increaseIndentation()
Increases the indentation level per one. |
void |
indent(String string)
Indent specified text and append it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Indentator(int spacesPerIndent)
spacesPerIndent
- Number of space characters per one level of indentation.Method Detail |
---|
public void indent(String string)
string
- Text to indent and append.public void append(String string)
string
- Text to append.public String toString()
toString
in class Object
public void increaseIndentation()
public void decreaseIndentation()
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |