Class Jmod.ResolutionWarningSpec
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Jmod.ResolutionWarningSpec
- Enclosing class:
- Jmod
public class Jmod.ResolutionWarningSpec
extends java.lang.Object
Child element which enables jmod tool warnings. 'reason' attribute
is required.
-
Constructor Summary
Constructors Constructor Description ResolutionWarningSpec()
Creates an uninitialized element.ResolutionWarningSpec(java.lang.String reason)
Creates an element with the given reason attribute. -
Method Summary
Modifier and Type Method Description Jmod.ResolutionWarningReason
getReason()
Required attribute containing reason for emitting jmod warnings.void
setReason(Jmod.ResolutionWarningReason reason)
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
public ResolutionWarningSpec(java.lang.String reason)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
-