|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.util.Indentation
Indentation is a utility class that maintains textual
identation state. It is useful for generating XML documents and other
structured text like executable code whose readability benefits from
indentation.
| Constructor Summary | |
Indentation(int level,
String indentPerLevel)
Create a new Indentation. |
|
| Method Summary | |
String |
getIndentation()
Get the current indentation. |
int |
getLevel()
Get the current indentation level. |
void |
indent()
Indent a level. |
void |
outdent()
Outdent a level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Indentation(int level,
String indentPerLevel)
level - the initial indentation level.indentPerLevel - the per-level indentation String.| Method Detail |
public void indent()
public void outdent()
public int getLevel()
public String getIndentation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||