org.apache.tools.ant.taskdefs

Class Checksum.FormatElement

Enclosing Class:
Checksum

public static class Checksum.FormatElement
extends EnumeratedAttribute

Helper class for the format attribute.
Since:
1.7

Field Summary

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Constructor Summary

FormatElement()
Constructor for FormatElement

Method Summary

static Checksum.FormatElement
getDefault()
Get the default value - CHECKSUM.
MessageFormat
getFormat()
Convert this enumerated type to a MessageFormat.
String[]
getValues()
Get the valid values.

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getInstance, getValue, getValues, indexOfValue, setValue, toString

Constructor Details

FormatElement

public FormatElement()
Constructor for FormatElement

Method Details

getDefault

public static Checksum.FormatElement getDefault()
Get the default value - CHECKSUM.
Returns:
the defaul value.

getFormat

public MessageFormat getFormat()
Convert this enumerated type to a MessageFormat.
Returns:
a MessageFormat object.

getValues

public String[] getValues()
Get the valid values.
Overrides:
getValues in interface EnumeratedAttribute
Returns:
an array of values.