|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLFormatting
public class XMLFormatting
XMLFormatting defines formatting for writing XML structures, such as tabbing and namespace labels
| Field Summary | |
|---|---|
private XMLNameSpaceStack |
namespaceStack
|
private int |
tab
|
static int |
TAB
|
private int |
tabIncrement
|
private ArrayList<Integer> |
tabStack
|
| Constructor Summary | |
|---|---|
XMLFormatting()
Default constructor |
|
XMLFormatting(int tab)
Constructor specifying a tab setting |
|
| Method Summary | |
|---|---|
int |
getIndentedTab()
returns the current tab. |
String |
getNamespacePrefix(String namespace)
Returns the prefix currently associated with the specified namespace. |
int |
getTab()
returns the current tab. |
int |
getTabIncrement()
Returns the increment for the tab() method. |
XMLFormatting |
indent()
Push the current tab, then increment the tab with the current tabIncrement. |
XMLFormatting |
indent(int tabIncrement)
Push the current tab, then increment the tab with the specified tabIncrement. |
XMLFormatting |
popXMLNameSpace()
|
XMLFormatting |
pushXMLNameSpace(XMLNameSpace xmlNamespace)
|
void |
setTabIncrement(int increment)
Set the increment for the tab() method. |
XMLFormatting |
unIndent()
Restore/Pop the current tab setting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ArrayList<Integer> tabStack
private XMLNameSpaceStack namespaceStack
public static final int TAB
private int tab
private int tabIncrement
| Constructor Detail |
|---|
public XMLFormatting()
public XMLFormatting(int tab)
| Method Detail |
|---|
public int getTab()
public int getIndentedTab()
public void setTabIncrement(int increment)
public int getTabIncrement()
public String getNamespacePrefix(String namespace)
public XMLFormatting pushXMLNameSpace(XMLNameSpace xmlNamespace)
public XMLFormatting popXMLNameSpace()
public XMLFormatting indent(int tabIncrement)
public XMLFormatting unIndent()
public XMLFormatting indent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||