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

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

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

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

This object represents a type of predefined numeric format for a business object.


Enum Constant Summary
BOOLEAN
          The 'Boolean' literal object.
NUMERIC
          The 'Numeric' literal object.
PERCENT
          The 'Percent' literal object.
SCIENTIFIC
          The 'Scientific' literal object.
 
Field Summary
static int BOOLEAN_VALUE
          The 'Boolean' literal value.
static int NUMERIC_VALUE
          The 'Numeric' literal value.
static int PERCENT_VALUE
          The 'Percent' literal value.
static int SCIENTIFIC_VALUE
          The 'Scientific' literal value.
static java.util.List<PredefinedNumberFormatType> VALUES
          A public read-only list of all the 'Predefined Number Format Type' enumerators.
 
Method Summary
static PredefinedNumberFormatType get(int value)
          Returns the 'Predefined Number Format Type' literal with the specified integer value.
static PredefinedNumberFormatType get(java.lang.String literal)
          Returns the 'Predefined Number Format Type' literal with the specified literal value.
static PredefinedNumberFormatType getByName(java.lang.String name)
          Returns the 'Predefined Number 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 PredefinedNumberFormatType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PredefinedNumberFormatType[] 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 PredefinedNumberFormatType NUMERIC
The 'Numeric' literal object.

This is the default type of an instantiated PredefinedNumberFormat object.

See Also:
NUMERIC_VALUE

PERCENT

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

See Also:
PERCENT_VALUE

SCIENTIFIC

public static final PredefinedNumberFormatType SCIENTIFIC
The 'Scientific' literal object.

See Also:
SCIENTIFIC_VALUE

BOOLEAN

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

See Also:
BOOLEAN_VALUE
Field Detail

NUMERIC_VALUE

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

See Also:
NUMERIC, Constant Field Values

PERCENT_VALUE

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

See Also:
PERCENT, Constant Field Values

SCIENTIFIC_VALUE

public static final int SCIENTIFIC_VALUE
The 'Scientific' literal value.

See Also:
SCIENTIFIC, Constant Field Values

BOOLEAN_VALUE

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

See Also:
BOOLEAN, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

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

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

getByName

public static PredefinedNumberFormatType getByName(java.lang.String name)
Returns the 'Predefined Number Format Type' literal with the specified name.

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

get

public static PredefinedNumberFormatType get(int value)
Returns the 'Predefined Number Format Type' literal with the specified integer value.

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


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