public static new LogicalConnectiveCollection Load(XmlReader reader) { LogicalAndCollection lac = new LogicalAndCollection(); lac.ReadXml(reader); return(lac); //Adds an object to the end of the Capl.Authorization.LogicalAndCollection //Removes all element from the Capl.Authorization.LogicalAndCollection //Determines whether an element in the Capl.Authorization.LogicalAndCollection //Copies the entire Capl.Authorization.LogicalAndCollection to a compatible one-dimensional array System.Array, starting at the specified index of the target array. //Gets the number of element actually contained in the Capl.Authorization.LogicalAndCollection //Returns an enumerator that iterates through the Capl.Authorization.LogicalAndCollection // Inserts an elmenent into the Capl.Authorization.LogicalAndCollection at the specified location. //Remmoves the first occurrence of a specifed object from the Capl.Authorization.LogicalAndCollection //Removes the element at a specified index from the Capl.Authorization.LogicalAndCollection }
public static Term Load(XmlReader reader) { if (reader == null) { throw new ArgumentNullException("reader"); } Term evalExp = null; reader.MoveToStartElement(); if (reader.IsRequiredStartElement(AuthorizationConstants.Elements.Rule)) { Rule rule = new Rule(); rule.ReadXml(reader); evalExp = rule; } if (reader.IsRequiredStartElement(AuthorizationConstants.Elements.LogicalAnd)) { LogicalAndCollection logicalAnd = new LogicalAndCollection(); logicalAnd.ReadXml(reader); evalExp = logicalAnd; } if (reader.IsRequiredStartElement(AuthorizationConstants.Elements.LogicalOr)) { LogicalOrCollection logicalOr = new LogicalOrCollection(); logicalOr.ReadXml(reader); evalExp = logicalOr; } if (evalExp != null) { return(evalExp); } else { throw new SerializationException("Invalid evaluation expression element."); } }