|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.XfaForm.Xml2Som
public static class XfaForm.Xml2Som
A class for some basic SOM processing.
Field Summary | |
---|---|
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 Summary | |
---|---|
XfaForm.Xml2Som()
|
Method Summary | |
---|---|
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 ".". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList<String> order
protected HashMap<String,Node> name2Node
protected HashMap<String,XfaForm.InverseStore> inverseSearch
protected XfaForm.Stack2<String> stack
protected int anform
Constructor Detail |
---|
public XfaForm.Xml2Som()
Method Detail |
---|
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 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 parts
null
if not foundpublic 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 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 hierarchy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |