Table of Contents

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

int

Stack

A stack to be used when parsing.

protected XfaForm.Stack2<string> Stack

Field Value

XfaForm.Stack2<string>

inverseSearch

The data to do a search from the bottom hierarchie.

protected INullValueDictionary<string, XfaForm.InverseStore> inverseSearch

Field Value

INullValueDictionary<string, XfaForm.InverseStore>

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

List<string>

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

List<string>

the order the names appear in the XML, depth first

Methods

EscapeSom(string)

Escapes a SOM string fragment replacing "." with ".".

public static string EscapeSom(string s)

Parameters

s string

the unescaped string

Returns

string

the escaped string

GetShortName(string)

Gets the name with the #subform removed.

public static string GetShortName(string s)

Parameters

s string

the 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 string

the 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 string

the full name

InverseSearchGlobal(List<string>)

Searchs the SOM hiearchie from the bottom.

public string InverseSearchGlobal(List<string> parts)

Parameters

parts List<string>

the SOM parts

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 string

the full SOM name

Returns

XfaForm.Stack2<string>

the split name

UnescapeSom(string)

Unescapes a SOM string fragment replacing "." with ".".

public static string UnescapeSom(string s)

Parameters

s string

the escaped string

Returns

string

the unescaped string