com.pkrete.jsip2.variables
Enum CurrencyType

java.lang.Object
  extended by java.lang.Enum<CurrencyType>
      extended by com.pkrete.jsip2.variables.CurrencyType
All Implemented Interfaces:
Serializable, Comparable<CurrencyType>

public enum CurrencyType
extends Enum<CurrencyType>

This enum defines a set of currency types that can be used in SIP2 request and response messages. Each currency has a code that is used in the communication between the system and the ILS.

Author:
Petteri Kivimäki

Enum Constant Summary
CANADIAN_DOLLAR
           
EURO
           
POUND_STERLING
           
US_DOLLAR
           
YEN
           
 
Method Summary
 String toString()
           
static CurrencyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CurrencyType[] 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

US_DOLLAR

public static final CurrencyType US_DOLLAR

CANADIAN_DOLLAR

public static final CurrencyType CANADIAN_DOLLAR

POUND_STERLING

public static final CurrencyType POUND_STERLING

YEN

public static final CurrencyType YEN

EURO

public static final CurrencyType EURO
Method Detail

values

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

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

valueOf

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

toString

public String toString()
Overrides:
toString in class Enum<CurrencyType>


Copyright © 2012-2014. All Rights Reserved.