XfaForm.AcroFieldsSearch, XfaForm.Xml2SomDatasets, XfaForm.Xml2SomTemplatepublic static class XfaForm.Xml2Som extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
anform |
A temporary store for the repetition count.
|
protected HashMap<String,XfaForm.InverseStore> |
inverseSearch |
The data to do a search from the bottom hierarchy.
|
protected HashMap<String,Node> |
name2Node |
The mapping of full names to nodes.
|
protected ArrayList<String> |
order |
The order the names appear in the XML, depth first.
|
protected XfaForm.Stack2<String> |
stack |
A stack to be used when parsing.
|
| Constructor | Description |
|---|---|
Xml2Som() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
escapeSom(String s) |
Escapes a SOM string fragment replacing "." with "\.".
|
HashMap<String,XfaForm.InverseStore> |
getInverseSearch() |
Gets the data to do a search from the bottom hierarchy.
|
HashMap<String,Node> |
getName2Node() |
Gets the mapping of full names to nodes.
|
ArrayList<String> |
getOrder() |
Gets the order the names appear in the XML, depth first.
|
static String |
getShortName(String s) |
Gets the name with the
#subform removed. |
void |
inverseSearchAdd(String unstack) |
Adds a SOM name to the search node chain.
|
static void |
inverseSearchAdd(HashMap<String,XfaForm.InverseStore> inverseSearch,
XfaForm.Stack2<String> stack,
String unstack) |
Adds a SOM name to the search node chain.
|
String |
inverseSearchGlobal(ArrayList<String> parts) |
Searches the SOM hierarchy from the bottom.
|
protected String |
printStack() |
Outputs the stack as the sequence of elements separated
by '.'.
|
void |
setInverseSearch(HashMap<String,XfaForm.InverseStore> inverseSearch) |
Sets the data to do a search from the bottom hierarchy.
|
void |
setName2Node(HashMap<String,Node> name2Node) |
Sets the mapping of full names to nodes.
|
void |
setOrder(ArrayList<String> order) |
Sets the order the names appear in the XML, depth first
|
static XfaForm.Stack2<String> |
splitParts(String name) |
Splits a SOM name in the individual parts.
|
static String |
unescapeSom(String s) |
Unescapes a SOM string fragment replacing "\." with ".".
|
protected HashMap<String,XfaForm.InverseStore> inverseSearch
protected XfaForm.Stack2<String> stack
protected int anform
public static String escapeSom(String s)
s - the unescaped stringpublic static String unescapeSom(String s)
s - the escaped stringprotected String printStack()
public static String getShortName(String s)
#subform removed.s - the long namepublic void inverseSearchAdd(String unstack)
unstack - the SOM namepublic static void inverseSearchAdd(HashMap<String,XfaForm.InverseStore> inverseSearch, XfaForm.Stack2<String> stack, String unstack)
inverseSearch - the start pointstack - the stack with the separated SOM partsunstack - the full namepublic String inverseSearchGlobal(ArrayList<String> parts)
parts - the SOM partsnull if not foundpublic static XfaForm.Stack2<String> splitParts(String name)
name - the full SOM namepublic ArrayList<String> getOrder()
public void setOrder(ArrayList<String> order)
order - the order the names appear in the XML, depth firstpublic HashMap<String,Node> getName2Node()
public void setName2Node(HashMap<String,Node> name2Node)
name2Node - the mapping of full names to nodespublic HashMap<String,XfaForm.InverseStore> getInverseSearch()
public void setInverseSearch(HashMap<String,XfaForm.InverseStore> inverseSearch)
inverseSearch - the data to do a search from the bottom hierarchyCopyright © 2018. All rights reserved.