-
Notifications
You must be signed in to change notification settings - Fork 5
ArgumentTree
jrising edited this page Nov 6, 2012
·
1 revision
-
ICloneable
: Produce a copy of the entire ArgumentTree hierarchy (but maintaining references to all data). This is used by PluginEnvironment when producing a clone to extend with configuration information specific to a set of actions. -
IDictionary<string, object>
: Any level of the ArgumentTree can be treated as a dictionary of the values of its children. So, for example, you can access a value as eitherplugenv.Configuration["MyData"]
orplugenv.Configuration.Children["MyData"].Value
.
-
-
LoadFromXml(XmlNode root)
: Constructs an ArgumentTree from an xml node. Each child node corresponds to an ArgumentNode or an attribute of an xml node. If a node has a "value" attribute, that is the ArgumentTree's value; otherwise, it's any enclosed text. Each tag name and attribute name my only be used once within a set of children, and this name will be used to key the child.
-
-
ArgumentTree()
: Create an empty ArgumentTree with a null value. -
ArgumentTree(object value)
: Specify the value, but no children. -
ArgumentTree(object value, Dictionary<string, ArgumentTree> children)
: Specify the value and the children (a reference is kept). -
ArgumentTree(object value, params object[] children)
: Called with the first argument as the value and all future arguments in pairs:string name1, object childvalue1, string name2, object childvalue2, ...
.
-
-
object Value
: This node's value. -
Dictionary<string, ArgumentTree> Children
: This node's children.
-
IDictionary<string, object>
: ICollection<string> Keys
, ICollection<object> Values
, object this[string key]
.
Only those inherited from ICloneable
and IDictionary<string, object>
.