com.sap.sl.sdk.authoring.businesslayer
Enum PredefinedDateTimeFormatType

java.lang.Object
  extended by java.lang.Enum<PredefinedDateTimeFormatType>
      extended by com.sap.sl.sdk.authoring.businesslayer.PredefinedDateTimeFormatType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PredefinedDateTimeFormatType>

public enum PredefinedDateTimeFormatType
extends java.lang.Enum<PredefinedDateTimeFormatType>

A representation of the literals of the enumeration 'Predefined Date Time Format Type', and utility methods to work with them.

This object represents a type of predefined date-time format for a business object.


Enum Constant Summary
FULL_DATE
          The 'Full Date' literal object.
FULL_DATE_TIME
          The 'Full Date Time' literal object.
FULL_TIME
          The 'Full Time' literal object.
INPUT_DATE
          The 'Input Date' literal object.
INPUT_DATE_TIME
          The 'Input Date Time' literal object.
INPUT_TIME
          The 'Input Time' literal object.
LONG_DATE
          The 'Long Date' literal object.
LONG_DATE_TIME
          The 'Long Date Time' literal object.
LONG_TIME
          The 'Long Time' literal object.
MEDIUM_DATE
          The 'Medium Date' literal object.
MEDIUM_DATE_TIME
          The 'Medium Date Time' literal object.
MEDIUM_TIME
          The 'Medium Time' literal object.
SHORT_DATE
          The 'Short Date' literal object.
SHORT_DATE_TIME
          The 'Short Date Time' literal object.
SHORT_TIME
          The 'Short Time' literal object.
 
Field Summary
static int FULL_DATE_TIME_VALUE
          The 'Full Date Time' literal value.
static int FULL_DATE_VALUE
          The 'Full Date' literal value.
static int FULL_TIME_VALUE
          The 'Full Time' literal value.
static int INPUT_DATE_TIME_VALUE
          The 'Input Date Time' literal value.
static int INPUT_DATE_VALUE
          The 'Input Date' literal value.
static int INPUT_TIME_VALUE
          The 'Input Time' literal value.
static int LONG_DATE_TIME_VALUE
          The 'Long Date Time' literal value.
static int LONG_DATE_VALUE
          The 'Long Date' literal value.
static int LONG_TIME_VALUE
          The 'Long Time' literal value.
static int MEDIUM_DATE_TIME_VALUE
          The 'Medium Date Time' literal value.
static int MEDIUM_DATE_VALUE
          The 'Medium Date' literal value.
static int MEDIUM_TIME_VALUE
          The 'Medium Time' literal value.
static int SHORT_DATE_TIME_VALUE
          The 'Short Date Time' literal value.
static int SHORT_DATE_VALUE
          The 'Short Date' literal value.
static int SHORT_TIME_VALUE
          The 'Short Time' literal value.
static java.util.List<PredefinedDateTimeFormatType> VALUES
          A public read-only list of all the 'Predefined Date Time Format Type' enumerators.
 
Method Summary
static PredefinedDateTimeFormatType get(int value)
          Returns the 'Predefined Date Time Format Type' literal with the specified integer value.
static PredefinedDateTimeFormatType get(java.lang.String literal)
          Returns the 'Predefined Date Time Format Type' literal with the specified literal value.
static PredefinedDateTimeFormatType getByName(java.lang.String name)
          Returns the 'Predefined Date Time Format Type' literal with the specified name.
 java.lang.String getLiteral()
          Returns the string representation of the enumerator.
 java.lang.String getName()
          Returns the literal name of the enumerator.
 int getValue()
          Returns the literal integer value of the enumerator.
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static PredefinedDateTimeFormatType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PredefinedDateTimeFormatType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FULL_DATE

public static final PredefinedDateTimeFormatType FULL_DATE
The 'Full Date' literal object.

This is the default type of an instantiated PredefinedDateTimeFormat object.

See Also:
FULL_DATE_VALUE

LONG_DATE

public static final PredefinedDateTimeFormatType LONG_DATE
The 'Long Date' literal object.

See Also:
LONG_DATE_VALUE

MEDIUM_DATE

public static final PredefinedDateTimeFormatType MEDIUM_DATE
The 'Medium Date' literal object.

See Also:
MEDIUM_DATE_VALUE

SHORT_DATE

public static final PredefinedDateTimeFormatType SHORT_DATE
The 'Short Date' literal object.

See Also:
SHORT_DATE_VALUE

FULL_TIME

public static final PredefinedDateTimeFormatType FULL_TIME
The 'Full Time' literal object.

See Also:
FULL_TIME_VALUE

LONG_TIME

public static final PredefinedDateTimeFormatType LONG_TIME
The 'Long Time' literal object.

See Also:
LONG_TIME_VALUE

MEDIUM_TIME

public static final PredefinedDateTimeFormatType MEDIUM_TIME
The 'Medium Time' literal object.

See Also:
MEDIUM_TIME_VALUE

SHORT_TIME

public static final PredefinedDateTimeFormatType SHORT_TIME
The 'Short Time' literal object.

See Also:
SHORT_TIME_VALUE

FULL_DATE_TIME

public static final PredefinedDateTimeFormatType FULL_DATE_TIME
The 'Full Date Time' literal object.

See Also:
FULL_DATE_TIME_VALUE

LONG_DATE_TIME

public static final PredefinedDateTimeFormatType LONG_DATE_TIME
The 'Long Date Time' literal object.

See Also:
LONG_DATE_TIME_VALUE

MEDIUM_DATE_TIME

public static final PredefinedDateTimeFormatType MEDIUM_DATE_TIME
The 'Medium Date Time' literal object.

See Also:
MEDIUM_DATE_TIME_VALUE

SHORT_DATE_TIME

public static final PredefinedDateTimeFormatType SHORT_DATE_TIME
The 'Short Date Time' literal object.

See Also:
SHORT_DATE_TIME_VALUE

INPUT_DATE

public static final PredefinedDateTimeFormatType INPUT_DATE
The 'Input Date' literal object.

See Also:
INPUT_DATE_VALUE

INPUT_TIME

public static final PredefinedDateTimeFormatType INPUT_TIME
The 'Input Time' literal object.

See Also:
INPUT_TIME_VALUE

INPUT_DATE_TIME

public static final PredefinedDateTimeFormatType INPUT_DATE_TIME
The 'Input Date Time' literal object.

See Also:
INPUT_DATE_TIME_VALUE
Field Detail

FULL_DATE_VALUE

public static final int FULL_DATE_VALUE
The 'Full Date' literal value.

See Also:
FULL_DATE, Constant Field Values

LONG_DATE_VALUE

public static final int LONG_DATE_VALUE
The 'Long Date' literal value.

See Also:
LONG_DATE, Constant Field Values

MEDIUM_DATE_VALUE

public static final int MEDIUM_DATE_VALUE
The 'Medium Date' literal value.

See Also:
MEDIUM_DATE, Constant Field Values

SHORT_DATE_VALUE

public static final int SHORT_DATE_VALUE
The 'Short Date' literal value.

See Also:
SHORT_DATE, Constant Field Values

FULL_TIME_VALUE

public static final int FULL_TIME_VALUE
The 'Full Time' literal value.

See Also:
FULL_TIME, Constant Field Values

LONG_TIME_VALUE

public static final int LONG_TIME_VALUE
The 'Long Time' literal value.

See Also:
LONG_TIME, Constant Field Values

MEDIUM_TIME_VALUE

public static final int MEDIUM_TIME_VALUE
The 'Medium Time' literal value.

See Also:
MEDIUM_TIME, Constant Field Values

SHORT_TIME_VALUE

public static final int SHORT_TIME_VALUE
The 'Short Time' literal value.

See Also:
SHORT_TIME, Constant Field Values

FULL_DATE_TIME_VALUE

public static final int FULL_DATE_TIME_VALUE
The 'Full Date Time' literal value.

See Also:
FULL_DATE_TIME, Constant Field Values

LONG_DATE_TIME_VALUE

public static final int LONG_DATE_TIME_VALUE
The 'Long Date Time' literal value.

See Also:
LONG_DATE_TIME, Constant Field Values

MEDIUM_DATE_TIME_VALUE

public static final int MEDIUM_DATE_TIME_VALUE
The 'Medium Date Time' literal value.

See Also:
MEDIUM_DATE_TIME, Constant Field Values

SHORT_DATE_TIME_VALUE

public static final int SHORT_DATE_TIME_VALUE
The 'Short Date Time' literal value.

See Also:
SHORT_DATE_TIME, Constant Field Values

INPUT_DATE_VALUE

public static final int INPUT_DATE_VALUE
The 'Input Date' literal value.

See Also:
INPUT_DATE, Constant Field Values

INPUT_TIME_VALUE

public static final int INPUT_TIME_VALUE
The 'Input Time' literal value.

See Also:
INPUT_TIME, Constant Field Values

INPUT_DATE_TIME_VALUE

public static final int INPUT_DATE_TIME_VALUE
The 'Input Date Time' literal value.

See Also:
INPUT_DATE_TIME, Constant Field Values

VALUES

public static final java.util.List<PredefinedDateTimeFormatType> VALUES
A public read-only list of all the 'Predefined Date Time Format Type' enumerators.

Method Detail

values

public static PredefinedDateTimeFormatType[] 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 (PredefinedDateTimeFormatType c : PredefinedDateTimeFormatType.values())
    System.out.println(c);

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

valueOf

public static PredefinedDateTimeFormatType 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

get

public static PredefinedDateTimeFormatType get(java.lang.String literal)
Returns the 'Predefined Date Time Format Type' literal with the specified literal value.

Parameters:
literal - The enumerator literal as a string
Returns:
A PredefinedDateTimeFormatType object

getByName

public static PredefinedDateTimeFormatType getByName(java.lang.String name)
Returns the 'Predefined Date Time Format Type' literal with the specified name.

Parameters:
name - The literal name of the enumerator
Returns:
A PredefinedDateTimeFormatType object

get

public static PredefinedDateTimeFormatType get(int value)
Returns the 'Predefined Date Time Format Type' literal with the specified integer value.

Parameters:
value - The literal integer value of the enumerator
Returns:
A PredefinedDateTimeFormatType object

getValue

public int getValue()
Returns the literal integer value of the enumerator.

Returns:
An integer that represents the literal value

getName

public java.lang.String getName()
Returns the literal name of the enumerator.

Returns:
A String that represents the literal name

getLiteral

public java.lang.String getLiteral()
Returns the string representation of the enumerator.

Returns:
A String that represents the enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<PredefinedDateTimeFormatType>
Returns:
A String that represents the literal


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.