org.sf.jlaunchpad.util
Class FormatElement

java.lang.Object
  extended by org.sf.jlaunchpad.util.FormatElement

public class FormatElement
extends java.lang.Object

Helper class for the format attribute.

Since:
1.7

Field Summary
protected  java.lang.String value
          The selected value in this enumeration.
 
Constructor Summary
FormatElement()
          Constructor for FormatElement
 
Method Summary
static FormatElement getDefault()
          Get the default value - CHECKSUM.
 java.text.MessageFormat getFormat()
          Convert this enumerated type to a MessageFormat.
 java.lang.String getValue()
           
 java.lang.String[] getValues()
          Get the valid values.
 int indexOfValue(java.lang.String value)
          get the index of a value in this enumeration.
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.lang.String value
The selected value in this enumeration.

Constructor Detail

FormatElement

public FormatElement()
Constructor for FormatElement

Method Detail

setValue

public final void setValue(java.lang.String value)
Parameters:
value - the String value of the attribute

indexOfValue

public final int indexOfValue(java.lang.String value)
get the index of a value in this enumeration.

Parameters:
value - the string value to look for.
Returns:
the index of the value in the array of strings or -1 if it cannot be found.
See Also:
getValues()

getValue

public final java.lang.String getValue()
Returns:
the selected value.

getDefault

public static FormatElement getDefault()
Get the default value - CHECKSUM.

Returns:
the defaul value.

getFormat

public java.text.MessageFormat getFormat()
Convert this enumerated type to a MessageFormat.

Returns:
a MessageFormat object.

getValues

public java.lang.String[] getValues()
Get the valid values.

Returns:
an array of values.


Copyright © 2007-2008 Dream Programs Inc.. All Rights Reserved.