public class Field68C extends Field implements java.io.Serializable, CurrencyContainer, DateContainer, AmountContainer
String
String
Character
Calendar
String
Number
Currency
Number
Currency
Number
Currency
Number
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENTS_PATTERN |
static java.lang.String |
F_68C
same as NAME, intended to be clear when using static imports
|
static java.lang.String |
NAME
Constant with the field name 68C
|
static java.lang.String |
PARSER_PATTERN |
components
Constructor and Description |
---|
Field68C()
Default constructor
|
Field68C(java.lang.String value)
Creates the field parsing the parameter value into fields' components
|
Modifier and Type | Method and Description |
---|---|
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
|
static Tag |
emptyTag()
Create a Tag with this field name and an empty string as value
Shorthand for
new Tag(NAME, "") |
static Field68C |
get(SwiftMessage msg)
Get the first instance of Field68C in the given message.
|
static Field68C |
get(SwiftTagListBlock block)
Get the first occurrence form the tag list or null if not found.
|
static java.util.List<Field68C> |
getAll(SwiftMessage msg)
Get a list of all occurrences of the field Field68C in the given message
an empty list is returned if none found.
|
static java.util.List<Field68C> |
getAll(SwiftTagListBlock block)
Get a list of all occurrences of the field Field68C from the given block
an empty list is returned if none 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() |
Field68C |
setAmountOfTheUnderlyingCommodity(java.lang.Number component6)
Set the Amount Of The Underlying Commodity (component6) as Number
|
Field68C |
setAmountOfTheUnderlyingCommodity(java.lang.String component6)
Set the Amount Of The Underlying Commodity (component6).
|
Field68C |
setBuySellIndicator(java.lang.String component1)
Set the Buy/Sell Indicator (component1).
|
Field68C |
setCallPutIndicator(java.lang.String component2)
Set the Call/Put Indicator (component2).
|
Field68C |
setComponent1(java.lang.String component1)
Set the component1.
|
Field68C |
setComponent10(java.lang.Number component10)
Set the component10.
|
Field68C |
setComponent10(java.lang.String component10)
Set the component10.
|
Field68C |
setComponent11(java.util.Currency component11)
Set the component11.
|
Field68C |
setComponent11(java.lang.String component11)
Set the component11.
|
Field68C |
setComponent12(java.lang.Number component12)
Set the component12.
|
Field68C |
setComponent12(java.lang.String component12)
Set the component12.
|
Field68C |
setComponent2(java.lang.String component2)
Set the component2.
|
Field68C |
setComponent3(java.lang.String component3)
Set the component3.
|
Field68C |
setComponent4(java.util.Calendar component4)
Set the component4.
|
Field68C |
setComponent4(java.lang.String component4)
Set the component4.
|
Field68C |
setComponent5(java.lang.String component5)
Set the component5.
|
Field68C |
setComponent6(java.lang.Number component6)
Set the component6.
|
Field68C |
setComponent6(java.lang.String component6)
Set the component6.
|
Field68C |
setComponent7(java.util.Currency component7)
Set the component7.
|
Field68C |
setComponent7(java.lang.String component7)
Set the component7.
|
Field68C |
setComponent8(java.lang.Number component8)
Set the component8.
|
Field68C |
setComponent8(java.lang.String component8)
Set the component8.
|
Field68C |
setComponent9(java.util.Currency component9)
Set the component9.
|
Field68C |
setComponent9(java.lang.String component9)
Set the component9.
|
Field68C |
setDateContractAgreed(java.util.Calendar component4)
Set the Date Contract Agreed (component4) as Calendar
|
Field68C |
setDateContractAgreed(java.lang.String component4)
Set the Date Contract Agreed (component4).
|
Field68C |
setPremiumPayment(java.lang.Number component12)
Set the Premium Payment (component12) as Number
|
Field68C |
setPremiumPayment(java.lang.String component12)
Set the Premium Payment (component12).
|
Field68C |
setPremiumPaymentCurrency(java.util.Currency component11)
Set the Premium Payment Currency (component11) as Currency
|
Field68C |
setPremiumPaymentCurrency(java.lang.String component11)
Set the Premium Payment Currency (component11).
|
Field68C |
setPremiumPricePerUnit(java.lang.Number component10)
Set the Premium Price Per Unit (component10) as Number
|
Field68C |
setPremiumPricePerUnit(java.lang.String component10)
Set the Premium Price Per Unit (component10).
|
Field68C |
setPremiumPricePerUnitCurrency(java.util.Currency component9)
Set the Premium Price Per Unit Currency (component9) as Currency
|
Field68C |
setPremiumPricePerUnitCurrency(java.lang.String component9)
Set the Premium Price Per Unit Currency (component9).
|
Field68C |
setStrikePricePerUnit(java.lang.Number component8)
Set the Strike Price Per Unit (component8) as Number
|
Field68C |
setStrikePricePerUnit(java.lang.String component8)
Set the Strike Price Per Unit (component8).
|
Field68C |
setStrikePricePerUnitCurrency(java.util.Currency component7)
Set the Strike Price Per Unit Currency (component7) as Currency
|
Field68C |
setStrikePricePerUnitCurrency(java.lang.String component7)
Set the Strike Price Per Unit Currency (component7).
|
Field68C |
setStyleIndicator(java.lang.String component3)
Set the Style Indicator (component3).
|
Field68C |
setUnit(java.lang.String component5)
Set the Unit (component5).
|
static Tag |
tag(java.lang.String value)
Create a Tag with this field name and the given value.
|
appendInLines, appendInLines, asTag, equals, findComponentStartingWith, format, formatAccount, formatNumber, getAsBigDecimal, getComponent, getComponentAs, getComponents, getConditionalQualifier, getDSS, getField, getLabel, getLabel, getLabel, getLabel, getName, getValueByCodeword, getValueDisplay, hashCode, is, is, isDSSPresent, isEmpty, isLetterOption, isNameAnyOf, joinComponents, joinComponents, joinComponents, joinComponents, letterOption, setComponent, setComponents, toString
public static final java.lang.String COMPONENTS_PATTERN
public static final java.lang.String F_68C
public static final java.lang.String NAME
public static final java.lang.String PARSER_PATTERN
public Field68C()
public Field68C(java.lang.String value)
value
- public java.math.BigDecimal amount()
AmountContainer
amount
in interface AmountContainer
public java.util.List<java.math.BigDecimal> amounts()
public java.lang.String componentsPattern()
componentsPattern
in interface PatternContainer
public java.util.List<java.util.Currency> currencies()
CurrencyContainer
CurrencyContainer.currencyStrings()
currencies
in interface CurrencyContainer
public java.util.Currency currency()
CurrencyContainer
CurrencyContainer.currencyString()
currency
in interface CurrencyContainer
CurrencyContainer.currencyStrings()
,
CurrencyContainer.currencyString()
public java.lang.String currencyString()
CurrencyContainer
currencyString
in interface CurrencyContainer
public java.util.List<java.lang.String> currencyStrings()
CurrencyContainer
currencyStrings
in interface CurrencyContainer
public java.util.List<java.util.Calendar> dates()
DateContainer
dates
in interface DateContainer
public static Tag emptyTag()
new Tag(NAME, "")
NAME
public static Field68C get(SwiftMessage msg)
msg
- may be empty or null
public static Field68C get(SwiftTagListBlock block)
block
- may be null or emptypublic static java.util.List<Field68C> getAll(SwiftMessage msg)
msg
- may be empty or null in which case an empty list is returned
public static java.util.List<Field68C> getAll(SwiftTagListBlock block)
block
- may be empty or null in which case an empty list is returnedpublic java.lang.String getAmountOfTheUnderlyingCommodity()
public java.lang.Number getAmountOfTheUnderlyingCommodityAsNumber()
null
if cannot be convertedpublic java.lang.String getBuySellIndicator()
public java.lang.String getCallPutIndicator()
public java.lang.String getComponent1()
public java.lang.String getComponent10()
public java.lang.Number getComponent10AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent11()
public java.util.Currency getComponent11AsCurrency()
null
if cannot be convertedpublic java.lang.String getComponent12()
public java.lang.Number getComponent12AsNumber()
null
if cannot be converted@Deprecated public java.lang.String getComponent1AsString()
public java.lang.String getComponent2()
@Deprecated public java.lang.String getComponent2AsString()
public java.lang.String getComponent3()
public java.lang.String getComponent4()
public java.util.Calendar getComponent4AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent5()
@Deprecated public java.lang.String getComponent5AsString()
public java.lang.String getComponent6()
public java.lang.Number getComponent6AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent7()
public java.util.Currency getComponent7AsCurrency()
null
if cannot be convertedpublic java.lang.String getComponent8()
public java.lang.Number getComponent8AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent9()
public java.util.Currency getComponent9AsCurrency()
null
if cannot be convertedpublic java.lang.String getDateContractAgreed()
public java.util.Calendar getDateContractAgreedAsCalendar()
null
if cannot be convertedpublic java.lang.String getPremiumPayment()
public java.lang.Number getPremiumPaymentAsNumber()
null
if cannot be convertedpublic java.lang.String getPremiumPaymentCurrency()
public java.util.Currency getPremiumPaymentCurrencyAsCurrency()
null
if cannot be convertedpublic java.lang.String getPremiumPricePerUnit()
public java.lang.Number getPremiumPricePerUnitAsNumber()
null
if cannot be convertedpublic java.lang.String getPremiumPricePerUnitCurrency()
public java.util.Currency getPremiumPricePerUnitCurrencyAsCurrency()
null
if cannot be convertedpublic java.lang.String getStrikePricePerUnit()
public java.lang.Number getStrikePricePerUnitAsNumber()
null
if cannot be convertedpublic java.lang.String getStrikePricePerUnitCurrency()
public java.util.Currency getStrikePricePerUnitCurrencyAsCurrency()
null
if cannot be convertedpublic java.lang.String getStyleIndicator()
public java.lang.String getUnit()
public java.lang.String getValue()
public void initializeCurrencies(java.util.Currency cur)
initializeCurrencies
in interface CurrencyContainer
CurrencyContainer.initializeCurrencies(String)
public void initializeCurrencies(java.lang.String cur)
CurrencyContainer
initializeCurrencies
in interface CurrencyContainer
public boolean isGeneric()
public boolean isOptional(int component)
isOptional
in class Field
component
- component number, first component of a field is referenced as 1public java.lang.String parserPattern()
parserPattern
in interface PatternContainer
public Field68C setAmountOfTheUnderlyingCommodity(java.lang.Number component6)
component6
- Number with the Amount Of The Underlying Commodity content to setpublic Field68C setAmountOfTheUnderlyingCommodity(java.lang.String component6)
component6
- the Amount Of The Underlying Commodity to setpublic Field68C setBuySellIndicator(java.lang.String component1)
component1
- the Buy/Sell Indicator to setpublic Field68C setCallPutIndicator(java.lang.String component2)
component2
- the Call/Put Indicator to setpublic Field68C setComponent1(java.lang.String component1)
component1
- the component1 to setpublic Field68C setComponent10(java.lang.Number component10)
component10
- the Number with the component10 content to setpublic Field68C setComponent10(java.lang.String component10)
component10
- the component10 to setpublic Field68C setComponent11(java.util.Currency component11)
component11
- the Currency with the component11 content to setpublic Field68C setComponent11(java.lang.String component11)
component11
- the component11 to setpublic Field68C setComponent12(java.lang.Number component12)
component12
- the Number with the component12 content to setpublic Field68C setComponent12(java.lang.String component12)
component12
- the component12 to setpublic Field68C setComponent2(java.lang.String component2)
component2
- the component2 to setpublic Field68C setComponent3(java.lang.String component3)
component3
- the component3 to setpublic Field68C setComponent4(java.util.Calendar component4)
component4
- the Calendar with the component4 content to setpublic Field68C setComponent4(java.lang.String component4)
component4
- the component4 to setpublic Field68C setComponent5(java.lang.String component5)
component5
- the component5 to setpublic Field68C setComponent6(java.lang.Number component6)
component6
- the Number with the component6 content to setpublic Field68C setComponent6(java.lang.String component6)
component6
- the component6 to setpublic Field68C setComponent7(java.util.Currency component7)
component7
- the Currency with the component7 content to setpublic Field68C setComponent7(java.lang.String component7)
component7
- the component7 to setpublic Field68C setComponent8(java.lang.Number component8)
component8
- the Number with the component8 content to setpublic Field68C setComponent8(java.lang.String component8)
component8
- the component8 to setpublic Field68C setComponent9(java.util.Currency component9)
component9
- the Currency with the component9 content to setpublic Field68C setComponent9(java.lang.String component9)
component9
- the component9 to setpublic Field68C setDateContractAgreed(java.util.Calendar component4)
component4
- Calendar with the Date Contract Agreed content to setpublic Field68C setDateContractAgreed(java.lang.String component4)
component4
- the Date Contract Agreed to setpublic Field68C setPremiumPayment(java.lang.Number component12)
component12
- Number with the Premium Payment content to setpublic Field68C setPremiumPayment(java.lang.String component12)
component12
- the Premium Payment to setpublic Field68C setPremiumPaymentCurrency(java.util.Currency component11)
component11
- Currency with the Premium Payment Currency content to setpublic Field68C setPremiumPaymentCurrency(java.lang.String component11)
component11
- the Premium Payment Currency to setpublic Field68C setPremiumPricePerUnit(java.lang.Number component10)
component10
- Number with the Premium Price Per Unit content to setpublic Field68C setPremiumPricePerUnit(java.lang.String component10)
component10
- the Premium Price Per Unit to setpublic Field68C setPremiumPricePerUnitCurrency(java.util.Currency component9)
component9
- Currency with the Premium Price Per Unit Currency content to setpublic Field68C setPremiumPricePerUnitCurrency(java.lang.String component9)
component9
- the Premium Price Per Unit Currency to setpublic Field68C setStrikePricePerUnit(java.lang.Number component8)
component8
- Number with the Strike Price Per Unit content to setpublic Field68C setStrikePricePerUnit(java.lang.String component8)
component8
- the Strike Price Per Unit to setpublic Field68C setStrikePricePerUnitCurrency(java.util.Currency component7)
component7
- Currency with the Strike Price Per Unit Currency content to setpublic Field68C setStrikePricePerUnitCurrency(java.lang.String component7)
component7
- the Strike Price Per Unit Currency to setpublic Field68C setStyleIndicator(java.lang.String component3)
component3
- the Style Indicator to setpublic Field68C setUnit(java.lang.String component5)
component5
- the Unit to set