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<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 and Description |
---|
Xml2Som() |
Modifier and Type | Method and 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.
|
static void |
inverseSearchAdd(HashMap<String,XfaForm.InverseStore> inverseSearch, XfaForm.Stack2<String> 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<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 string
public static String unescapeSom(String s)
s
- the escaped string
protected String printStack()
public static String getShortName(String s)
#subform
removed.
s
- the long name
public void inverseSearchAdd(String unstack)
unstack
- the SOM name
public static void inverseSearchAdd(HashMap<String,XfaForm.InverseStore> inverseSearch, XfaForm.Stack2<String> stack, String unstack)
inverseSearch
- the start point
stack
- the stack with the separated SOM parts
unstack
- the full name
public String inverseSearchGlobal(ArrayList<String> parts)
parts
- the SOM parts
null
if not found
public static XfaForm.Stack2<String> splitParts(String name)
name
- the full SOM name
public ArrayList<String> getOrder()
public void setOrder(ArrayList<String> order)
order
- the order the names appear in the XML, depth first
public HashMap<String,Node> getName2Node()
public void setName2Node(HashMap<String,Node> name2Node)
name2Node
- the mapping of full names to nodes
public HashMap<String,XfaForm.InverseStore> getInverseSearch()
public void setInverseSearch(HashMap<String,XfaForm.InverseStore> inverseSearch)
inverseSearch
- the data to do a search from the bottom hierarchy
Copyright © 2016. All rights reserved.