
Public Member Functions | |
| int | AddLeafNode (int parentID, LeafNodeData nodeData) |
| int | AddNode (int parentID, TreeNodeData nodeData) |
| void | Clear (TreeNodeData rootNodeData) |
| bool | ContainsFile (string filename) |
| bool | ContainsLeafNode (int nodeID) |
| bool | ContainsTreeNode (int nodeID) |
| ICollection< int > | GetLeafNodeChildren (int nodeID) |
| LeafNodeData | GetLeafNodeData (int nodeID) |
| int | GetParent (int nodeID) |
| System.Xml.Schema.XmlSchema | GetSchema () |
| ICollection< int > | GetTreeNodeChildren (int nodeID) |
| TreeNodeData | GetTreeNodeData (int nodeID) |
| ICollection< int > | NodesReferringToFile (string filename) |
| void | NormalizeOriginalFileNames (string nameOfAValidDirOrFile) |
| void | ReadXml (System.Xml.XmlReader reader) |
| int | RemoveChildren (int nodeid) |
| int | RemoveNode (int nodeid) |
| override string | ToString () |
| TreeOfContentFiles (TreeNodeData rootData) | |
| void | WriteXml (System.Xml.XmlWriter writer) |
Properties | |
| int | Count [get] |
| int | CountLeafNodes [get] |
| ICollection < LeafNodeData > | LeafNodeDataCollection [get] |
| ICollection< int > | LeafNodes [get] |
| ICollection< string > | ReferredFiles [get] |
| ICollection < TreeNodeData > | TreeNodeDataCollection [get] |
| ICollection< int > | TreeNodes [get] |
Classes | |
| class | LeafNode |
| class | TreeNode |
| wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.TreeOfContentFiles | ( | TreeNodeData | rootData | ) |
| int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.AddLeafNode | ( | int | parentID, | |
| LeafNodeData | nodeData | |||
| ) |
Adds a new leaf node to the node designated by the provided parent ID.
| parentID | ID of the parent. Use 0 to add a node directly to the root. | |
| nodeData | Data that will be associated with the node. This shall not be null. |
| int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.AddNode | ( | int | parentID, | |
| TreeNodeData | nodeData | |||
| ) |
Adds a node to the tree.
| parentID | ID of the parent. Use 0 to add a node directly to the root. | |
| nodeData | Data that will be associated with the node. This may be null here. |
| void wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.Clear | ( | TreeNodeData | rootNodeData | ) |
Clears up this instance. All nodes will be removed. This will create a new root node bearing the provided data.
| rootNodeData | The data of the new root node. This may be null. |
| bool wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ContainsFile | ( | string | filename | ) |
True iff this contains data referring to a local file of the provided name. Operates on a dictionary that will be filled if adding leaf node data implementing wx.Build.ISingleFleProduct.
| filename | The filename that will be tested. |
| bool wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ContainsLeafNode | ( | int | nodeID | ) |
True iff the argument designates a leaf node.
| nodeID | The node ID that will be tested. |
| bool wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ContainsTreeNode | ( | int | nodeID | ) |
True iff the argument designates a non-leaf node.
| nodeID | The node ID that will be tested. |
| ICollection<int> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetLeafNodeChildren | ( | int | nodeID | ) |
If the argument designates a tree node with leafs as children, this will return a collection of the IDs of these children. Otherwise, the result is empty.
| nodeID | The ID of a non-leave tree node. |
| LeafNodeData wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetLeafNodeData | ( | int | nodeID | ) |
Gets the data associated with the designated leaf node.
| nodeID | ID of a tree node. |
default(TreeNodeData) if the data does not exist or the node is unknown.| int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetParent | ( | int | nodeID | ) |
The ID of the parent of the designated node or -1 if this does not exist.
| nodeID | ID of the node. |
| System.Xml.Schema.XmlSchema wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetSchema | ( | ) |
Returns null as suggested by the framework documentation.
| ICollection<int> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetTreeNodeChildren | ( | int | nodeID | ) |
If the argument designates a tree node with non-leafs as children, this will return a collection of the IDs of these children. Otherwise, the result is empty.
| nodeID | The ID of a non-leave tree node. |
| TreeNodeData wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.GetTreeNodeData | ( | int | nodeID | ) |
Gets the data associated with the designated node.
| nodeID | ID of a tree node. Use 0 to access data of the root node. |
default(TreeNodeData) if the data does not exist or the node is unknown.| ICollection<int> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.NodesReferringToFile | ( | string | filename | ) |
Returns an optionally empty collection of node indices designating those nodes referring to a file of the provided file name.
| filename | name of the file |
| void wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.NormalizeOriginalFileNames | ( | string | nameOfAValidDirOrFile | ) |
| void wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ReadXml | ( | System.Xml.XmlReader | reader | ) |
Read the data of this instance from a Xml stream.
| reader | The data source |
| FormatException | Raised on unexpected structure of teh Xml code. |
| int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.RemoveChildren | ( | int | nodeid | ) |
Removes the children of the designated node, tree nodes as well as leaf nodes.
| nodeid | The root to remove. |
| int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.RemoveNode | ( | int | nodeid | ) |
Removes the designated node and the subtree beneath this node (if this is not a leaf).
| nodeid | The root to remove. This may also be a leaf node. |
| override string wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ToString | ( | ) |
| void wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.WriteXml | ( | System.Xml.XmlWriter | writer | ) |
Write the content to the provided XML destination.
| writer | The destination of the output |
int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.Count [get] |
The number of all nodes.
int wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.CountLeafNodes [get] |
The number of contained leaf nodes.
ICollection<LeafNodeData> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.LeafNodeDataCollection [get] |
A collection of the data instances attached to leaf nodes.
ICollection<int> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.LeafNodes [get] |
Returns a collection containing all keys of leaf nodes.
ICollection<string> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.ReferredFiles [get] |
A sorted collection of all local filenames associated with leaf nodes. Operates on a dictionary that will be filled if adding leaf node data implementing wx.Build.ISingleFleProduct.
ICollection<TreeNodeData> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.TreeNodeDataCollection [get] |
A collection of the data instances attached to non-leaf nodes.
ICollection<int> wx.PackageBuilder.TreeOfContentFiles< TreeNodeData, LeafNodeData >.TreeNodes [get] |
This is a collection of all IDs of non-leaf nodes.