com.jurismarches.vradi.entities
Enum FieldTypeEnum

java.lang.Object
  extended by java.lang.Enum<FieldTypeEnum>
      extended by com.jurismarches.vradi.entities.FieldTypeEnum
All Implemented Interfaces:
Serializable, Comparable<FieldTypeEnum>

public enum FieldTypeEnum
extends Enum<FieldTypeEnum>

Author:
letellier

Nested Class Summary
static class FieldTypeEnum.Currency
           
 
Enum Constant Summary
CURRENCY
           
DATE
           
DATE_TIME
           
EMAIL
           
NUMERIC
           
STRING
           
TEXT
           
URL
           
 
Field Summary
static String CURRENCY_TAG_VALUE
           
protected  String TAG_VALUE
           
protected  String tagValue
           
protected  org.sharengo.wikitty.FieldType type
           
 
Method Summary
static FieldTypeEnum.Currency getCurrency(String value)
           
 org.sharengo.wikitty.FieldType getFieldType()
           
 String getTagValue()
           
 boolean isType(org.sharengo.wikitty.FieldType type)
           
 String toString()
           
static FieldTypeEnum valueOf(org.sharengo.wikitty.FieldType type)
           
static FieldTypeEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FieldTypeEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final FieldTypeEnum STRING

TEXT

public static final FieldTypeEnum TEXT

DATE

public static final FieldTypeEnum DATE

DATE_TIME

public static final FieldTypeEnum DATE_TIME

EMAIL

public static final FieldTypeEnum EMAIL

URL

public static final FieldTypeEnum URL

NUMERIC

public static final FieldTypeEnum NUMERIC

CURRENCY

public static final FieldTypeEnum CURRENCY
Field Detail

CURRENCY_TAG_VALUE

public static final String CURRENCY_TAG_VALUE
See Also:
Constant Field Values

TAG_VALUE

protected String TAG_VALUE

tagValue

protected String tagValue

type

protected org.sharengo.wikitty.FieldType type
Method Detail

values

public static FieldTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FieldTypeEnum c : FieldTypeEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FieldTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTagValue

public String getTagValue()

getFieldType

public org.sharengo.wikitty.FieldType getFieldType()

isType

public boolean isType(org.sharengo.wikitty.FieldType type)

toString

public String toString()
Overrides:
toString in class Enum<FieldTypeEnum>

valueOf

public static FieldTypeEnum valueOf(org.sharengo.wikitty.FieldType type)

getCurrency

public static FieldTypeEnum.Currency getCurrency(String value)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.