|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.harness.formsgen.XformsUtil
public class XformsUtil
Utilities for the XForms generation. This class actually represents the whole detailed generation mechanism. Element handlers mainly delegate to here.
Constructor Summary | |
---|---|
XformsUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XformsUtil()
Method Detail |
---|
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 ignore
public boolean hasMoreElements(Node node)
node
- The node
public String getNodeValueForMatchingNode(Node eNode, String s)
eNode
- The nodes
- The string
public String indent(int spaces)
spaces
- The number of spaces in the indent
public boolean needGroup(Node node)
node
- The element
public String makeLabel(String s)
s
- The string
public void buildXformsLabels(Node eNode)
eNode
- The element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |