org.apache.tools.ant.taskdefs.optional.jmx
Class IfExists

java.lang.Object
  |
  +--org.apache.tools.ant.types.EnumeratedAttribute
        |
        +--org.apache.tools.ant.taskdefs.optional.jmx.IfExists

public class IfExists
extends org.apache.tools.ant.types.EnumeratedAttribute

Specifies enumerated values for the ifExists attribute that is common to CopyMBeanTask and CreateMBeanTask.

Version:
$Id: IfExists.java,v 1.2 2003/05/28 22:28:26 bdueck Exp $
Author:
Brian Dueck

Field Summary
static java.lang.String FAIL
          If the mbean already exists, the task will fail.
static java.lang.String REPLACE
          If the mbean already exists, the target mbean will be removed and replaced.
static java.lang.String REPLACE_ATTRIBUTES
          If the mbean already exists, the existing target mbean will left, but its attribute values will be replaced.
static java.lang.String SKIP
          If the mbean already exists, the task will be silently skipped.
static java.lang.String WARN
          If the mbean already exists, the task will be skipped with a warning.
 
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
 
Constructor Summary
IfExists()
           
 
Method Summary
 java.lang.String[] getValues()
          Provides the array representing valid values for this enumerated attribute.
 
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAIL

public static final java.lang.String FAIL
If the mbean already exists, the task will fail.

SKIP

public static final java.lang.String SKIP
If the mbean already exists, the task will be silently skipped.

WARN

public static final java.lang.String WARN
If the mbean already exists, the task will be skipped with a warning.

REPLACE

public static final java.lang.String REPLACE
If the mbean already exists, the target mbean will be removed and replaced.

REPLACE_ATTRIBUTES

public static final java.lang.String REPLACE_ATTRIBUTES
If the mbean already exists, the existing target mbean will left, but its attribute values will be replaced.
Constructor Detail

IfExists

public IfExists()
Method Detail

getValues

public java.lang.String[] getValues()
Provides the array representing valid values for this enumerated attribute.
Overrides:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
Returns:
Array of allowed string values.