cn.chenlichao.wmi4j
类 SWbemProperty

java.lang.Object
  继承者 cn.chenlichao.wmi4j.SWbemProperty

public class SWbemProperty
extends Object

Represents a single WMI property of a managed object. Created by chenlichao on 14-7-26.


方法摘要
 WbemCimTypeEnum getCIMType()
          Return an integer that can be used to determine the CIM type of this property.
 String getName()
          Returns the name of this WMI property.
 String getOrigin()
          Retrieves the name of the WMI class in which this property was introduced.
 SWbemQualifierSet getQualifiers()
          Returns an SWbemQualifierSet object that is a collection of qualifiers for this WMI property.
 WMIVariant getValue()
          Get the variant value of the WMI property.
 boolean getValueAsBoolean()
          Get the variant value of the WMI property as boolean value.
 int getValueAsInteger()
          Get the variant value of the WMI property as integer.
 String getValueAsString()
          Get the variant value of the WMI property as string.
 boolean isArray()
          Boolean value that can be used to determine if this property has an array type.
 boolean isLocal()
          Boolean value that can be used to determine if this property is local.
 void setValue(WMIVariant variant)
          Set the variant value of the WMI property.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getCIMType

public WbemCimTypeEnum getCIMType()
                           throws WMIException
Return an integer that can be used to determine the CIM type of this property. This property is read-only.

返回:
An integer that can be used to determine the CIM type of this property
抛出:
WMIException

isArray

public boolean isArray()
                throws WMIException
Boolean value that can be used to determine if this property has an array type. This property is read-only.

返回:
Boolean value that can be used to determine if this property has an array type.
抛出:
WMIException

isLocal

public boolean isLocal()
                throws WMIException
Boolean value that can be used to determine if this property is local. A value of FALSE indicates that this property has been inherited from another class. This property is read-only.

返回:
True if this property is local, false if this property is inherited from supper class;
抛出:
WMIException

getName

public String getName()
               throws WMIException
Returns the name of this WMI property. This property is read-only.

返回:
The name of this WMI property.
抛出:
WMIException

getOrigin

public String getOrigin()
                 throws WMIException
Retrieves the name of the WMI class in which this property was introduced. For classes with deep inheritance hierarchies, it is often desirable to know which properties were declared in which classes. If the property is local (see SWbemQualifier.isLocal()), this value is the same as the owning class. This property is read-only.

返回:
The name of the WMI class in which this property was introduced.
抛出:
WMIException

getQualifiers

public SWbemQualifierSet getQualifiers()
                                throws WMIException
Returns an SWbemQualifierSet object that is a collection of qualifiers for this WMI property. This property is read-only.

返回:
An SWbemQualifierSet object that is a collection of qualifiers for this WMI property.
抛出:
WMIException

getValue

public WMIVariant getValue()
                    throws WMIException
Get the variant value of the WMI property. This is the default automation property of this object.

返回:
The variant value of the WMI property
抛出:
WMIException

setValue

public void setValue(WMIVariant variant)
              throws WMIException
Set the variant value of the WMI property. This is the default automation property of this object.

参数:
variant - The variant value of the WMI property
抛出:
WMIException

getValueAsString

public String getValueAsString()
                        throws WMIException
Get the variant value of the WMI property as string.

返回:
String value of the WMI property
抛出:
WMIException - If the actual CIMType is not string.

getValueAsBoolean

public boolean getValueAsBoolean()
                          throws WMIException
Get the variant value of the WMI property as boolean value.

返回:
Boolean value of the WMI property
抛出:
WMIException - If the actual CIMType is not Boolean.

getValueAsInteger

public int getValueAsInteger()
                      throws WMIException
Get the variant value of the WMI property as integer.

返回:
integer value of the WMI property
抛出:
WMIException - If the actual CIMType is not integer.


Copyright © 2014. All rights reserved.