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