@Generated public class Field68C extends Field implements Serializable, CurrencyContainer, DateContainer, AmountContainer, MultiLineField
StringStringCharacterCalendarStringNumberCurrencyNumberCurrencyNumberCurrencyNumber| Modifier and Type | Field and Description |
|---|---|
static Integer |
AMOUNT_OF_THE_UNDERLYING_COMMODITY
Component number for the Amount Of The Underlying Commodity subfield
|
static Integer |
BUYSELL_INDICATOR
Component number for the Buy/Sell Indicator subfield
|
static Integer |
CALLPUT_INDICATOR
Component number for the Call/Put Indicator subfield
|
static String |
COMPONENTS_PATTERN |
static Integer |
DATE_CONTRACT_AGREED
Component number for the Date Contract Agreed subfield
|
static String |
F_68C
same as NAME, intended to be clear when using static imports
|
static String |
NAME
Constant with the field name 68C
|
static String |
PARSER_PATTERN |
static Integer |
PREMIUM_PAYMENT
Component number for the Premium Payment subfield
|
static Integer |
PREMIUM_PAYMENT_CURRENCY
Component number for the Premium Payment Currency subfield
|
static Integer |
PREMIUM_PRICE_PER_UNIT
Component number for the Premium Price Per Unit subfield
|
static Integer |
PREMIUM_PRICE_PER_UNIT_CURRENCY
Component number for the Premium Price Per Unit Currency subfield
|
static int |
SRU
Constant identifying the SRU to which this class belongs to.
|
static Integer |
STRIKE_PRICE_PER_UNIT
Component number for the Strike Price Per Unit subfield
|
static Integer |
STRIKE_PRICE_PER_UNIT_CURRENCY
Component number for the Strike Price Per Unit Currency subfield
|
static Integer |
STYLE_INDICATOR
Component number for the Style Indicator subfield
|
static Integer |
UNIT
Component number for the Unit subfield
|
components| Constructor and Description |
|---|
Field68C()
Default constructor.
|
Field68C(String value)
Creates a new field and initializes its components with content from the parameter value.
|
Field68C(Tag tag)
Creates a new field and initializes its components with content from the parameter tag.
|
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
amount()
Get the first amount in this field.
|
List<BigDecimal> |
amounts() |
String |
componentsPattern()
Returns the field's components pattern
|
int |
componentsSize()
Returns the defined amount of components.
This is not the amount of components present in the field instance, but the total amount of components that this field accepts as defined. |
List<Currency> |
currencies()
Utility method that creates a Currency for every string returned by
CurrencyContainer.currencyStrings() |
Currency |
currency()
Analog to
CurrencyContainer.currencyString() |
String |
currencyString()
Get the single currency contained in this field.
|
List<String> |
currencyStrings()
Get a list of strings of currencies present in this field
|
List<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 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 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.
|
String |
getAmountOfTheUnderlyingCommodity()
Get the Amount Of The Underlying Commodity (component6).
|
Number |
getAmountOfTheUnderlyingCommodityAsNumber()
Get the Amount Of The Underlying Commodity (component6) as Number
|
String |
getBuySellIndicator()
Get the Buy/Sell Indicator (component1).
|
String |
getCallPutIndicator()
Get the Call/Put Indicator (component2).
|
String |
getComponent1()
Get the component1
|
String |
getComponent10()
Get the component10
|
Number |
getComponent10AsNumber()
Get the component10 as Number
|
String |
getComponent11()
Get the component11
|
Currency |
getComponent11AsCurrency()
Get the component11 as Currency
|
String |
getComponent12()
Get the component12
|
Number |
getComponent12AsNumber()
Get the component12 as Number
|
String |
getComponent1AsString()
Deprecated.
|
String |
getComponent2()
Get the component2
|
String |
getComponent2AsString()
Deprecated.
|
String |
getComponent3()
Get the component3
|
String |
getComponent4()
Get the component4
|
Calendar |
getComponent4AsCalendar()
Get the component4 as Calendar
|
String |
getComponent5()
Get the component5
|
String |
getComponent5AsString()
Deprecated.
|
String |
getComponent6()
Get the component6
|
Number |
getComponent6AsNumber()
Get the component6 as Number
|
String |
getComponent7()
Get the component7
|
Currency |
getComponent7AsCurrency()
Get the component7 as Currency
|
String |
getComponent8()
Get the component8
|
Number |
getComponent8AsNumber()
Get the component8 as Number
|
String |
getComponent9()
Get the component9
|
Currency |
getComponent9AsCurrency()
Get the component9 as Currency
|
protected List<String> |
getComponentLabels()
Returns english label for components.
|
String |
getDateContractAgreed()
Get the Date Contract Agreed (component4).
|
Calendar |
getDateContractAgreedAsCalendar()
Get the Date Contract Agreed (component4) as Calendar
|
String |
getLine(int line)
Returns a specific line from the field's value.
|
String |
getLine(int line,
int offset)
Returns a specific line from the field's value.
|
List<String> |
getLines()
Returns the field value split into lines.
|
List<String> |
getLines(int offset)
Returns the field value starting at the offset component, split into lines.
|
List<String> |
getLinesBetween(int start,
int end)
Returns a specific subset of lines from the field's value, given a range.
|
List<String> |
getLinesBetween(int start,
int end,
int offset)
Returns a specific subset of lines from the field's value, starting at the offset component.
|
String |
getName()
Returns the field's name composed by the field number and the letter option (if any)
|
String |
getPremiumPayment()
Get the Premium Payment (component12).
|
Number |
getPremiumPaymentAsNumber()
Get the Premium Payment (component12) as Number
|
String |
getPremiumPaymentCurrency()
Get the Premium Payment Currency (component11).
|
Currency |
getPremiumPaymentCurrencyAsCurrency()
Get the Premium Payment Currency (component11) as Currency
|
String |
getPremiumPricePerUnit()
Get the Premium Price Per Unit (component10).
|
Number |
getPremiumPricePerUnitAsNumber()
Get the Premium Price Per Unit (component10) as Number
|
String |
getPremiumPricePerUnitCurrency()
Get the Premium Price Per Unit Currency (component9).
|
Currency |
getPremiumPricePerUnitCurrencyAsCurrency()
Get the Premium Price Per Unit Currency (component9) as Currency
|
String |
getStrikePricePerUnit()
Get the Strike Price Per Unit (component8).
|
Number |
getStrikePricePerUnitAsNumber()
Get the Strike Price Per Unit (component8) as Number
|
String |
getStrikePricePerUnitCurrency()
Get the Strike Price Per Unit Currency (component7).
|
Currency |
getStrikePricePerUnitCurrencyAsCurrency()
Get the Strike Price Per Unit Currency (component7) as Currency
|
String |
getStyleIndicator()
Get the Style Indicator (component3).
|
String |
getUnit()
Get the Unit (component5).
|
String |
getValue()
Serializes the fields' components into the single string value (SWIFT format)
|
String |
getValueDisplay(int component,
Locale locale)
Returns a localized suitable for showing to humans string of a field component.
|
void |
initializeCurrencies(Currency cur) |
void |
initializeCurrencies(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. |
static Field68C |
newInstance(Field68C source)
Copy constructor.
Initializes the components list with a deep copy of the source components list. |
void |
parse(String value)
Parses the parameter value into the internal components structure.
|
String |
parserPattern() |
Field68C |
setAmountOfTheUnderlyingCommodity(Number component6)
Set the Amount Of The Underlying Commodity (component6) from a Number object.
|
Field68C |
setAmountOfTheUnderlyingCommodity(String component6)
Set the Amount Of The Underlying Commodity (component6).
|
Field68C |
setBuySellIndicator(String component1)
Set the Buy/Sell Indicator (component1).
|
Field68C |
setCallPutIndicator(String component2)
Set the Call/Put Indicator (component2).
|
Field68C |
setComponent1(String component1)
Set the component1.
|
Field68C |
setComponent10(Number component10)
Set the component10 from a Number object.
|
Field68C |
setComponent10(String component10)
Set the component10.
|
Field68C |
setComponent11(Currency component11)
Set the component11 from a Currency object.
|
Field68C |
setComponent11(String component11)
Set the component11.
|
Field68C |
setComponent12(Number component12)
Set the component12 from a Number object.
|
Field68C |
setComponent12(String component12)
Set the component12.
|
Field68C |
setComponent2(String component2)
Set the component2.
|
Field68C |
setComponent3(String component3)
Set the component3.
|
Field68C |
setComponent4(Calendar component4)
Set the component4 from a Calendar object.
|
Field68C |
setComponent4(String component4)
Set the component4.
|
Field68C |
setComponent5(String component5)
Set the component5.
|
Field68C |
setComponent6(Number component6)
Set the component6 from a Number object.
|
Field68C |
setComponent6(String component6)
Set the component6.
|
Field68C |
setComponent7(Currency component7)
Set the component7 from a Currency object.
|
Field68C |
setComponent7(String component7)
Set the component7.
|
Field68C |
setComponent8(Number component8)
Set the component8 from a Number object.
|
Field68C |
setComponent8(String component8)
Set the component8.
|
Field68C |
setComponent9(Currency component9)
Set the component9 from a Currency object.
|
Field68C |
setComponent9(String component9)
Set the component9.
|
Field68C |
setDateContractAgreed(Calendar component4)
Set the Date Contract Agreed (component4) from a Calendar object.
|
Field68C |
setDateContractAgreed(String component4)
Set the Date Contract Agreed (component4).
|
Field68C |
setPremiumPayment(Number component12)
Set the Premium Payment (component12) from a Number object.
|
Field68C |
setPremiumPayment(String component12)
Set the Premium Payment (component12).
|
Field68C |
setPremiumPaymentCurrency(Currency component11)
Set the Premium Payment Currency (component11) from a Currency object.
|
Field68C |
setPremiumPaymentCurrency(String component11)
Set the Premium Payment Currency (component11).
|
Field68C |
setPremiumPricePerUnit(Number component10)
Set the Premium Price Per Unit (component10) from a Number object.
|
Field68C |
setPremiumPricePerUnit(String component10)
Set the Premium Price Per Unit (component10).
|
Field68C |
setPremiumPricePerUnitCurrency(Currency component9)
Set the Premium Price Per Unit Currency (component9) from a Currency object.
|
Field68C |
setPremiumPricePerUnitCurrency(String component9)
Set the Premium Price Per Unit Currency (component9).
|
Field68C |
setStrikePricePerUnit(Number component8)
Set the Strike Price Per Unit (component8) from a Number object.
|
Field68C |
setStrikePricePerUnit(String component8)
Set the Strike Price Per Unit (component8).
|
Field68C |
setStrikePricePerUnitCurrency(Currency component7)
Set the Strike Price Per Unit Currency (component7) from a Currency object.
|
Field68C |
setStrikePricePerUnitCurrency(String component7)
Set the Strike Price Per Unit Currency (component7).
|
Field68C |
setStyleIndicator(String component3)
Set the Style Indicator (component3).
|
Field68C |
setUnit(String component5)
Set the Unit (component5).
|
static Tag |
tag(String value)
Create a Tag with this field name and the given value.
|
String |
validatorPattern()
Returns the field's validators pattern
|
appendInLines, appendInLines, asTag, equals, findComponentStartingWith, format, formatAccount, formatNumber, getAsBigDecimal, getComponent, getComponentAs, getComponentAsNumber, getComponentLabel, getComponents, getConditionalQualifier, getDSS, getField, getField, getLabel, getLabel, getLabel, getLabel, getLabel, getLabelComponents, getLine, getValueByCodeword, getValueDisplay, getValueDisplay, hashCode, init, is, is, is, isAnyOf, isDSSPresent, isEmpty, isLetterOption, isNameAnyOf, joinComponents, joinComponents, joinComponents, joinComponents, letterOption, notNull, setComponent, setComponents, toString, validNamepublic static final int SRU
public static final String NAME
public static final String F_68C
public static final String PARSER_PATTERN
public static final String COMPONENTS_PATTERN
public static final Integer BUYSELL_INDICATOR
public static final Integer CALLPUT_INDICATOR
public static final Integer STYLE_INDICATOR
public static final Integer DATE_CONTRACT_AGREED
public static final Integer UNIT
public static final Integer AMOUNT_OF_THE_UNDERLYING_COMMODITY
public static final Integer STRIKE_PRICE_PER_UNIT_CURRENCY
public static final Integer STRIKE_PRICE_PER_UNIT
public static final Integer PREMIUM_PRICE_PER_UNIT_CURRENCY
public static final Integer PREMIUM_PRICE_PER_UNIT
public static final Integer PREMIUM_PAYMENT_CURRENCY
public static final Integer PREMIUM_PAYMENT
public Field68C()
public Field68C(String value)
value - complete field value including separators and CRLFpublic Field68C(Tag tag)
parse(String)IllegalArgumentException - if the parameter tag is null or its tagname does not match the field namepublic void parse(String value)
public static Field68C newInstance(Field68C source)
source - a field instance to copypublic String getValue()
public static Tag tag(String value)
new Tag(NAME, value)NAMEpublic static Tag emptyTag()
new Tag(NAME, "")NAMEpublic String getComponent1()
@Deprecated public String getComponent1AsString()
public String getBuySellIndicator()
public Field68C setComponent1(String component1)
component1 - the component1 to setpublic Field68C setBuySellIndicator(String component1)
component1 - the Buy/Sell Indicator to setpublic String getComponent2()
@Deprecated public String getComponent2AsString()
public String getCallPutIndicator()
public Field68C setComponent2(String component2)
component2 - the component2 to setpublic Field68C setCallPutIndicator(String component2)
component2 - the Call/Put Indicator to setpublic String getComponent3()
public String getStyleIndicator()
public Field68C setComponent3(String component3)
component3 - the component3 to setpublic Field68C setStyleIndicator(String component3)
component3 - the Style Indicator to setpublic String getComponent4()
public Calendar getComponent4AsCalendar()
null if cannot be convertedpublic String getDateContractAgreed()
public Calendar getDateContractAgreedAsCalendar()
null if cannot be convertedpublic Field68C setComponent4(String component4)
component4 - the component4 to setpublic Field68C setComponent4(Calendar component4)
component4 - the Calendar with the component4 content to setpublic Field68C setDateContractAgreed(String component4)
component4 - the Date Contract Agreed to setpublic Field68C setDateContractAgreed(Calendar component4)
component4 - Calendar with the Date Contract Agreed content to setsetComponent4(java.util.Calendar)public String getComponent5()
@Deprecated public String getComponent5AsString()
public String getUnit()
public Field68C setComponent5(String component5)
component5 - the component5 to setpublic Field68C setUnit(String component5)
component5 - the Unit to setpublic String getComponent6()
public Number getComponent6AsNumber()
null if cannot be convertedpublic String getAmountOfTheUnderlyingCommodity()
public Number getAmountOfTheUnderlyingCommodityAsNumber()
null if cannot be convertedpublic Field68C setComponent6(String component6)
component6 - the component6 to setpublic Field68C setComponent6(Number component6)
component6 - the Number with the component6 content to setpublic Field68C setAmountOfTheUnderlyingCommodity(String component6)
component6 - the Amount Of The Underlying Commodity to setpublic Field68C setAmountOfTheUnderlyingCommodity(Number component6)
component6 - Number with the Amount Of The Underlying Commodity content to setsetComponent6(java.lang.Number)public String getComponent7()
public Currency getComponent7AsCurrency()
null if cannot be convertedpublic String getStrikePricePerUnitCurrency()
public Currency getStrikePricePerUnitCurrencyAsCurrency()
null if cannot be convertedpublic Field68C setComponent7(String component7)
component7 - the component7 to setpublic Field68C setComponent7(Currency component7)
component7 - the Currency with the component7 content to setpublic Field68C setStrikePricePerUnitCurrency(String component7)
component7 - the Strike Price Per Unit Currency to setpublic Field68C setStrikePricePerUnitCurrency(Currency component7)
component7 - Currency with the Strike Price Per Unit Currency content to setsetComponent7(java.util.Currency)public String getComponent8()
public Number getComponent8AsNumber()
null if cannot be convertedpublic String getStrikePricePerUnit()
public Number getStrikePricePerUnitAsNumber()
null if cannot be convertedpublic Field68C setComponent8(String component8)
component8 - the component8 to setpublic Field68C setComponent8(Number component8)
component8 - the Number with the component8 content to setpublic Field68C setStrikePricePerUnit(String component8)
component8 - the Strike Price Per Unit to setpublic Field68C setStrikePricePerUnit(Number component8)
component8 - Number with the Strike Price Per Unit content to setsetComponent8(java.lang.Number)public String getComponent9()
public Currency getComponent9AsCurrency()
null if cannot be convertedpublic String getPremiumPricePerUnitCurrency()
public Currency getPremiumPricePerUnitCurrencyAsCurrency()
null if cannot be convertedpublic Field68C setComponent9(String component9)
component9 - the component9 to setpublic Field68C setComponent9(Currency component9)
component9 - the Currency with the component9 content to setpublic Field68C setPremiumPricePerUnitCurrency(String component9)
component9 - the Premium Price Per Unit Currency to setpublic Field68C setPremiumPricePerUnitCurrency(Currency component9)
component9 - Currency with the Premium Price Per Unit Currency content to setsetComponent9(java.util.Currency)public String getComponent10()
public Number getComponent10AsNumber()
null if cannot be convertedpublic String getPremiumPricePerUnit()
public Number getPremiumPricePerUnitAsNumber()
null if cannot be convertedpublic Field68C setComponent10(String component10)
component10 - the component10 to setpublic Field68C setComponent10(Number component10)
component10 - the Number with the component10 content to setpublic Field68C setPremiumPricePerUnit(String component10)
component10 - the Premium Price Per Unit to setpublic Field68C setPremiumPricePerUnit(Number component10)
component10 - Number with the Premium Price Per Unit content to setsetComponent10(java.lang.Number)public String getComponent11()
public Currency getComponent11AsCurrency()
null if cannot be convertedpublic String getPremiumPaymentCurrency()
public Currency getPremiumPaymentCurrencyAsCurrency()
null if cannot be convertedpublic Field68C setComponent11(String component11)
component11 - the component11 to setpublic Field68C setComponent11(Currency component11)
component11 - the Currency with the component11 content to setpublic Field68C setPremiumPaymentCurrency(String component11)
component11 - the Premium Payment Currency to setpublic Field68C setPremiumPaymentCurrency(Currency component11)
component11 - Currency with the Premium Payment Currency content to setsetComponent11(java.util.Currency)public String getComponent12()
public Number getComponent12AsNumber()
null if cannot be convertedpublic String getPremiumPayment()
public Number getPremiumPaymentAsNumber()
null if cannot be convertedpublic Field68C setComponent12(String component12)
component12 - the component12 to setpublic Field68C setComponent12(Number component12)
component12 - the Number with the component12 content to setpublic Field68C setPremiumPayment(String component12)
component12 - the Premium Payment to setpublic Field68C setPremiumPayment(Number component12)
component12 - Number with the Premium Payment content to setsetComponent12(java.lang.Number)public List<String> currencyStrings()
CurrencyContainercurrencyStrings in interface CurrencyContainerpublic List<Currency> currencies()
CurrencyContainerCurrencyContainer.currencyStrings()currencies in interface CurrencyContainerpublic Currency currency()
CurrencyContainerCurrencyContainer.currencyString()currency in interface CurrencyContainerCurrencyContainer.currencyStrings(),
CurrencyContainer.currencyString()public String currencyString()
CurrencyContainercurrencyString in interface CurrencyContainerpublic void initializeCurrencies(String cur)
CurrencyContainerinitializeCurrencies in interface CurrencyContainerpublic void initializeCurrencies(Currency cur)
initializeCurrencies in interface CurrencyContainerCurrencyContainer.initializeCurrencies(String)public List<Calendar> dates()
DateContainerdates in interface DateContainerpublic List<BigDecimal> amounts()
AmountResolver#amounts(Field)}public BigDecimal amount()
AmountContaineramount in interface AmountContainerAmountResolver#amount(Field)}public boolean isOptional(int component)
isOptional in class Fieldcomponent - component number, first component of a field is referenced as 1public boolean isGeneric()
public String parserPattern()
parserPattern in interface PatternContainerpublic String getName()
public final String componentsPattern()
componentsPattern in interface PatternContainercomponentsPattern in class Fieldpublic final String validatorPattern()
validatorPattern in class Fieldpublic static Field68C get(SwiftTagListBlock block)
block - may be null or emptypublic static Field68C get(SwiftMessage msg)
msg - may be empty or nullget(SwiftTagListBlock)public static List<Field68C> getAll(SwiftMessage msg)
msg - may be empty or null in which case an empty list is returnedgetAll(SwiftTagListBlock)public static List<Field68C> getAll(SwiftTagListBlock block)
block - may be empty or null in which case an empty list is returnedpublic int componentsSize()
componentsSize in class Fieldpublic String getLine(int line)
getLine in interface MultiLineFieldline - a reference to a specific line in the field, first line being 1MultiLineField.getLine(int)public String getLine(int line, int offset)
getLine in interface MultiLineFieldline - a reference to a specific line in the field, first line being 1offset - an optional component number used as offset when counting linesMultiLineField.getLine(int, int)public List<String> getLines()
getLines in interface MultiLineFieldMultiLineField.getLines()public List<String> getLines(int offset)
getLines in interface MultiLineFieldoffset - an optional component number used as offset when counting linesMultiLineField.getLines(int)public List<String> getLinesBetween(int start, int end)
getLinesBetween in interface MultiLineFieldstart - a reference to a specific line in the field, first line being 1end - a reference to a specific line in the field, must be greater than startMultiLineField.getLinesBetween(int, int )public List<String> getLinesBetween(int start, int end, int offset)
getLinesBetween in interface MultiLineFieldstart - a reference to a specific line in the field, first line being 1end - a reference to a specific line in the field, must be greater than startoffset - an optional component number used as offset when counting linesMultiLineField.getLinesBetween(int start, int end, int offset)public String getValueDisplay(int component, Locale locale)
getValueDisplay in class Fieldcomponent - number of the component to displaylocale - optional locale to format date and amounts, if null, the default locale is usedIllegalArgumentException - if component number is invalid for the fieldprotected List<String> getComponentLabels()
getComponentLabels in class FieldField.getComponentLabel(int)