com.prowidesoftware.swift.model.field
Class Field68C

java.lang.Object
  extended by com.prowidesoftware.swift.model.field.Field
      extended by com.prowidesoftware.swift.model.field.Field68C
All Implemented Interfaces:
AmountContainer, CurrencyContainer, DateContainer, PatternContainer, java.io.Serializable

public class Field68C
extends Field
implements java.io.Serializable, CurrencyContainer, DateContainer, AmountContainer

Field 68C

validation pattern: 4a/4a/1a[]3!a15$151515
parser pattern: S/S/c[]SN$SNSNSN
components pattern: SScESNCNCNCN

Components Data types

NOTE: this source code has been generated.

Author:
www.prowidesoftware.com
See Also:
Serialized Form

Field Summary
static java.lang.String COMPONENTS_PATTERN
           
static java.lang.String NAME
           
static java.lang.String PARSER_PATTERN
           
 
Fields inherited from class com.prowidesoftware.swift.model.field.Field
components
 
Constructor Summary
Field68C()
          Default constructor
Field68C(java.lang.String value)
          Creates the field parsing the parameter value into fields' components
 
Method Summary
 java.math.BigDecimal amount()
          Get the first amount in this field.
 java.util.List<java.math.BigDecimal> amounts()
           
 java.lang.String componentsPattern()
           
 java.util.List<java.util.Currency> currencies()
          Utility method that creates a Currency for every string returned by CurrencyContainer.currencyStrings()
 java.util.Currency currency()
          Analog to CurrencyContainer.currencyString()
 java.lang.String currencyString()
          Get the single currency contained in this field.
 java.util.List<java.lang.String> currencyStrings()
          Get a list of strings of currencies present in this field
 java.util.List<java.util.Calendar> dates()
          Get a calendar for every date found
 java.lang.String getAmountOfTheUnderlyingCommodity()
          Get the Amount Of The Underlying Commodity (component6).
 java.lang.Number getAmountOfTheUnderlyingCommodityAsNumber()
          Get the Amount Of The Underlying Commodity (component6) as Number
 java.lang.String getBuySellIndicator()
          Get the Buy/Sell Indicator (component1).
 java.lang.String getCallPutIndicator()
          Get the Call/Put Indicator (component2).
 java.lang.String getComponent1()
          Get the component1
 java.lang.String getComponent10()
          Get the component10
 java.lang.Number getComponent10AsNumber()
          Get the component10 as Number
 java.lang.String getComponent11()
          Get the component11
 java.util.Currency getComponent11AsCurrency()
          Get the component11 as Currency
 java.lang.String getComponent12()
          Get the component12
 java.lang.Number getComponent12AsNumber()
          Get the component12 as Number
 java.lang.String getComponent1AsString()
          Deprecated. 
 java.lang.String getComponent2()
          Get the component2
 java.lang.String getComponent2AsString()
          Deprecated. 
 java.lang.String getComponent3()
          Get the component3
 java.lang.String getComponent4()
          Get the component4
 java.util.Calendar getComponent4AsCalendar()
          Get the component4 as Calendar
 java.lang.String getComponent5()
          Get the component5
 java.lang.String getComponent5AsString()
          Deprecated. 
 java.lang.String getComponent6()
          Get the component6
 java.lang.Number getComponent6AsNumber()
          Get the component6 as Number
 java.lang.String getComponent7()
          Get the component7
 java.util.Currency getComponent7AsCurrency()
          Get the component7 as Currency
 java.lang.String getComponent8()
          Get the component8
 java.lang.Number getComponent8AsNumber()
          Get the component8 as Number
 java.lang.String getComponent9()
          Get the component9
 java.util.Currency getComponent9AsCurrency()
          Get the component9 as Currency
 java.lang.String getDateContractAgreed()
          Get the Date Contract Agreed (component4).
 java.util.Calendar getDateContractAgreedAsCalendar()
          Get the Date Contract Agreed (component4) as Calendar
 java.lang.String getPremiumPayment()
          Get the Premium Payment (component12).
 java.lang.Number getPremiumPaymentAsNumber()
          Get the Premium Payment (component12) as Number
 java.lang.String getPremiumPaymentCurrency()
          Get the Premium Payment Currency (component11).
 java.util.Currency getPremiumPaymentCurrencyAsCurrency()
          Get the Premium Payment Currency (component11) as Currency
 java.lang.String getPremiumPricePerUnit()
          Get the Premium Price Per Unit (component10).
 java.lang.Number getPremiumPricePerUnitAsNumber()
          Get the Premium Price Per Unit (component10) as Number
 java.lang.String getPremiumPricePerUnitCurrency()
          Get the Premium Price Per Unit Currency (component9).
 java.util.Currency getPremiumPricePerUnitCurrencyAsCurrency()
          Get the Premium Price Per Unit Currency (component9) as Currency
 java.lang.String getStrikePricePerUnit()
          Get the Strike Price Per Unit (component8).
 java.lang.Number getStrikePricePerUnitAsNumber()
          Get the Strike Price Per Unit (component8) as Number
 java.lang.String getStrikePricePerUnitCurrency()
          Get the Strike Price Per Unit Currency (component7).
 java.util.Currency getStrikePricePerUnitCurrencyAsCurrency()
          Get the Strike Price Per Unit Currency (component7) as Currency
 java.lang.String getStyleIndicator()
          Get the Style Indicator (component3).
 java.lang.String getUnit()
          Get the Unit (component5).
 java.lang.String getValue()
          Serializes the fields' components into the single string value (SWIFT format)
 void initializeCurrencies(java.util.Currency cur)
           
 void initializeCurrencies(java.lang.String cur)
          set the currency of this field.
 boolean isGeneric()
          Returns true if the field is a GENERIC FIELD as specified by the standard.
 boolean isOptional(int component)
          Given a component number it returns true if the component is optional, regardless of the field being mandatory in a particular message.
Being the field's value conformed by a composition of one or several internal component values, the field may be present in a message with a proper value but with some of its internal components not set.
 java.lang.String parserPattern()
           
 void setAmountOfTheUnderlyingCommodity(java.lang.Number component6)
          Set the Amount Of The Underlying Commodity (component6) as Number
 void setAmountOfTheUnderlyingCommodity(java.lang.String component6)
          Set the Amount Of The Underlying Commodity (component6).
 void setBuySellIndicator(java.lang.String component1)
          Set the Buy/Sell Indicator (component1).
 void setCallPutIndicator(java.lang.String component2)
          Set the Call/Put Indicator (component2).
 void setComponent1(java.lang.String component1)
          Set the component1.
 void setComponent10(java.lang.Number component10)
          Set the component10.
 void setComponent10(java.lang.String component10)
          Set the component10.
 void setComponent11(java.util.Currency component11)
          Set the component11.
 void setComponent11(java.lang.String component11)
          Set the component11.
 void setComponent12(java.lang.Number component12)
          Set the component12.
 void setComponent12(java.lang.String component12)
          Set the component12.
 void setComponent2(java.lang.String component2)
          Set the component2.
 void setComponent3(java.lang.String component3)
          Set the component3.
 void setComponent4(java.util.Calendar component4)
          Set the component4.
 void setComponent4(java.lang.String component4)
          Set the component4.
 void setComponent5(java.lang.String component5)
          Set the component5.
 void setComponent6(java.lang.Number component6)
          Set the component6.
 void setComponent6(java.lang.String component6)
          Set the component6.
 void setComponent7(java.util.Currency component7)
          Set the component7.
 void setComponent7(java.lang.String component7)
          Set the component7.
 void setComponent8(java.lang.Number component8)
          Set the component8.
 void setComponent8(java.lang.String component8)
          Set the component8.
 void setComponent9(java.util.Currency component9)
          Set the component9.
 void setComponent9(java.lang.String component9)
          Set the component9.
 void setDateContractAgreed(java.util.Calendar component4)
          Set the Date Contract Agreed (component4) as Calendar
 void setDateContractAgreed(java.lang.String component4)
          Set the Date Contract Agreed (component4).
 void setPremiumPayment(java.lang.Number component12)
          Set the Premium Payment (component12) as Number
 void setPremiumPayment(java.lang.String component12)
          Set the Premium Payment (component12).
 void setPremiumPaymentCurrency(java.util.Currency component11)
          Set the Premium Payment Currency (component11) as Currency
 void setPremiumPaymentCurrency(java.lang.String component11)
          Set the Premium Payment Currency (component11).
 void setPremiumPricePerUnit(java.lang.Number component10)
          Set the Premium Price Per Unit (component10) as Number
 void setPremiumPricePerUnit(java.lang.String component10)
          Set the Premium Price Per Unit (component10).
 void setPremiumPricePerUnitCurrency(java.util.Currency component9)
          Set the Premium Price Per Unit Currency (component9) as Currency
 void setPremiumPricePerUnitCurrency(java.lang.String component9)
          Set the Premium Price Per Unit Currency (component9).
 void setStrikePricePerUnit(java.lang.Number component8)
          Set the Strike Price Per Unit (component8) as Number
 void setStrikePricePerUnit(java.lang.String component8)
          Set the Strike Price Per Unit (component8).
 void setStrikePricePerUnitCurrency(java.util.Currency component7)
          Set the Strike Price Per Unit Currency (component7) as Currency
 void setStrikePricePerUnitCurrency(java.lang.String component7)
          Set the Strike Price Per Unit Currency (component7).
 void setStyleIndicator(java.lang.String component3)
          Set the Style Indicator (component3).
 void setUnit(java.lang.String component5)
          Set the Unit (component5).
 
Methods inherited from class com.prowidesoftware.swift.model.field.Field
appendInLines, appendInLines, equals, findComponentStartingWith, format, formatAccount, formatNumber, getAsBigDecimal, getComponent, getComponentAs, getComponents, getConditionalQualifier, getDSS, getField, getLabel, getLabel, getLabel, getLabel, getName, getValueByCodeword, getValueDisplay, hashCode, isDSSPresent, isEmpty, joinComponents, joinComponents, joinComponents, joinComponents, setComponent, setComponents, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

PARSER_PATTERN

public static final java.lang.String PARSER_PATTERN
See Also:
Constant Field Values

COMPONENTS_PATTERN

public static final java.lang.String COMPONENTS_PATTERN
See Also:
Constant Field Values
Constructor Detail

Field68C

public Field68C()
Default constructor


Field68C

public Field68C(java.lang.String value)
Creates the field parsing the parameter value into fields' components

Parameters:
value -
Method Detail

getValue

public java.lang.String getValue()
Serializes the fields' components into the single string value (SWIFT format)

Overrides:
getValue in class Field
Returns:
SWIFT formatted value

getComponent1

public java.lang.String getComponent1()
Get the component1

Returns:
the component1

getComponent1AsString

@Deprecated
public java.lang.String getComponent1AsString()
Deprecated. 

Same as getComponent(1)


getBuySellIndicator

public java.lang.String getBuySellIndicator()
Get the Buy/Sell Indicator (component1).

Returns:
the Buy/Sell Indicator from component1

setComponent1

public void setComponent1(java.lang.String component1)
Set the component1.

Parameters:
component1 - the component1 to set

setBuySellIndicator

public void setBuySellIndicator(java.lang.String component1)
Set the Buy/Sell Indicator (component1).

Parameters:
component1 - the Buy/Sell Indicator to set

getComponent2

public java.lang.String getComponent2()
Get the component2

Returns:
the component2

getComponent2AsString

@Deprecated
public java.lang.String getComponent2AsString()
Deprecated. 

Same as getComponent(2)


getCallPutIndicator

public java.lang.String getCallPutIndicator()
Get the Call/Put Indicator (component2).

Returns:
the Call/Put Indicator from component2

setComponent2

public void setComponent2(java.lang.String component2)
Set the component2.

Parameters:
component2 - the component2 to set

setCallPutIndicator

public void setCallPutIndicator(java.lang.String component2)
Set the Call/Put Indicator (component2).

Parameters:
component2 - the Call/Put Indicator to set

getComponent3

public java.lang.String getComponent3()
Get the component3

Returns:
the component3

getStyleIndicator

public java.lang.String getStyleIndicator()
Get the Style Indicator (component3).

Returns:
the Style Indicator from component3

setComponent3

public void setComponent3(java.lang.String component3)
Set the component3.

Parameters:
component3 - the component3 to set

setStyleIndicator

public void setStyleIndicator(java.lang.String component3)
Set the Style Indicator (component3).

Parameters:
component3 - the Style Indicator to set

getComponent4

public java.lang.String getComponent4()
Get the component4

Returns:
the component4

getComponent4AsCalendar

public java.util.Calendar getComponent4AsCalendar()
Get the component4 as Calendar

Returns:
the component4 converted to Calendar or null if cannot be converted

getDateContractAgreed

public java.lang.String getDateContractAgreed()
Get the Date Contract Agreed (component4).

Returns:
the Date Contract Agreed from component4

getDateContractAgreedAsCalendar

public java.util.Calendar getDateContractAgreedAsCalendar()
Get the Date Contract Agreed (component4) as Calendar

Returns:
the Date Contract Agreed from component4 converted to Calendar or null if cannot be converted

setComponent4

public void setComponent4(java.lang.String component4)
Set the component4.

Parameters:
component4 - the component4 to set

setComponent4

public void setComponent4(java.util.Calendar component4)
Set the component4.

Parameters:
component4 - the Calendar with the component4 content to set

setDateContractAgreed

public void setDateContractAgreed(java.lang.String component4)
Set the Date Contract Agreed (component4).

Parameters:
component4 - the Date Contract Agreed to set

setDateContractAgreed

public void setDateContractAgreed(java.util.Calendar component4)
Set the Date Contract Agreed (component4) as Calendar

Parameters:
component4 - Calendar with the Date Contract Agreed content to set

getComponent5

public java.lang.String getComponent5()
Get the component5

Returns:
the component5

getComponent5AsString

@Deprecated
public java.lang.String getComponent5AsString()
Deprecated. 

Same as getComponent(5)


getUnit

public java.lang.String getUnit()
Get the Unit (component5).

Returns:
the Unit from component5

setComponent5

public void setComponent5(java.lang.String component5)
Set the component5.

Parameters:
component5 - the component5 to set

setUnit

public void setUnit(java.lang.String component5)
Set the Unit (component5).

Parameters:
component5 - the Unit to set

getComponent6

public java.lang.String getComponent6()
Get the component6

Returns:
the component6

getComponent6AsNumber

public java.lang.Number getComponent6AsNumber()
Get the component6 as Number

Returns:
the component6 converted to Number or null if cannot be converted

getAmountOfTheUnderlyingCommodity

public java.lang.String getAmountOfTheUnderlyingCommodity()
Get the Amount Of The Underlying Commodity (component6).

Returns:
the Amount Of The Underlying Commodity from component6

getAmountOfTheUnderlyingCommodityAsNumber

public java.lang.Number getAmountOfTheUnderlyingCommodityAsNumber()
Get the Amount Of The Underlying Commodity (component6) as Number

Returns:
the Amount Of The Underlying Commodity from component6 converted to Number or null if cannot be converted

setComponent6

public void setComponent6(java.lang.String component6)
Set the component6.

Parameters:
component6 - the component6 to set

setComponent6

public void setComponent6(java.lang.Number component6)
Set the component6.

Parameters:
component6 - the Number with the component6 content to set

setAmountOfTheUnderlyingCommodity

public void setAmountOfTheUnderlyingCommodity(java.lang.String component6)
Set the Amount Of The Underlying Commodity (component6).

Parameters:
component6 - the Amount Of The Underlying Commodity to set

setAmountOfTheUnderlyingCommodity

public void setAmountOfTheUnderlyingCommodity(java.lang.Number component6)
Set the Amount Of The Underlying Commodity (component6) as Number

Parameters:
component6 - Number with the Amount Of The Underlying Commodity content to set

getComponent7

public java.lang.String getComponent7()
Get the component7

Returns:
the component7

getComponent7AsCurrency

public java.util.Currency getComponent7AsCurrency()
Get the component7 as Currency

Returns:
the component7 converted to Currency or null if cannot be converted

getStrikePricePerUnitCurrency

public java.lang.String getStrikePricePerUnitCurrency()
Get the Strike Price Per Unit Currency (component7).

Returns:
the Strike Price Per Unit Currency from component7

getStrikePricePerUnitCurrencyAsCurrency

public java.util.Currency getStrikePricePerUnitCurrencyAsCurrency()
Get the Strike Price Per Unit Currency (component7) as Currency

Returns:
the Strike Price Per Unit Currency from component7 converted to Currency or null if cannot be converted

setComponent7

public void setComponent7(java.lang.String component7)
Set the component7.

Parameters:
component7 - the component7 to set

setComponent7

public void setComponent7(java.util.Currency component7)
Set the component7.

Parameters:
component7 - the Currency with the component7 content to set

setStrikePricePerUnitCurrency

public void setStrikePricePerUnitCurrency(java.lang.String component7)
Set the Strike Price Per Unit Currency (component7).

Parameters:
component7 - the Strike Price Per Unit Currency to set

setStrikePricePerUnitCurrency

public void setStrikePricePerUnitCurrency(java.util.Currency component7)
Set the Strike Price Per Unit Currency (component7) as Currency

Parameters:
component7 - Currency with the Strike Price Per Unit Currency content to set

getComponent8

public java.lang.String getComponent8()
Get the component8

Returns:
the component8

getComponent8AsNumber

public java.lang.Number getComponent8AsNumber()
Get the component8 as Number

Returns:
the component8 converted to Number or null if cannot be converted

getStrikePricePerUnit

public java.lang.String getStrikePricePerUnit()
Get the Strike Price Per Unit (component8).

Returns:
the Strike Price Per Unit from component8

getStrikePricePerUnitAsNumber

public java.lang.Number getStrikePricePerUnitAsNumber()
Get the Strike Price Per Unit (component8) as Number

Returns:
the Strike Price Per Unit from component8 converted to Number or null if cannot be converted

setComponent8

public void setComponent8(java.lang.String component8)
Set the component8.

Parameters:
component8 - the component8 to set

setComponent8

public void setComponent8(java.lang.Number component8)
Set the component8.

Parameters:
component8 - the Number with the component8 content to set

setStrikePricePerUnit

public void setStrikePricePerUnit(java.lang.String component8)
Set the Strike Price Per Unit (component8).

Parameters:
component8 - the Strike Price Per Unit to set

setStrikePricePerUnit

public void setStrikePricePerUnit(java.lang.Number component8)
Set the Strike Price Per Unit (component8) as Number

Parameters:
component8 - Number with the Strike Price Per Unit content to set

getComponent9

public java.lang.String getComponent9()
Get the component9

Returns:
the component9

getComponent9AsCurrency

public java.util.Currency getComponent9AsCurrency()
Get the component9 as Currency

Returns:
the component9 converted to Currency or null if cannot be converted

getPremiumPricePerUnitCurrency

public java.lang.String getPremiumPricePerUnitCurrency()
Get the Premium Price Per Unit Currency (component9).

Returns:
the Premium Price Per Unit Currency from component9

getPremiumPricePerUnitCurrencyAsCurrency

public java.util.Currency getPremiumPricePerUnitCurrencyAsCurrency()
Get the Premium Price Per Unit Currency (component9) as Currency

Returns:
the Premium Price Per Unit Currency from component9 converted to Currency or null if cannot be converted

setComponent9

public void setComponent9(java.lang.String component9)
Set the component9.

Parameters:
component9 - the component9 to set

setComponent9

public void setComponent9(java.util.Currency component9)
Set the component9.

Parameters:
component9 - the Currency with the component9 content to set

setPremiumPricePerUnitCurrency

public void setPremiumPricePerUnitCurrency(java.lang.String component9)
Set the Premium Price Per Unit Currency (component9).

Parameters:
component9 - the Premium Price Per Unit Currency to set

setPremiumPricePerUnitCurrency

public void setPremiumPricePerUnitCurrency(java.util.Currency component9)
Set the Premium Price Per Unit Currency (component9) as Currency

Parameters:
component9 - Currency with the Premium Price Per Unit Currency content to set

getComponent10

public java.lang.String getComponent10()
Get the component10

Returns:
the component10

getComponent10AsNumber

public java.lang.Number getComponent10AsNumber()
Get the component10 as Number

Returns:
the component10 converted to Number or null if cannot be converted

getPremiumPricePerUnit

public java.lang.String getPremiumPricePerUnit()
Get the Premium Price Per Unit (component10).

Returns:
the Premium Price Per Unit from component10

getPremiumPricePerUnitAsNumber

public java.lang.Number getPremiumPricePerUnitAsNumber()
Get the Premium Price Per Unit (component10) as Number

Returns:
the Premium Price Per Unit from component10 converted to Number or null if cannot be converted

setComponent10

public void setComponent10(java.lang.String component10)
Set the component10.

Parameters:
component10 - the component10 to set

setComponent10

public void setComponent10(java.lang.Number component10)
Set the component10.

Parameters:
component10 - the Number with the component10 content to set

setPremiumPricePerUnit

public void setPremiumPricePerUnit(java.lang.String component10)
Set the Premium Price Per Unit (component10).

Parameters:
component10 - the Premium Price Per Unit to set

setPremiumPricePerUnit

public void setPremiumPricePerUnit(java.lang.Number component10)
Set the Premium Price Per Unit (component10) as Number

Parameters:
component10 - Number with the Premium Price Per Unit content to set

getComponent11

public java.lang.String getComponent11()
Get the component11

Returns:
the component11

getComponent11AsCurrency

public java.util.Currency getComponent11AsCurrency()
Get the component11 as Currency

Returns:
the component11 converted to Currency or null if cannot be converted

getPremiumPaymentCurrency

public java.lang.String getPremiumPaymentCurrency()
Get the Premium Payment Currency (component11).

Returns:
the Premium Payment Currency from component11

getPremiumPaymentCurrencyAsCurrency

public java.util.Currency getPremiumPaymentCurrencyAsCurrency()
Get the Premium Payment Currency (component11) as Currency

Returns:
the Premium Payment Currency from component11 converted to Currency or null if cannot be converted

setComponent11

public void setComponent11(java.lang.String component11)
Set the component11.

Parameters:
component11 - the component11 to set

setComponent11

public void setComponent11(java.util.Currency component11)
Set the component11.

Parameters:
component11 - the Currency with the component11 content to set

setPremiumPaymentCurrency

public void setPremiumPaymentCurrency(java.lang.String component11)
Set the Premium Payment Currency (component11).

Parameters:
component11 - the Premium Payment Currency to set

setPremiumPaymentCurrency

public void setPremiumPaymentCurrency(java.util.Currency component11)
Set the Premium Payment Currency (component11) as Currency

Parameters:
component11 - Currency with the Premium Payment Currency content to set

getComponent12

public java.lang.String getComponent12()
Get the component12

Returns:
the component12

getComponent12AsNumber

public java.lang.Number getComponent12AsNumber()
Get the component12 as Number

Returns:
the component12 converted to Number or null if cannot be converted

getPremiumPayment

public java.lang.String getPremiumPayment()
Get the Premium Payment (component12).

Returns:
the Premium Payment from component12

getPremiumPaymentAsNumber

public java.lang.Number getPremiumPaymentAsNumber()
Get the Premium Payment (component12) as Number

Returns:
the Premium Payment from component12 converted to Number or null if cannot be converted

setComponent12

public void setComponent12(java.lang.String component12)
Set the component12.

Parameters:
component12 - the component12 to set

setComponent12

public void setComponent12(java.lang.Number component12)
Set the component12.

Parameters:
component12 - the Number with the component12 content to set

setPremiumPayment

public void setPremiumPayment(java.lang.String component12)
Set the Premium Payment (component12).

Parameters:
component12 - the Premium Payment to set

setPremiumPayment

public void setPremiumPayment(java.lang.Number component12)
Set the Premium Payment (component12) as Number

Parameters:
component12 - Number with the Premium Payment content to set

currencyStrings

public java.util.List<java.lang.String> currencyStrings()
Description copied from interface: CurrencyContainer
Get a list of strings of currencies present in this field

Specified by:
currencyStrings in interface CurrencyContainer
Returns:
a list, with zero or more currencies in this field.

currencies

public java.util.List<java.util.Currency> currencies()
Description copied from interface: CurrencyContainer
Utility method that creates a Currency for every string returned by CurrencyContainer.currencyStrings()

Specified by:
currencies in interface CurrencyContainer

currency

public java.util.Currency currency()
Description copied from interface: CurrencyContainer
Analog to CurrencyContainer.currencyString()

Specified by:
currency in interface CurrencyContainer
See Also:
CurrencyContainer.currencyStrings(), CurrencyContainer.currencyString()

currencyString

public java.lang.String currencyString()
Description copied from interface: CurrencyContainer
Get the single currency contained in this field.

Specified by:
currencyString in interface CurrencyContainer
Returns:
null if no currency is contained - which should never happen, or throws an exception if more than one currency is present in this field.

initializeCurrencies

public void initializeCurrencies(java.lang.String cur)
Description copied from interface: CurrencyContainer
set the currency of this field. If this field contains more than one currency then all currency components will be set. Individual setComponentNN should be used to set only one component of the field.

Specified by:
initializeCurrencies in interface CurrencyContainer

initializeCurrencies

public void initializeCurrencies(java.util.Currency cur)
Specified by:
initializeCurrencies in interface CurrencyContainer
See Also:
CurrencyContainer.initializeCurrencies(String)

dates

public java.util.List<java.util.Calendar> dates()
Description copied from interface: DateContainer
Get a calendar for every date found

Specified by:
dates in interface DateContainer

amounts

public java.util.List<java.math.BigDecimal> amounts()

amount

public java.math.BigDecimal amount()
Description copied from interface: AmountContainer
Get the first amount in this field.

Specified by:
amount in interface AmountContainer

isOptional

public boolean isOptional(int component)
Given a component number it returns true if the component is optional, regardless of the field being mandatory in a particular message.
Being the field's value conformed by a composition of one or several internal component values, the field may be present in a message with a proper value but with some of its internal components not set.

Specified by:
isOptional in class Field
Parameters:
component - component number, first component of a field is referenced as 1
Returns:
true if the component is optional for this field, false otherwise

isGeneric

public boolean isGeneric()
Returns true if the field is a GENERIC FIELD as specified by the standard.

Specified by:
isGeneric in class Field
Returns:
true if the field is generic, false otherwise

componentsPattern

public java.lang.String componentsPattern()
Specified by:
componentsPattern in interface PatternContainer

parserPattern

public java.lang.String parserPattern()
Specified by:
parserPattern in interface PatternContainer