public class XformsUtil extends Object
Constructor and Description |
---|
XformsUtil() |
Modifier and Type | Method and Description |
---|---|
void |
buildPropertyLabelsStack(Node eNode)
Builds the XForms structures for driver framework property elements.
|
void |
buildXforms()
Puts together the whole XForms.
|
void |
buildXformsBind(Node eNode,
int spaces,
String id)
Builds the binding section for a config element.
|
StringBuilder |
buildXformsCases(Node eNode,
int spaces,
String id,
ArrayList<String> stack)
Builds the display tab section for a config element.
|
void |
buildXformsLabels(Node eNode)
Builds the label section for a certain element.
|
String |
getNodeValueForMatchingNode(Node eNode,
String s)
Obtains the node value for a node matching the given string.
|
boolean |
hasMoreElements(Node node)
Inspects whether a node has further child elements.
|
String |
indent(int spaces)
Creates an indent string for prepending to XML output.
|
String |
makeLabel(String s)
Generates a label from the given string.
|
boolean |
needGroup(Node node)
Checks whether an element needs grouping.
|
public void buildPropertyLabelsStack(Node eNode)
eNode
- The corresponding property nodepublic void buildXforms()
public void buildXformsBind(Node eNode, int spaces, String id)
eNode
- The elementspaces
- Leading spacesid
- The element identifierpublic StringBuilder buildXformsCases(Node eNode, int spaces, String id, ArrayList<String> stack)
eNode
- The elementspaces
- Leading spacesid
- The element identifierstack
- The stack of elements to ignorepublic boolean hasMoreElements(Node node)
node
- The nodepublic String getNodeValueForMatchingNode(Node eNode, String s)
eNode
- The nodes
- The stringpublic String indent(int spaces)
spaces
- The number of spaces in the indentpublic boolean needGroup(Node node)
node
- The elementpublic String makeLabel(String s)
s
- The stringpublic void buildXformsLabels(Node eNode)
eNode
- The element