|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 java.util.HashMap |
inverseSearch
The data to do a search from the bottom hierarchy. |
protected java.util.HashMap |
name2Node
The mapping of full names to nodes. |
protected java.util.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 java.lang.String |
escapeSom(java.lang.String s)
Escapes a SOM string fragment replacing "." with "\.". |
java.util.HashMap |
getInverseSearch()
Gets the data to do a search from the bottom hierarchy. |
java.util.HashMap |
getName2Node()
Gets the mapping of full names to nodes. |
java.util.ArrayList |
getOrder()
Gets the order the names appear in the XML, depth first. |
static java.lang.String |
getShortName(java.lang.String s)
Gets the name with the #subform removed. |
static void |
inverseSearchAdd(java.util.HashMap inverseSearch,
XfaForm.Stack2 stack,
java.lang.String unstack)
Adds a SOM name to the search node chain. |
void |
inverseSearchAdd(java.lang.String unstack)
Adds a SOM name to the search node chain. |
java.lang.String |
inverseSearchGlobal(java.util.ArrayList parts)
Searches the SOM hierarchy from the bottom. |
protected java.lang.String |
printStack()
Outputs the stack as the sequence of elements separated by '.'. |
void |
setInverseSearch(java.util.HashMap inverseSearch)
Sets the data to do a search from the bottom hierarchy. |
void |
setName2Node(java.util.HashMap name2Node)
Sets the mapping of full names to nodes. |
void |
setOrder(java.util.ArrayList order)
Sets the order the names appear in the XML, depth first |
static XfaForm.Stack2 |
splitParts(java.lang.String name)
Splits a SOM name in the individual parts. |
static java.lang.String |
unescapeSom(java.lang.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 java.util.ArrayList order
protected java.util.HashMap name2Node
protected java.util.HashMap inverseSearch
protected XfaForm.Stack2 stack
protected int anform
Constructor Detail |
---|
public XfaForm.Xml2Som()
Method Detail |
---|
public static java.lang.String escapeSom(java.lang.String s)
s
- the unescaped string
public static java.lang.String unescapeSom(java.lang.String s)
s
- the escaped string
protected java.lang.String printStack()
public static java.lang.String getShortName(java.lang.String s)
#subform
removed.
s
- the long name
public void inverseSearchAdd(java.lang.String unstack)
unstack
- the SOM namepublic static void inverseSearchAdd(java.util.HashMap inverseSearch, XfaForm.Stack2 stack, java.lang.String unstack)
inverseSearch
- the start pointstack
- the stack with the separated SOM partsunstack
- the full namepublic java.lang.String inverseSearchGlobal(java.util.ArrayList parts)
parts
- the SOM parts
null
if not foundpublic static XfaForm.Stack2 splitParts(java.lang.String name)
name
- the full SOM name
public java.util.ArrayList getOrder()
public void setOrder(java.util.ArrayList order)
order
- the order the names appear in the XML, depth firstpublic java.util.HashMap getName2Node()
public void setName2Node(java.util.HashMap name2Node)
name2Node
- the mapping of full names to nodespublic java.util.HashMap getInverseSearch()
public void setInverseSearch(java.util.HashMap 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 |