Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


oracle.webcenter.generalsettings.model
Enum DateFormatSetting.DateTimeStyle

java.lang.Object
  extended by java.lang.Enum<DateFormatSetting.DateTimeStyle>
      extended by oracle.webcenter.generalsettings.model.DateFormatSetting.DateTimeStyle

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DateFormatSetting.DateTimeStyle>
Enclosing class:
DateFormatSetting

public static enum DateFormatSetting.DateTimeStyle
extends java.lang.Enum<DateFormatSetting.DateTimeStyle>

Provides the date and time styles in an application. The Java style date and time formats should be used by the application/ services for formatting/parsing date/time. The value returned by the getValue() of each style will be stored in the preference store.


Enum Constant Summary
FULL
           
LONG
           
MEDIUM
           
SHORT
           

 

Method Summary
 int getId()
          Returns the corresponding java.text.DateFormat style identifier.
static DateFormatSetting.DateTimeStyle getStyle(java.lang.String value)
          An useful method for getting the DateTimeStyle instance for the specified value.
 java.lang.String getValue()
          Returns the value of the style.
 java.lang.String toString()
          Returns whatever getValue() returns.
static DateFormatSetting.DateTimeStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DateFormatSetting.DateTimeStyle[] 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

SHORT

public static final DateFormatSetting.DateTimeStyle SHORT

MEDIUM

public static final DateFormatSetting.DateTimeStyle MEDIUM

LONG

public static final DateFormatSetting.DateTimeStyle LONG

FULL

public static final DateFormatSetting.DateTimeStyle FULL

Method Detail

values

public static DateFormatSetting.DateTimeStyle[] 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 (DateFormatSetting.DateTimeStyle c : DateFormatSetting.DateTimeStyle.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DateFormatSetting.DateTimeStyle valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getStyle

public static DateFormatSetting.DateTimeStyle getStyle(java.lang.String value)
An useful method for getting the DateTimeStyle instance for the specified value. Null is returned if the specified value does not match the value of any style.
Parameters:
value - The value for which the style instance is required
Returns:
A DateTimeStyle instance for the specified value; null if there are no styles that match the specified value.

getId

public int getId()
Returns the corresponding java.text.DateFormat style identifier. E.g. for the style SHORT, it returns DateFormat.SHORT
Returns:
the corresponding java.text.DateFormat style identifier

getValue

public java.lang.String getValue()
Returns the value of the style. This value will be stored in the preference store and should be used with date/time style attributes of date/time converters.
Returns:
The value of the style e.g. short, medium, long, full

toString

public java.lang.String toString()
Returns whatever getValue() returns. This method calls getValue() and returns the value got from getValue()
Overrides:
toString in class java.lang.Enum<DateFormatSetting.DateTimeStyle>
Returns:
Whatever getValue() returns.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
E15995-06


Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved.