Class Xml2Som
java.lang.Object
com.itextpdf.forms.xfa.Xml2Som
- Direct Known Subclasses:
AcroFieldsSearch, Xml2SomDatasets
A class for some basic SOM processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intA temporary store for the repetition count.protected Map<String, 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.A stack to be used when parsing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEscapes a SOM string fragment replacing "." with "\.".Gets the data to do a search from the bottom hierarchy.Gets the mapping of full names to nodes.getOrder()Gets the order the names appear in the XML, depth first.static StringGets the name with the#subformremoved.voidinverseSearchAdd(String unstack) Adds a SOM name to the search node chain.static voidinverseSearchAdd(Map<String, InverseStore> inverseSearch, Stack<String> stack, String unstack) Adds a SOM name to the search node chain.inverseSearchGlobal(List<String> parts) Searches the SOM hierarchy from the bottom.protected StringOutputs the stack as the sequence of elements separated by '.'.voidsetInverseSearch(Map<String, InverseStore> inverseSearch) Sets the data to do a search from the bottom hierarchy.voidsetName2Node(Map<String, Node> name2Node) Sets the mapping of full names to nodes.voidSets the order the names appear in the XML, depth firstsplitParts(String name) Splits a SOM name in the individual parts.static StringUnescapes a SOM string fragment replacing "\." with ".".
-
Field Details
-
order
-
name2Node
-
inverseSearch
The data to do a search from the bottom hierarchy. -
stack
-
anform
protected int anformA temporary store for the repetition count.
-
-
Constructor Details
-
Xml2Som
Xml2Som()
-
-
Method Details
-
escapeSom
-
unescapeSom
-
printStack
Outputs the stack as the sequence of elements separated by '.'.- Returns:
- the stack as the sequence of elements separated by '.'
-
getShortName
-
inverseSearchAdd
Adds a SOM name to the search node chain.- Parameters:
unstack- the SOM name
-
inverseSearchAdd
-
inverseSearchGlobal
-
splitParts
-
getOrder
-
setOrder
-
getName2Node
-
setName2Node
-
getInverseSearch
Gets the data to do a search from the bottom hierarchy.- Returns:
- the data to do a search from the bottom hierarchy
-
setInverseSearch
Sets the data to do a search from the bottom hierarchy.- Parameters:
inverseSearch- the data to do a search from the bottom hierarchy
-