biz.c24.io.api.data
Class DateStyleEnum

java.lang.Object
  extended by biz.c24.io.api.data.DateStyleEnum
All Implemented Interfaces:
Serializable

public final class DateStyleEnum
extends Object
implements Serializable

An enumeration of possible date styles.

A date style defines the level of detail that should be used when creating localised date formats.

See Also:
Serialized Form

Field Summary
static DateStyleEnum FULL
          Specifies a full pattern should be used when localised.
static DateStyleEnum LONG
          Specifies a long pattern should be used when localised.
static DateStyleEnum MEDIUM
          Specifies a medium pattern should be used when localised.
static DateStyleEnum SHORT
          Specifies a short pattern should be used when localised.
 
Method Summary
static DateStyleEnum[] getEnumArray()
          Returns an array containing the members of this enumeration.
static DateStyleEnum getEnumValue(String name)
          Returns the enumeration value called name.
 int getFormat()
          Returns the id from DateFormat to which this enumeration value relates.
 String getName()
          Returns the name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHORT

public static final DateStyleEnum SHORT
Specifies a short pattern should be used when localised.


MEDIUM

public static final DateStyleEnum MEDIUM
Specifies a medium pattern should be used when localised.


LONG

public static final DateStyleEnum LONG
Specifies a long pattern should be used when localised.


FULL

public static final DateStyleEnum FULL
Specifies a full pattern should be used when localised.

Method Detail

getName

public String getName()
Returns the name.

Returns:
The name.

toString

public String toString()
Overrides:
toString in class Object

getFormat

public int getFormat()
Returns the id from DateFormat to which this enumeration value relates.

Returns:
The id.

getEnumArray

public static DateStyleEnum[] getEnumArray()
Returns an array containing the members of this enumeration.

Returns:
The enumeration as an array.

getEnumValue

public static DateStyleEnum getEnumValue(String name)
Returns the enumeration value called name.

Parameters:
name - The name of the enumeration value to return.
Returns:
The enumeration value or null if none was found.


C24 Technologies © 2002-2012: All Rights Reserved.