com.sap.sl.sdk.authoring.datafoundation
Enum DataType

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

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

A representation of the literals of the enumeration 'Data Type', and utility methods to work with them.


Enum Constant Summary
BLOB
          The 'Blob' literal object.
BOOLEAN
          The 'Boolean' literal object.
CALENDAR_DATE
          The 'Calendar Date' literal object.
DATE
          The 'Date' literal object.
DATE_TIME
          The 'Date Time' literal object.
KEY_STRING
          The 'Key String' literal object.
LONG_TEXT
          The 'Long Text' literal object.
MEMBER
          The 'Member' literal object.
NUMERIC
          The 'Numeric' literal object.
PERCENT
          The 'Percent' literal object.
STRING
          The 'String' literal object.
TIME_SPAN
          The 'Time Span' literal object.
UNKNOWN
          The 'Unknown' literal object.
 
Field Summary
static int BLOB_VALUE
          The 'Blob' literal value.
static int BOOLEAN_VALUE
          The 'Boolean' literal value.
static int CALENDAR_DATE_VALUE
          The 'Calendar Date' literal value.
static int DATE_TIME_VALUE
          The 'Date Time' literal value.
static int DATE_VALUE
          The 'Date' literal value.
static int KEY_STRING_VALUE
          The 'Key String' literal value.
static int LONG_TEXT_VALUE
          The 'Long Text' literal value.
static int MEMBER_VALUE
          The 'Member' literal value.
static int NUMERIC_VALUE
          The 'Numeric' literal value.
static int PERCENT_VALUE
          The 'Percent' literal value.
static int STRING_VALUE
          The 'String' literal value.
static int TIME_SPAN_VALUE
          The 'Time Span' literal value.
static int UNKNOWN_VALUE
          The 'Unknown' literal value.
static java.util.List<DataType> VALUES
          A public read-only list of all the 'Data Type' enumerators.
 
Method Summary
static DataType get(int value)
          Returns the 'Data Type' literal with the specified integer value.
static DataType get(java.lang.String literal)
          Returns the 'Data Type' literal with the specified literal value.
static DataType getByName(java.lang.String name)
          Returns the 'Data 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 DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DataType[] 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

NUMERIC

public static final DataType NUMERIC
The 'Numeric' literal object.

See Also:
NUMERIC_VALUE

STRING

public static final DataType STRING
The 'String' literal object.

See Also:
STRING_VALUE

DATE

public static final DataType DATE
The 'Date' literal object.

See Also:
DATE_VALUE

DATE_TIME

public static final DataType DATE_TIME
The 'Date Time' literal object.

See Also:
DATE_TIME_VALUE

LONG_TEXT

public static final DataType LONG_TEXT
The 'Long Text' literal object.

See Also:
LONG_TEXT_VALUE

BLOB

public static final DataType BLOB
The 'Blob' literal object.

See Also:
BLOB_VALUE

BOOLEAN

public static final DataType BOOLEAN
The 'Boolean' literal object.

See Also:
BOOLEAN_VALUE

UNKNOWN

public static final DataType UNKNOWN
The 'Unknown' literal object.

See Also:
UNKNOWN_VALUE

PERCENT

public static final DataType PERCENT
The 'Percent' literal object.

See Also:
PERCENT_VALUE

MEMBER

public static final DataType MEMBER
The 'Member' literal object.

See Also:
MEMBER_VALUE

KEY_STRING

public static final DataType KEY_STRING
The 'Key String' literal object.

See Also:
KEY_STRING_VALUE

CALENDAR_DATE

public static final DataType CALENDAR_DATE
The 'Calendar Date' literal object.

See Also:
CALENDAR_DATE_VALUE

TIME_SPAN

public static final DataType TIME_SPAN
The 'Time Span' literal object.

See Also:
TIME_SPAN_VALUE
Field Detail

NUMERIC_VALUE

public static final int NUMERIC_VALUE
The 'Numeric' literal value.

See Also:
NUMERIC, Constant Field Values

STRING_VALUE

public static final int STRING_VALUE
The 'String' literal value.

See Also:
STRING, Constant Field Values

DATE_VALUE

public static final int DATE_VALUE
The 'Date' literal value.

See Also:
DATE, Constant Field Values

DATE_TIME_VALUE

public static final int DATE_TIME_VALUE
The 'Date Time' literal value.

See Also:
DATE_TIME, Constant Field Values

LONG_TEXT_VALUE

public static final int LONG_TEXT_VALUE
The 'Long Text' literal value.

See Also:
LONG_TEXT, Constant Field Values

BLOB_VALUE

public static final int BLOB_VALUE
The 'Blob' literal value.

See Also:
BLOB, Constant Field Values

BOOLEAN_VALUE

public static final int BOOLEAN_VALUE
The 'Boolean' literal value.

See Also:
BOOLEAN, Constant Field Values

UNKNOWN_VALUE

public static final int UNKNOWN_VALUE
The 'Unknown' literal value.

See Also:
UNKNOWN, Constant Field Values

PERCENT_VALUE

public static final int PERCENT_VALUE
The 'Percent' literal value.

See Also:
PERCENT, Constant Field Values

MEMBER_VALUE

public static final int MEMBER_VALUE
The 'Member' literal value.

See Also:
MEMBER, Constant Field Values

KEY_STRING_VALUE

public static final int KEY_STRING_VALUE
The 'Key String' literal value.

See Also:
KEY_STRING, Constant Field Values

CALENDAR_DATE_VALUE

public static final int CALENDAR_DATE_VALUE
The 'Calendar Date' literal value.

See Also:
CALENDAR_DATE, Constant Field Values

TIME_SPAN_VALUE

public static final int TIME_SPAN_VALUE
The 'Time Span' literal value.

See Also:
TIME_SPAN, Constant Field Values

VALUES

public static final java.util.List<DataType> VALUES
A public read-only list of all the 'Data Type' enumerators.

Method Detail

values

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

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

valueOf

public static DataType 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 DataType get(java.lang.String literal)
Returns the 'Data Type' literal with the specified literal value.

Parameters:
literal - A String that represents the data type
Returns:
A DataType object

getByName

public static DataType getByName(java.lang.String name)
Returns the 'Data Type' literal with the specified name.

Parameters:
name - The name of the data type
Returns:
A DataType object

get

public static DataType get(int value)
Returns the 'Data Type' literal with the specified integer value.

Parameters:
value - The literal integer value
Returns:
A DataType 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<DataType>
Returns:
A String that represents the literal


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