Class XfaForm.Xml2Som
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
A class for some basic SOM processing.
public class XfaForm.Xml2Som
- Inheritance
-
XfaForm.Xml2Som
- Derived
- Inherited Members
Constructors
Xml2Som()
public Xml2Som()
Fields
Anform
A temporary store for the repetition count.
protected int Anform
Field Value
Stack
A stack to be used when parsing.
protected XfaForm.Stack2<string> Stack
Field Value
inverseSearch
The data to do a search from the bottom hierarchie.
protected INullValueDictionary<string, XfaForm.InverseStore> inverseSearch
Field Value
name2Node
The mapping of full names to nodes.
protected INullValueDictionary<string, XmlNode> name2Node
Field Value
- INullValueDictionary<string, XmlNode>
order
The order the names appear in the XML, depth first.
protected List<string> order
Field Value
Properties
InverseSearch
Gets the data to do a search from the bottom hierarchie.
public INullValueDictionary<string, XfaForm.InverseStore> InverseSearch { get; set; }
Property Value
- INullValueDictionary<string, XfaForm.InverseStore>
the data to do a search from the bottom hierarchie
Name2Node
Gets the mapping of full names to nodes.
public INullValueDictionary<string, XmlNode> Name2Node { get; set; }
Property Value
- INullValueDictionary<string, XmlNode>
the mapping of full names to nodes
Order
Gets the order the names appear in the XML, depth first.
public List<string> Order { get; set; }
Property Value
Methods
EscapeSom(string)
Escapes a SOM string fragment replacing "." with ".".
public static string EscapeSom(string s)
Parameters
s
stringthe unescaped string
Returns
- string
the escaped string
GetShortName(string)
Gets the name with the #subform removed.
public static string GetShortName(string s)
Parameters
s
stringthe long name
Returns
- string
the short name
InverseSearchAdd(string)
Adds a SOM name to the search node chain.
public void InverseSearchAdd(string unstack)
Parameters
unstack
stringthe SOM name
InverseSearchAdd(INullValueDictionary<string, InverseStore>, Stack2<string>, string)
Adds a SOM name to the search node chain.
public static void InverseSearchAdd(INullValueDictionary<string, XfaForm.InverseStore> inverseSearch, XfaForm.Stack2<string> stack, string unstack)
Parameters
inverseSearch
INullValueDictionary<string, XfaForm.InverseStore>the start point
stack
XfaForm.Stack2<string>the stack with the separeted SOM parts
unstack
stringthe full name
InverseSearchGlobal(List<string>)
Searchs the SOM hiearchie from the bottom.
public string InverseSearchGlobal(List<string> parts)
Parameters
Returns
- string
the full name or null if not found
PrintStack()
Outputs the stack as the sequence of elements separated by '.'.
protected string PrintStack()
Returns
- string
the stack as the sequence of elements separated by '.'
SplitParts(string)
Splits a SOM name in the individual parts.
public static XfaForm.Stack2<string> SplitParts(string name)
Parameters
name
stringthe full SOM name
Returns
UnescapeSom(string)
Unescapes a SOM string fragment replacing "." with ".".
public static string UnescapeSom(string s)
Parameters
s
stringthe escaped string
Returns
- string
the unescaped string