Class: WBEM::PROPERTY_ARRAY
- Inherits:
-
CIMElement
- Object
- REXML::Element
- CIMElement
- WBEM::PROPERTY_ARRAY
- Defined in:
- lib/wbem/cim_xml.rb
Instance Method Summary collapse
-
#initialize(name, type, value_array = nil, array_size = nil, class_origin = nil, propagated = nil, qualifiers = [], xml_lang = nil) ⇒ PROPERTY_ARRAY
constructor
<!ELEMENT PROPERTY.ARRAY (QUALIFIER*,VALUE.ARRAY?)> <!ATTLIST PROPERTY.ARRAY %CIMName; %ArraySize; %ClassOrigin; %Propagated; %CIMType; #REQUIRED xml:lang NMTOKEN #IMPLIED> “”“.
Methods inherited from CIMElement
#add_elements, #add_optional_attribute, #add_optional_element, #setName, #toxml
Constructor Details
#initialize(name, type, value_array = nil, array_size = nil, class_origin = nil, propagated = nil, qualifiers = [], xml_lang = nil) ⇒ PROPERTY_ARRAY
<!ELEMENT PROPERTY.ARRAY (QUALIFIER*,VALUE.ARRAY?)>
<!ATTLIST PROPERTY.ARRAY
%CIMName;
%ArraySize;
%ClassOrigin;
%Propagated;
%CIMType; #REQUIRED
xml:lang NMTOKEN #IMPLIED>
"""
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 |
# File 'lib/wbem/cim_xml.rb', line 771 def initialize(name, type, value_array = nil, array_size = nil, class_origin = nil, propagated = nil, qualifiers = [], xml_lang = nil) super("PROPERTY.ARRAY") self.setName(name) self.add_attribute("TYPE", type) self.add_optional_attribute("ARRAYSIZE", array_size) self.add_optional_attribute("CLASSORIGIN", class_origin) unless propagated.nil? self.add_attribute("PROPAGATED", propagated.to_s.downcase) end self.add_optional_attribute("xml:lang", xml_lang) self.add_elements(qualifiers) self.add_optional_element(value_array) end |