|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.chenlichao.wmi4j.AbstractSecurityScriptingObject
cn.chenlichao.wmi4j.SWbemObjectPath
public class SWbemObjectPath
Use the methods and properties of the SWbemObjectPath object to construct and validate an object path.
Created by chenlichao on 14-7-26.
| 方法摘要 | |
|---|---|
String |
getAuthority()
Get the Authority component of the object path. |
String |
getClazz()
Get the name of the class that is part of the object path. |
String |
getDisplayName()
Get the path in a form that can be used as a moniker display name. |
SWbemNamedValueSet |
getKeys()
Get an SWbemObjectSet object that contains the key value bindings. |
String |
getLocale()
The Locale property of the SWbemObjectPath object contains the locale of object path. |
String |
getNamespace()
Get the name of the namespace that is part of the object path. |
String |
getParentNamespace()
Get the name of the parent namespace that is part of the object path. |
String |
getPath()
Get the absolute path. |
String |
getRelPath()
Get the relative path from the complete path. |
String |
getServer()
Get the name of the server that is part of the object path. |
boolean |
isClass()
Indicates if this path represents a class. |
boolean |
isSingleton()
Indicates if this path represents a singleton instance. |
void |
setAsClass()
Forces the path to address a WMI class. |
void |
setAsSingleton()
Forces the path to address a singleton WMI instance of a class. |
void |
setAuthority(String authority)
Set the Authority component of the object path. |
void |
setClass(String className)
Set the name of the class that is part of the object path. |
void |
setDisplayName(String displayName)
Set the path in a form that can be used as a moniker display name. |
void |
setLocale(String locale)
Set the locale of object path. |
void |
setNamespace(String namespace)
Set the name of the namespace that is part of the object path. |
void |
setPath(String path)
Set the absolute path. |
void |
setRelPath(String relPath)
Set the relative path from the complete path. |
void |
setServer(String server)
Set the name of the server that is part of the object path. |
| 从类 cn.chenlichao.wmi4j.AbstractSecurityScriptingObject 继承的方法 |
|---|
getSecurity |
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public void setAsClass()
throws WMIException
WMIException
public void setAsSingleton()
throws WMIException
WMIException
public String getAuthority()
throws WMIException
WMIException
public void setAuthority(String authority)
throws WMIException
authority - the Authority component of the object path.
WMIException
public String getClazz()
throws WMIException
WMIException
public void setClass(String className)
throws WMIException
className - the name of the class that is part of the object path.
WMIException
public String getDisplayName()
throws WMIException
WMIException
public void setDisplayName(String displayName)
throws WMIException
displayName - the path in a form that can be used as a moniker display name.
WMIException
public boolean isClass()
throws WMIException
WMIException
public boolean isSingleton()
throws WMIException
WMIException
public SWbemNamedValueSet getKeys()
throws WMIException
SWbemObjectSet object that contains the key value bindings. This property is read-only.
SWbemObjectSet object that contains the key value bindings.
WMIException
public String getLocale()
throws WMIException
When the locale property is part of a standalone SWbemObjectPath object, it is read/write and can be used to set the locale component of the moniker.
When the locale property is accessed as part of a SWbemObject.getPath() property,
it is read-only and reports the value of the locale used in binding to the namespace from which the object was obtained.
For Microsoft locale identifiers, the format of the string is "MS_xxxx", where xxxx is a string in hexadecimal form that indicates the LCID. For example, the American English locale identifier is "MS_409".
WMIException
public void setLocale(String locale)
throws WMIException
When the locale property is accessed as part of a SWbemObject.getPath() property,
it is read-only and reports the value of the locale used in binding to the namespace from which the object was obtained.
locale - the locale of object path.
WMIException
public String getNamespace()
throws WMIException
\\computer\root\cimv2:win32_logicaldisk="a:"
WMIException
public void setNamespace(String namespace)
throws WMIException
namespace - the name of the namespace that is part of the object path.
WMIException
public String getParentNamespace()
throws WMIException
WMIException
public String getPath()
throws WMIException
WMIException
public void setPath(String path)
throws WMIException
path - the absolute path.
WMIException
public String getRelPath()
throws WMIException
WMIException
public void setRelPath(String relPath)
throws WMIException
relPath - the relative path from the complete path.
WMIException
public String getServer()
throws WMIException
WMIException
public void setServer(String server)
throws WMIException
server - the name of the server that is part of the object path.
WMIException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||