|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.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 |
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 Summary | |
---|---|
XfaForm.Xml2Som()
|
Method Summary | |
---|---|
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 ".". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayList order
protected HashMap name2Node
protected HashMap inverseSearch
protected XfaForm.Stack2 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 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 parts
null
if not foundpublic static XfaForm.Stack2 splitParts(String name)
name
- the full SOM name
public 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 hierarchy
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |