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