public enum ObjectPolicyType extends Enum<ObjectPolicyType>
Enum Constant and Description |
---|
UPDATE
Only update objects.
|
UPDATE_OR_CREATE
Update and/or create objects.
|
Modifier and Type | Method and Description |
---|---|
static ObjectPolicyType |
forName(String name) |
String |
getName() |
static ObjectPolicyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectPolicyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectPolicyType UPDATE
public static final ObjectPolicyType UPDATE_OR_CREATE
public static ObjectPolicyType[] values()
for (ObjectPolicyType c : ObjectPolicyType.values()) System.out.println(c);
public static ObjectPolicyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public static ObjectPolicyType forName(String name)
name
- The string name corresponding to the object policy type.Copyright © 2004–2021 XWiki. All rights reserved.