net.sf.mpxj
Enum CurrencySymbolPosition

java.lang.Object
  extended by java.lang.Enum<CurrencySymbolPosition>
      extended by net.sf.mpxj.CurrencySymbolPosition
All Implemented Interfaces:
Serializable, Comparable<CurrencySymbolPosition>, MpxjEnum

public enum CurrencySymbolPosition
extends Enum<CurrencySymbolPosition>
implements MpxjEnum

Instances of this class represent enumerated currency symbol position values.


Enum Constant Summary
AFTER
           
AFTER_WITH_SPACE
           
BEFORE
           
BEFORE_WITH_SPACE
           
 
Method Summary
static CurrencySymbolPosition getInstance(int value)
          Retrieve a CurrencySymbolPosition instance representing the supplied value.
 int getValue()
          Retrieves the int representation of the currency symbol position value.
 String toString()
          Returns a string representation of the currency symbol position type to be used as part of an MPX file.
static CurrencySymbolPosition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CurrencySymbolPosition[] 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

AFTER

public static final CurrencySymbolPosition AFTER

BEFORE

public static final CurrencySymbolPosition BEFORE

AFTER_WITH_SPACE

public static final CurrencySymbolPosition AFTER_WITH_SPACE

BEFORE_WITH_SPACE

public static final CurrencySymbolPosition BEFORE_WITH_SPACE
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Retrieves the int representation of the currency symbol position value.

Specified by:
getValue in interface MpxjEnum
Returns:
currency symbol position value

getInstance

public static CurrencySymbolPosition getInstance(int value)
Retrieve a CurrencySymbolPosition instance representing the supplied value.

Parameters:
value - currency symbol position value
Returns:
CurrencySymbolPosition instance

toString

public String toString()
Returns a string representation of the currency symbol position type to be used as part of an MPX file.

Overrides:
toString in class Enum<CurrencySymbolPosition>
Returns:
string representation


Copyright © 2012. All Rights Reserved.