Enum SystemPropertyChangeEnvironmentFacet.ChangeType
java.lang.Object
java.lang.Enum<SystemPropertyChangeEnvironmentFacet.ChangeType>
org.codehaus.mojo.jaxb2.shared.environment.sysprops.SystemPropertyChangeEnvironmentFacet.ChangeType
- All Implemented Interfaces:
Serializable
,Comparable<SystemPropertyChangeEnvironmentFacet.ChangeType>
- Enclosing class:
SystemPropertyChangeEnvironmentFacet
public static enum SystemPropertyChangeEnvironmentFacet.ChangeType
extends Enum<SystemPropertyChangeEnvironmentFacet.ChangeType>
Operation definitions indicating how a System property should be changed by this EnvironmentFacet.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that a System property should be added duringsetup()
and removed duringrestore()
.Indicates that a System property should be altered duringsetup()
and restored duringrestore()
Indicates that a System property should be removed duringsetup()
and restored/re-added duringrestore()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADD
Indicates that a System property should be added duringsetup()
and removed duringrestore()
. If the property was already present, this behaves like#CHANGE
. -
REMOVE
Indicates that a System property should be removed duringsetup()
and restored/re-added duringrestore()
-
CHANGE
Indicates that a System property should be altered duringsetup()
and restored duringrestore()
-
-
Constructor Details
-
ChangeType
private ChangeType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-