Package com.lowagie.text.pdf
Class XfaForm.Xml2Som
java.lang.Object
com.lowagie.text.pdf.XfaForm.Xml2Som
- Direct Known Subclasses:
XfaForm.AcroFieldsSearch,XfaForm.Xml2SomDatasets,XfaForm.Xml2SomTemplate
- Enclosing class:
XfaForm
A class for some basic SOM processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intA temporary store for the repetition count.protected Map<String,XfaForm.InverseStore> The data to do a search from the bottom hierarchy.The mapping of full names to nodes.The order the names appear in the XML, depth first.protected XfaForm.Stack2A stack to be used when parsing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSomNameToSearchNodeChain(Map<String, XfaForm.InverseStore> inverseSearch, XfaForm.Stack2 stack, String unstack) Adds a SOM name to the search node chain.static StringEscapes a SOM string fragment replacing "." with "\.".Deprecated.Gets the data to do a search from the bottom hierarchy.Deprecated.usegetNodesByName()Gets the order the names appear in the XML, depth first.Gets the mapping of full names to nodes.getOrder()Deprecated.usegetNamesOrder()static StringGets the name with the#subformremoved.inverseSearch(List<String> parts) Searches the SOM hierarchy from the bottom.voidinverseSearchAdd(String unstack) Adds a SOM name to the search node chain.static voidinverseSearchAdd(HashMap inverseSearch, XfaForm.Stack2 stack, String unstack) inverseSearchGlobal(ArrayList parts) Deprecated.protected StringOutputs the stack as the sequence of elements separated by '.'.voidsetInverseSearch(Map<String, XfaForm.InverseStore> inverseSearch) Deprecated.voidsetInverseSearchData(Map<String, XfaForm.InverseStore> inverseSearch) Sets the data to do a search from the bottom hierarchy.voidsetName2Node(HashMap name2Node) Deprecated.voidsetNamesOrder(List<String> order) Sets the order the names appear in the XML, depth firstvoidsetNodesByName(Map<String, Node> name2Node) Sets the mapping of full names to nodes.voidDeprecated.static XfaForm.Stack2splitParts(String name) Splits a SOM name in the individual parts.static StringUnescapes a SOM string fragment replacing "\." with ".".
-
Field Details
-
order
The order the names appear in the XML, depth first. -
name2Node
The mapping of full names to nodes. -
inverseSearch
The data to do a search from the bottom hierarchy. -
stack
A stack to be used when parsing. -
anform
protected int anformA temporary store for the repetition count.
-
-
Constructor Details
-
Xml2Som
public Xml2Som()
-
-
Method Details
-
escapeSom
Escapes a SOM string fragment replacing "." with "\.".- Parameters:
s- the unescaped string- Returns:
- the escaped string
-
unescapeSom
Unescapes a SOM string fragment replacing "\." with ".".- Parameters:
s- the escaped string- Returns:
- the unescaped string
-
printStack
Outputs the stack as the sequence of elements separated by '.'.- Returns:
- the stack as the sequence of elements separated by '.'
-
getShortName
Gets the name with the#subformremoved.- Parameters:
s- the long name- Returns:
- the short name
-
inverseSearchAdd
Adds a SOM name to the search node chain.- Parameters:
unstack- the SOM name
-
inverseSearchAdd
@Deprecated public static void inverseSearchAdd(HashMap inverseSearch, XfaForm.Stack2 stack, String unstack) Adds a SOM name to the search node chain.- Parameters:
inverseSearch- the start pointstack- the stack with the separated SOM partsunstack- the full name
-
addSomNameToSearchNodeChain
public static void addSomNameToSearchNodeChain(Map<String, XfaForm.InverseStore> inverseSearch, XfaForm.Stack2 stack, String unstack) Adds a SOM name to the search node chain.- Parameters:
inverseSearch- the start pointstack- the stack with the separated SOM partsunstack- the full name
-
inverseSearchGlobal
Deprecated.Searches the SOM hierarchy from the bottom.- Parameters:
parts- the SOM parts- Returns:
- the full name or
nullif not found
-
inverseSearch
Searches the SOM hierarchy from the bottom.- Parameters:
parts- the SOM parts- Returns:
- the full name or
nullif not found
-
splitParts
Splits a SOM name in the individual parts.- Parameters:
name- the full SOM name- Returns:
- the split name
-
getOrder
Deprecated.usegetNamesOrder()Gets the order the names appear in the XML, depth first.- Returns:
- the order the names appear in the XML, depth first
-
getNamesOrder
Gets the order the names appear in the XML, depth first.- Returns:
- the order the names appear in the XML, depth first
-
setOrder
Deprecated.Sets the order the names appear in the XML, depth first- Parameters:
order- the order the names appear in the XML, depth first
-
setNamesOrder
Sets the order the names appear in the XML, depth first- Parameters:
order- the order the names appear in the XML, depth first
-
getName2Node
Deprecated.usegetNodesByName()Gets the mapping of full names to nodes.- Returns:
- the mapping of full names to nodes
-
getNodesByName
Gets the mapping of full names to nodes.- Returns:
- the mapping of full names to nodes
-
setName2Node
Deprecated.Sets the mapping of full names to nodes.- Parameters:
name2Node- the mapping of full names to nodes
-
setNodesByName
Sets the mapping of full names to nodes.- Parameters:
name2Node- the mapping of full names to nodes
-
getInverseSearch
Deprecated.Gets the data to do a search from the bottom hierarchy.- Returns:
- the data to do a search from the bottom hierarchy
-
getInverseSearchData
Gets the data to do a search from the bottom hierarchy.- Returns:
- the data to do a search from the bottom hierarchy
-
setInverseSearch
Deprecated.Sets the data to do a search from the bottom hierarchy.- Parameters:
inverseSearch- the data to do a search from the bottom hierarchy
-
setInverseSearchData
Sets the data to do a search from the bottom hierarchy.- Parameters:
inverseSearch- the data to do a search from the bottom hierarchy
-
getInverseSearchData()