Enum SystemPropertyChangeEnvironmentFacet.ChangeType
- java.lang.Object
-
- java.lang.Enum<SystemPropertyChangeEnvironmentFacet.ChangeType>
-
- org.codehaus.mojo.jaxb2.shared.environment.sysprops.SystemPropertyChangeEnvironmentFacet.ChangeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SystemPropertyChangeEnvironmentFacet.ChangeType>
- Enclosing class:
- SystemPropertyChangeEnvironmentFacet
public static enum SystemPropertyChangeEnvironmentFacet.ChangeType extends java.lang.Enum<SystemPropertyChangeEnvironmentFacet.ChangeType>
Operation definitions indicating how a System property should be changed by this EnvironmentFacet.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Indicates that a System property should be added duringsetup()
and removed duringrestore()
.CHANGE
Indicates that a System property should be altered duringsetup()
and restored duringrestore()
REMOVE
Indicates that a System property should be removed duringsetup()
and restored/re-added duringrestore()
-
Constructor Summary
Constructors Modifier Constructor Description private
ChangeType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SystemPropertyChangeEnvironmentFacet.ChangeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SystemPropertyChangeEnvironmentFacet.ChangeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final SystemPropertyChangeEnvironmentFacet.ChangeType ADD
Indicates that a System property should be added duringsetup()
and removed duringrestore()
. If the property was already present, this behaves like#CHANGE
.
-
REMOVE
public static final SystemPropertyChangeEnvironmentFacet.ChangeType REMOVE
Indicates that a System property should be removed duringsetup()
and restored/re-added duringrestore()
-
CHANGE
public static final SystemPropertyChangeEnvironmentFacet.ChangeType CHANGE
Indicates that a System property should be altered duringsetup()
and restored duringrestore()
-
-
Method Detail
-
values
public static SystemPropertyChangeEnvironmentFacet.ChangeType[] 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 (SystemPropertyChangeEnvironmentFacet.ChangeType c : SystemPropertyChangeEnvironmentFacet.ChangeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemPropertyChangeEnvironmentFacet.ChangeType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-