public SetQualifierOpSettings(CimQualifierDeclaration qualifierDeclaration)
        {
            ReqType = RequestType.SetQualifier;

            QualifierDeclaration = qualifierDeclaration;
        }
示例#2
0
        public static TreeNode CimToNode(CimQualifierDeclaration declaration)
        {
            /* <!ELEMENT QUALIFIER.DECLARATION (SCOPE?,(VALUE|VALUE.ARRAY)?)>
             * <!ATTLIST QUALIFIER.DECLARATION
             *      %CIMName;
             *      %CIMType;                       #REQUIRED
             *      ISARRAY        (true|false)     #IMPLIED
             *      %ArraySize;
             *      %QualifierFlavor;>
             * */
            TreeNode root = new TreeNode("Qualifier.Declaration");
            root.Nodes.Add(new TreeNode(declaration.Name.ToString()));
            root.Nodes.Add(new TreeNode("Type - " + declaration.Type.ToString()));
            root.Nodes.Add(new TreeNode("IsArray - " + declaration.IsArray.ToString()));
            root.Nodes.Add(new TreeNode("ArraySize - " + declaration.ArraySize.ToString()));
            root.Nodes.Add(CimToNode(declaration.QualifierFlavor));

            return root;
        }
示例#3
0
 public void SetQualifier(CimQualifierDeclaration qualifierDeclaration)
 {
     SetQualifier(new SetQualifierOpSettings(qualifierDeclaration));
 }