/// <summary> /// Overrided to process custom nodes a node is found in the base class constructor. /// </summary> /// <remarks>This is used to avoid extra coding for all the target nodes</remarks> /// <param name="reader">The XmlReader pointing to the element found</param> protected override void NodeFound(XmlReader reader) { if (reader.LocalName == ContextSchema.ResourceElement.ResourceContent) { _resourceContent = new ResourceContentElementReadWrite(reader, SchemaVersion); } }
/// <summary> /// Creates a Resource using the specified arguments. /// </summary> /// <param name="resourceScope">The resource scope for this target item.</param> /// <param name="resourceContent">The resource content in the context document.</param> /// <param name="attributes">The attribute list.</param> /// <param name="schemaVersion">The version of the schema that was used to validate.</param> public ResourceElementReadWrite( ResourceContentElementReadWrite resourceContent, ResourceScope resourceScope, AttributeReadWriteCollection attributes, XacmlVersion schemaVersion ) : base( attributes, schemaVersion ) { _resourceContent = resourceContent; _resourceScope = resourceScope; }
/// <summary> /// Overrided to process custom nodes a node is found in the base class constructor. /// </summary> /// <remarks>This is used to avoid extra coding for all the target nodes</remarks> /// <param name="reader">The XmlReader pointing to the element found</param> protected override void NodeFound(XmlReader reader) { if( reader.LocalName == ContextSchema.ResourceElement.ResourceContent ) { _resourceContent = new ResourceContentElementReadWrite( reader, SchemaVersion ); } }
/// <summary> /// Creates a Resource using the specified arguments. /// </summary> /// <param name="resourceScope">The resource scope for this target item.</param> /// <param name="resourceContent">The resource content in the context document.</param> /// <param name="attributes">The attribute list.</param> /// <param name="schemaVersion">The version of the schema that was used to validate.</param> public ResourceElementReadWrite(ResourceContentElementReadWrite resourceContent, ResourceScope resourceScope, AttributeReadWriteCollection attributes, XacmlVersion schemaVersion) : base(attributes, schemaVersion) { _resourceContent = resourceContent; _resourceScope = resourceScope; }