cn.chenlichao.wmi4j.consts
枚举 Flags.PutFlag

java.lang.Object
  继承者 java.lang.Enum<Flags.PutFlag>
      继承者 cn.chenlichao.wmi4j.consts.Flags.PutFlag
所有已实现的接口:
Serializable, Comparable<Flags.PutFlag>
包容类:
Flags

public static enum Flags.PutFlag
extends Enum<Flags.PutFlag>

Optional values of flags parameter of SWbemObject.put()


枚举常量摘要
wbemChangeFlagCreateOnly
          2(0x2): Used for creation only.
wbemChangeFlagCreateOrUpdate
          0(0x0): Causes the class or instance to be created if it does not exist or overwritten if it exists already.
wbemChangeFlagUpdateCompatible
          0(0x0): Allows a class to be updated if there are no derived classes and there are no instances for that class.
WbemChangeFlagUpdateForceMode
          64(0x40): This flag forces updates of classes when conflicting child classes exist.
wbemChangeFlagUpdateOnly
          1(0x1): Causes this call to update.
wbemChangeFlagUpdateSafeMode
          32(0x20): Allows updates of classes even if there are child classes if the change does not cause any conflicts with child classes.
wbemFlagReturnImmediately
          16(0x10): Causes the call to return immediately.
wbemFlagReturnWhenComplete
          0(0x0): Causes this call to block until the query is complete.
wbemFlagUseAmendedQualifiers
          131072(0x20000): Causes WMI to return class amendment data with the base class definition.
 
方法摘要
 int getValue()
           
static Flags.PutFlag valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static Flags.PutFlag[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

wbemChangeFlagUpdateCompatible

public static final Flags.PutFlag wbemChangeFlagUpdateCompatible
0(0x0): Allows a class to be updated if there are no derived classes and there are no instances for that class. It also allows updates in all cases if the change is just to unimportant qualifiers (for example, the Description qualifier). This is the default behavior for this call and is used for compatibility with previous versions of WMI. If the class has instances the update fails.


wbemChangeFlagUpdateSafeMode

public static final Flags.PutFlag wbemChangeFlagUpdateSafeMode
32(0x20): Allows updates of classes even if there are child classes if the change does not cause any conflicts with child classes. You can use this flag when adding a new property to a base class that was not previously mentioned in any of the child classes. If the class has instances the update fails. If the class has instances the update fails.


WbemChangeFlagUpdateForceMode

public static final Flags.PutFlag WbemChangeFlagUpdateForceMode
64(0x40): This flag forces updates of classes when conflicting child classes exist. For example, this flag will force an update if a class qualifier was defined in a child class, and the base class tries to add the same qualifier and in conflict with the existing one. In force mode this conflict would be resolved by deleting the conflicting qualifier in the child class. If the class has instances the update will fail.

Using force mode to update a static class results in the deletion of all instances of that class. A forced update on a provider class does not delete instances of the class.


wbemChangeFlagCreateOrUpdate

public static final Flags.PutFlag wbemChangeFlagCreateOrUpdate
0(0x0): Causes the class or instance to be created if it does not exist or overwritten if it exists already.


wbemChangeFlagCreateOnly

public static final Flags.PutFlag wbemChangeFlagCreateOnly
2(0x2): Used for creation only. The call fails if the class or instance already exists.


wbemChangeFlagUpdateOnly

public static final Flags.PutFlag wbemChangeFlagUpdateOnly
1(0x1): Causes this call to update. The class or instance must exist for the call to be successful.


wbemFlagReturnImmediately

public static final Flags.PutFlag wbemFlagReturnImmediately
16(0x10): Causes the call to return immediately.


wbemFlagReturnWhenComplete

public static final Flags.PutFlag wbemFlagReturnWhenComplete
0(0x0): Causes this call to block until the query is complete. This flag calls the method in the synchronous mode.


wbemFlagUseAmendedQualifiers

public static final Flags.PutFlag wbemFlagUseAmendedQualifiers
131072(0x20000): Causes WMI to return class amendment data with the base class definition.

方法详细信息

values

public static Flags.PutFlag[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (Flags.PutFlag c : Flags.PutFlag.values())
    System.out.println(c);


valueOf

public static Flags.PutFlag valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getValue

public int getValue()


Copyright © 2014. All rights reserved.