Class Jmod.ResolutionWarningReason
java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.taskdefs.modules.Jmod.ResolutionWarningReason
- Enclosing class:
- Jmod
Permissible reasons for jmod creation to emit warnings.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
String value indicating warnings are emitted for modules marked as deprecated (but not deprecated for removal).static final String
String value indicating warnings are emitted for modules designated as "incubating" in the JDK.static final String
String value indicating warnings are emitted for modules marked as deprecated for removal.Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
This is the only method a subclass needs to implement.static Jmod.ResolutionWarningReason
Converts a string to aResolutionWarningReason
instance.Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
-
Field Details
-
DEPRECATED
String value indicating warnings are emitted for modules marked as deprecated (but not deprecated for removal).- See Also:
-
LEAVING
String value indicating warnings are emitted for modules marked as deprecated for removal.- See Also:
-
INCUBATING
String value indicating warnings are emitted for modules designated as "incubating" in the JDK.- See Also:
-
-
Constructor Details
-
ResolutionWarningReason
public ResolutionWarningReason()
-
-
Method Details
-
getValues
Description copied from class:EnumeratedAttribute
This is the only method a subclass needs to implement.- Specified by:
getValues
in classEnumeratedAttribute
- Returns:
- an array holding all possible values of the enumeration.
The order of elements must be fixed so that
indexOfValue(String)
always return the same index for the same value.
-
valueOf
Converts a string to aResolutionWarningReason
instance.- Parameters:
s
- string to convert- Returns:
ResolutionWarningReason
instance corresponding to string argument- Throws:
BuildException
- if argument is not a validResolutionWarningReason
value
-