/// This is used to add a new <c>InputAttribute</c> node to /// the map. The created node can be used by an input node to /// to represent the attribute as another input node. Once the /// node is created it can be acquired using the specified name. /// </summary> /// <param name="name"> /// This is the name of the node to be created. /// </param> /// <param name="value"> /// This is the value to be given to the node. /// </param> /// <returns> /// This returns the node that has just been added. /// </returns> public InputNode Put(String name, String value) { InputNode node = new InputAttribute(source, name, value); if (name != null) { Put(name, node); } return(node); }
/// <summary> /// This is used to insert all attributes belonging to the start /// element to the map. All attributes acquired from the element /// are converted into <c>InputAttribute</c> objects so /// that they can be used as input nodes by an input node. /// </summary> /// <param name="element"> /// The element to acquire attributes from. /// </param> private void Build(EventNode element) { foreach (Attribute entry in element) { InputAttribute value = new InputAttribute(source, entry); if (!entry.IsReserved()) { Put(value.Name, value); } } }