Package com.evolveum.midpoint.prism
Enum PrismNamespaceContext.PrefixPreference
- java.lang.Object
-
- java.lang.Enum<PrismNamespaceContext.PrefixPreference>
-
- com.evolveum.midpoint.prism.PrismNamespaceContext.PrefixPreference
-
- All Implemented Interfaces:
Serializable
,Comparable<PrismNamespaceContext.PrefixPreference>
- Enclosing class:
- PrismNamespaceContext
public static enum PrismNamespaceContext.PrefixPreference extends Enum<PrismNamespaceContext.PrefixPreference>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GLOBAL_FIRST
Returns first found topmost (closest to namespace root) prefixGLOBAL_FIRST_SKIP_DEFAULTS
Returns first found topmost (closest to namespace root) prefix which is not defaultLOCAL_FIRST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrismNamespaceContext.PrefixPreference
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrismNamespaceContext.PrefixPreference[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL_FIRST
public static final PrismNamespaceContext.PrefixPreference GLOBAL_FIRST
Returns first found topmost (closest to namespace root) prefix
-
GLOBAL_FIRST_SKIP_DEFAULTS
public static final PrismNamespaceContext.PrefixPreference GLOBAL_FIRST_SKIP_DEFAULTS
Returns first found topmost (closest to namespace root) prefix which is not default
-
LOCAL_FIRST
public static final PrismNamespaceContext.PrefixPreference LOCAL_FIRST
-
-
Method Detail
-
values
public static PrismNamespaceContext.PrefixPreference[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrismNamespaceContext.PrefixPreference c : PrismNamespaceContext.PrefixPreference.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrismNamespaceContext.PrefixPreference valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-