Class Jmod.ResolutionWarningSpec
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Jmod.ResolutionWarningSpec
-
Constructor Summary
ConstructorDescriptionCreates an uninitialized element.ResolutionWarningSpec
(String reason) Creates an element with the given reason attribute. -
Method Summary
Modifier and TypeMethodDescriptionRequired attribute containing reason for emitting jmod warnings.void
Sets attribute containing reason for emitting jmod warnings.void
validate()
Verifies this object's state.
-
Constructor Details
-
ResolutionWarningSpec
public ResolutionWarningSpec()Creates an uninitialized element. -
ResolutionWarningSpec
Creates an element with the given reason attribute.- Parameters:
reason
- nonnull
Jmod.ResolutionWarningReason
value- Throws:
BuildException
- if argument is not a validResolutionWarningReason
-
-
Method Details
-
getReason
Required attribute containing reason for emitting jmod warnings.- Returns:
- condition which triggers jmod warnings
-
setReason
Sets attribute containing reason for emitting jmod warnings.- Parameters:
reason
- condition which triggers jmod warnings
-
validate
public void validate()Verifies this object's state.- Throws:
BuildException
- if this object's reason isnull
-