public class Field61 extends Field implements java.io.Serializable
Calendar
Calendar
String
String
Number
String
String
String
String
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENTS_PATTERN |
static java.lang.String |
F_61
same as NAME, intended to be clear when using static imports
|
static java.lang.String |
NAME
Constant with the field name 61
|
static java.lang.String |
PARSER_PATTERN |
components
Constructor and Description |
---|
Field61()
Default constructor
|
Field61(java.lang.String value)
Creates the field parsing the parameter value into fields' components
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
componentsPattern() |
static Tag |
emptyTag()
Create a Tag with this field name and an empty string as value
Shorthand for
new Tag(NAME, "") |
static Field61 |
get(SwiftMessage msg)
Get the first instance of Field61 in the given message.
|
static Field61 |
get(SwiftTagListBlock block)
Get the first occurrence form the tag list or null if not found.
|
static java.util.List<Field61> |
getAll(SwiftMessage msg)
Get a list of all occurrences of the field Field61 in the given message
an empty list is returned if none found.
|
static java.util.List<Field61> |
getAll(SwiftTagListBlock block)
Get a list of all occurrences of the field Field61 from the given block
an empty list is returned if none found.
|
java.lang.String |
getAmount()
Get the Amount (component5).
|
java.lang.Number |
getAmountAsNumber()
Get the Amount (component5) as Number
|
java.lang.String |
getComponent1()
Get the component1
|
java.util.Calendar |
getComponent1AsCalendar()
Get the component1 as Calendar
|
java.lang.String |
getComponent2()
Get the component2
|
java.util.Calendar |
getComponent2AsCalendar()
Get the component2 as Calendar
|
java.lang.String |
getComponent3()
Get the component3
|
java.lang.String |
getComponent3AsString()
Deprecated.
|
java.lang.String |
getComponent4()
Get the component4
|
java.lang.String |
getComponent4AsString()
Deprecated.
|
java.lang.String |
getComponent5()
Get the component5
|
java.lang.Number |
getComponent5AsNumber()
Get the component5 as Number
|
java.lang.String |
getComponent6()
Get the component6
|
java.lang.String |
getComponent6AsString()
Deprecated.
|
java.lang.String |
getComponent7()
Get the component7
|
java.lang.String |
getComponent7AsString()
Deprecated.
|
java.lang.String |
getComponent8()
Get the component8
|
java.lang.String |
getComponent8AsString()
Deprecated.
|
java.lang.String |
getComponent9()
Get the component9
|
java.lang.String |
getComponent9AsString()
Deprecated.
|
java.lang.String |
getDCMark()
Get the D/C Mark (component3).
|
java.lang.String |
getEntryDate()
Get the Entry Date (component2).
|
java.util.Calendar |
getEntryDateAsCalendar()
Get the Entry Date (component2) as Calendar
|
java.lang.String |
getFundsCode()
Get the Funds Code (component4).
|
java.lang.String |
getReferenceForTheAccountOwner()
Get the Reference For The Account Owner (component7).
|
java.lang.String |
getReferenceOfTheAccountServicingInstitution()
Get the Reference Of The Account Servicing Institution (component8).
|
java.lang.String |
getSupplementaryDetails()
Get the Supplementary Details (component9).
|
java.lang.String |
getTransactionType()
Get the Transaction Type (component6).
|
java.lang.String |
getValue()
Serializes the fields' components into the single string value (SWIFT format)
|
java.lang.String |
getValueDate()
Get the Value Date (component1).
|
java.util.Calendar |
getValueDateAsCalendar()
Get the Value Date (component1) as Calendar
|
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. |
protected void |
parseCustom(java.lang.String value)
Custom parser for Field61.
Uses semantic information to split components 3 and 4 (assuming component 3 can only be D, C, RD, RC). |
java.lang.String |
parserPattern() |
Field61 |
setAmount(java.lang.Number component5)
Set the Amount (component5) as Number
|
Field61 |
setAmount(java.lang.String component5)
Set the Amount (component5).
|
Field61 |
setComponent1(java.util.Calendar component1)
Set the component1.
|
Field61 |
setComponent1(java.lang.String component1)
Set the component1.
|
Field61 |
setComponent2(java.util.Calendar component2)
Set the component2.
|
Field61 |
setComponent2(java.lang.String component2)
Set the component2.
|
Field61 |
setComponent3(java.lang.String component3)
Set the component3.
|
Field61 |
setComponent4(java.lang.String component4)
Set the component4.
|
Field61 |
setComponent5(java.lang.Number component5)
Set the component5.
|
Field61 |
setComponent5(java.lang.String component5)
Set the component5.
|
Field61 |
setComponent6(java.lang.String component6)
Set the component6.
|
Field61 |
setComponent7(java.lang.String component7)
Set the component7.
|
Field61 |
setComponent8(java.lang.String component8)
Set the component8.
|
Field61 |
setComponent9(java.lang.String component9)
Set the component9.
|
Field61 |
setDCMark(java.lang.String component3)
Set the D/C Mark (component3).
|
Field61 |
setEntryDate(java.util.Calendar component2)
Set the Entry Date (component2) as Calendar
|
Field61 |
setEntryDate(java.lang.String component2)
Set the Entry Date (component2).
|
Field61 |
setFundsCode(java.lang.String component4)
Set the Funds Code (component4).
|
Field61 |
setReferenceForTheAccountOwner(java.lang.String component7)
Set the Reference For The Account Owner (component7).
|
Field61 |
setReferenceOfTheAccountServicingInstitution(java.lang.String component8)
Set the Reference Of The Account Servicing Institution (component8).
|
Field61 |
setSupplementaryDetails(java.lang.String component9)
Set the Supplementary Details (component9).
|
Field61 |
setTransactionType(java.lang.String component6)
Set the Transaction Type (component6).
|
Field61 |
setValueDate(java.util.Calendar component1)
Set the Value Date (component1) as Calendar
|
Field61 |
setValueDate(java.lang.String component1)
Set the Value Date (component1).
|
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_61
public static final java.lang.String NAME
public static final java.lang.String PARSER_PATTERN
public Field61()
public Field61(java.lang.String value)
value
- public java.lang.String componentsPattern()
componentsPattern
in interface PatternContainer
public static Tag emptyTag()
new Tag(NAME, "")
NAME
public static Field61 get(SwiftMessage msg)
msg
- may be empty or null
public static Field61 get(SwiftTagListBlock block)
block
- may be null or emptypublic static java.util.List<Field61> getAll(SwiftMessage msg)
msg
- may be empty or null in which case an empty list is returned
public static java.util.List<Field61> getAll(SwiftTagListBlock block)
block
- may be empty or null in which case an empty list is returnedpublic java.lang.String getAmount()
public java.lang.Number getAmountAsNumber()
null
if cannot be convertedpublic java.lang.String getComponent1()
public java.util.Calendar getComponent1AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent2()
public java.util.Calendar getComponent2AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent3()
@Deprecated public java.lang.String getComponent3AsString()
public java.lang.String getComponent4()
@Deprecated public java.lang.String getComponent4AsString()
public java.lang.String getComponent5()
public java.lang.Number getComponent5AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent6()
@Deprecated public java.lang.String getComponent6AsString()
public java.lang.String getComponent7()
@Deprecated public java.lang.String getComponent7AsString()
public java.lang.String getComponent8()
@Deprecated public java.lang.String getComponent8AsString()
public java.lang.String getComponent9()
@Deprecated public java.lang.String getComponent9AsString()
public java.lang.String getDCMark()
public java.lang.String getEntryDate()
public java.util.Calendar getEntryDateAsCalendar()
null
if cannot be convertedpublic java.lang.String getFundsCode()
public java.lang.String getReferenceForTheAccountOwner()
public java.lang.String getReferenceOfTheAccountServicingInstitution()
public java.lang.String getSupplementaryDetails()
public java.lang.String getTransactionType()
public java.lang.String getValue()
public java.lang.String getValueDate()
public java.util.Calendar getValueDateAsCalendar()
null
if cannot be convertedpublic boolean isGeneric()
public boolean isOptional(int component)
isOptional
in class Field
component
- component number, first component of a field is referenced as 1protected void parseCustom(java.lang.String value)
public java.lang.String parserPattern()
parserPattern
in interface PatternContainer
public Field61 setAmount(java.lang.Number component5)
component5
- Number with the Amount content to setpublic Field61 setAmount(java.lang.String component5)
component5
- the Amount to setpublic Field61 setComponent1(java.util.Calendar component1)
component1
- the Calendar with the component1 content to setpublic Field61 setComponent1(java.lang.String component1)
component1
- the component1 to setpublic Field61 setComponent2(java.util.Calendar component2)
component2
- the Calendar with the component2 content to setpublic Field61 setComponent2(java.lang.String component2)
component2
- the component2 to setpublic Field61 setComponent3(java.lang.String component3)
component3
- the component3 to setpublic Field61 setComponent4(java.lang.String component4)
component4
- the component4 to setpublic Field61 setComponent5(java.lang.Number component5)
component5
- the Number with the component5 content to setpublic Field61 setComponent5(java.lang.String component5)
component5
- the component5 to setpublic Field61 setComponent6(java.lang.String component6)
component6
- the component6 to setpublic Field61 setComponent7(java.lang.String component7)
component7
- the component7 to setpublic Field61 setComponent8(java.lang.String component8)
component8
- the component8 to setpublic Field61 setComponent9(java.lang.String component9)
component9
- the component9 to setpublic Field61 setDCMark(java.lang.String component3)
component3
- the D/C Mark to setpublic Field61 setEntryDate(java.util.Calendar component2)
component2
- Calendar with the Entry Date content to setpublic Field61 setEntryDate(java.lang.String component2)
component2
- the Entry Date to setpublic Field61 setFundsCode(java.lang.String component4)
component4
- the Funds Code to setpublic Field61 setReferenceForTheAccountOwner(java.lang.String component7)
component7
- the Reference For The Account Owner to setpublic Field61 setReferenceOfTheAccountServicingInstitution(java.lang.String component8)
component8
- the Reference Of The Account Servicing Institution to setpublic Field61 setSupplementaryDetails(java.lang.String component9)
component9
- the Supplementary Details to setpublic Field61 setTransactionType(java.lang.String component6)
component6
- the Transaction Type to setpublic Field61 setValueDate(java.util.Calendar component1)
component1
- Calendar with the Value Date content to setpublic Field61 setValueDate(java.lang.String component1)
component1
- the Value Date to set