org.apache.tools.ant.taskdefsClass Checksum.FormatElement
- java.lang.Object
- org.apache.tools.ant.types.EnumeratedAttribute
- org.apache.tools.ant.taskdefs.Checksum.FormatElement
- Enclosing class:
- Checksum
public static class Checksum.FormatElement extends EnumeratedAttributeHelper class for the format attribute.
- Since:
- 1.7
Field Summary
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
Constructor Summary
Constructors Constructor and Description FormatElement()
Constructor for FormatElement
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Checksum.FormatElement
getDefault()
Get the default value - CHECKSUM.java.text.MessageFormat
getFormat()
Convert this enumerated type to aMessageFormat
.java.lang.String[]
getValues()
Get the valid values.
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
Method Detail
getDefault
public static Checksum.FormatElement getDefault()Get the default value - CHECKSUM.
- Returns:
- the defaul value.
getFormat
public java.text.MessageFormat getFormat()Convert this enumerated type to aMessageFormat
.
- Returns:
- a
MessageFormat
object.
getValues
public java.lang.String[] getValues()Get the valid values.
- Specified by:
getValues
in classEnumeratedAttribute
- Returns:
- an array of values.