//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_ConcreteDependency.cs // // Contents: CIM_ConcreteDependency is a generic association used to establish dependency relationships between ManagedElements. It is defined as a concrete subclass of the abstract CIM_Dependency class, to be used in place of many specific subclasses of Dependency that add no semantics, that is subclasses that do not clarify the type of dependency, update cardinalities, or add or remove qualifiers. Note that when you define additional semantics for Dependency, this class must not be subclassed. Specific semantics continue to be defined as subclasses of the abstract CIM_Dependency. ConcreteDependency is limited in its use as a concrete form of a general dependency. // // It was deemed more prudent to create this concrete subclass than to change Dependency from an abstract to a concrete class. Dependency already had multiple abstract subclasses in the CIM Schema, and wider industry usage and impact could not be anticipated. // This file was automatically generated from CIM_ConcreteDependency.mof // //---------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.Globalization; using System.Xml.Serialization; using System.IO; using Intel.Manageability.WSManagement; using Intel.Manageability.Cim.Untyped; namespace Intel.Manageability.Cim.Typed { /// ///CIM_ConcreteDependency is a generic association used to establish dependency relationships between ManagedElements. It is defined as a concrete subclass of the abstract CIM_Dependency class, to be used in place of many specific subclasses of Dependency that add no semantics, that is subclasses that do not clarify the type of dependency, update cardinalities, or add or remove qualifiers. Note that when you define additional semantics for Dependency, this class must not be subclassed. Specific semantics continue to be defined as subclasses of the abstract CIM_Dependency. ConcreteDependency is limited in its use as a concrete form of a general dependency. ///It was deemed more prudent to create this concrete subclass than to change Dependency from an abstract to a concrete class. Dependency already had multiple abstract subclasses in the CIM Schema, and wider industry usage and impact could not be anticipated. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ConcreteDependency")] [System.Xml.Serialization.XmlRootAttribute("CIM_ConcreteDependency", Namespace="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ConcreteDependency", IsNullable=false)] public class CIM_ConcreteDependency : CIM_Dependency { /// /// Default constructor. /// public CIM_ConcreteDependency() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public CIM_ConcreteDependency(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public CIM_ConcreteDependency(IWSManClient client): base(client) { } /// /// Required, Antecedent represents the independent object in this association. /// [CimField(true, false)] public override CimReference Antecedent { get { string innerXML = this.GetField("Antecedent")[0]; CimReference epr = new CimReference("Antecedent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Antecedent",value.Serialize(false)); } } /// /// Required, Dependent represents the object that is dependent on the Antecedent. /// [CimField(true, false)] public override CimReference Dependent { get { string innerXML = this.GetField("Dependent")[0]; CimReference epr = new CimReference("Dependent", XmlNamespace, innerXML); return epr; } set { this.SetOrAddField("Dependent",value.Serialize(false)); } } /// /// Enumerate instances of CIM_ConcreteDependency class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of CIM_ConcreteDependency objects public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys) { List ret = CimBase.Enumerate(client, cimKeys); return new Collection(ret); } /// /// Enumerate instances of CIM_ConcreteDependency class at an endpoint. /// /// WS-Management client /// Collection of CIM_ConcreteDependency objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of CIM_ConcreteDependency if it is singular. /// Note: This method will succeed only if a single instance of the class exists. /// /// WS-Management client public static new void Delete(IWSManClient client) { CimBase.Delete(client); } /// /// Represents the keys of the CIM_ConcreteDependency class. /// public new class CimKeys : CIM_Dependency.CimKeys { /// /// Required, Antecedent represents the independent object in this association. /// public virtual CimReference Antecedent { get { string innerXML = GetKey("Antecedent"); CimReference epr = new CimReference("Antecedent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ConcreteDependency", innerXML); return epr; } set { SetOrAddKey("Antecedent", value); } } /// /// Required, Dependent represents the object that is dependent on the Antecedent. /// public virtual CimReference Dependent { get { string innerXML = GetKey("Dependent"); CimReference epr = new CimReference("Dependent", "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ConcreteDependency", innerXML); return epr; } set { SetOrAddKey("Dependent", value); } } } } }