public class Field331 extends Field implements java.io.Serializable, DateContainer
Number
Calendar
Calendar
Calendar
Calendar
Number
Number
Number
Number
Number
Number
Number
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENTS_PATTERN |
static java.lang.String |
F_331
same as NAME, intended to be clear when using static imports
|
static java.lang.String |
NAME
Constant with the field name 331
|
static java.lang.String |
PARSER_PATTERN |
components
Constructor and Description |
---|
Field331()
Default constructor
|
Field331(java.lang.String value)
Creates the field parsing the parameter value into fields' components
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
componentsPattern() |
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 Field331 |
get(SwiftMessage msg)
Get the first instance of Field331 in the given message.
|
static Field331 |
get(SwiftTagListBlock block)
Get the first occurrence form the tag list or null if not found.
|
static java.util.List<Field331> |
getAll(SwiftMessage msg)
Get a list of all occurrences of the field Field331 in the given message
an empty list is returned if none found.
|
static java.util.List<Field331> |
getAll(SwiftTagListBlock block)
Get a list of all occurrences of the field Field331 from the given block
an empty list is returned if none found.
|
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.lang.Number |
getComponent11AsNumber()
Get the component11 as Number
|
java.lang.String |
getComponent12()
Get the component12
|
java.lang.Number |
getComponent12AsNumber()
Get the component12 as Number
|
java.lang.Number |
getComponent1AsNumber()
Get the component1 as Number
|
java.lang.String |
getComponent2()
Get the component2
|
java.util.Calendar |
getComponent2AsCalendar()
Get the component2 as Calendar
|
java.lang.String |
getComponent3()
Get the component3
|
java.util.Calendar |
getComponent3AsCalendar()
Get the component3 as Calendar
|
java.lang.String |
getComponent4()
Get the component4
|
java.util.Calendar |
getComponent4AsCalendar()
Get the component4 as Calendar
|
java.lang.String |
getComponent5()
Get the component5
|
java.util.Calendar |
getComponent5AsCalendar()
Get the component5 as Calendar
|
java.lang.String |
getComponent6()
Get the component6
|
java.lang.Number |
getComponent6AsNumber()
Get the component6 as Number
|
java.lang.String |
getComponent7()
Get the component7
|
java.lang.Number |
getComponent7AsNumber()
Get the component7 as Number
|
java.lang.String |
getComponent8()
Get the component8
|
java.lang.Number |
getComponent8AsNumber()
Get the component8 as Number
|
java.lang.String |
getComponent9()
Get the component9
|
java.lang.Number |
getComponent9AsNumber()
Get the component9 as Number
|
java.lang.String |
getDateSessionClosed()
Get the Date Session Closed (component4).
|
java.util.Calendar |
getDateSessionClosedAsCalendar()
Get the Date Session Closed (component4) as Calendar
|
java.lang.String |
getDateSessionOpened()
Get the Date Session Opened (component2).
|
java.util.Calendar |
getDateSessionOpenedAsCalendar()
Get the Date Session Opened (component2) as Calendar
|
java.lang.String |
getFirstInputSequenceNumber()
Get the First Input Sequence Number (component9).
|
java.lang.Number |
getFirstInputSequenceNumberAsNumber()
Get the First Input Sequence Number (component9) as Number
|
java.lang.String |
getFirstOutputSequenceNumber()
Get the First Output Sequence Number (component11).
|
java.lang.Number |
getFirstOutputSequenceNumberAsNumber()
Get the First Output Sequence Number (component11) as Number
|
java.lang.String |
getLastInputSequenceNumber()
Get the Last Input Sequence Number (component10).
|
java.lang.Number |
getLastInputSequenceNumberAsNumber()
Get the Last Input Sequence Number (component10) as Number
|
java.lang.String |
getLastOutputSequenceNumber()
Get the Last Output Sequence Number (component12).
|
java.lang.Number |
getLastOutputSequenceNumberAsNumber()
Get the Last Output Sequence Number (component12) as Number
|
java.lang.String |
getQuantityOfMessagesReceived()
Get the Quantity Of Messages Received (component8).
|
java.lang.Number |
getQuantityOfMessagesReceivedAsNumber()
Get the Quantity Of Messages Received (component8) as Number
|
java.lang.String |
getQuantityOfMessagesSent()
Get the Quantity Of Messages Sent (component7).
|
java.lang.Number |
getQuantityOfMessagesSentAsNumber()
Get the Quantity Of Messages Sent (component7) as Number
|
java.lang.String |
getReasonForClosure()
Get the Reason For Closure (component6).
|
java.lang.Number |
getReasonForClosureAsNumber()
Get the Reason For Closure (component6) as Number
|
java.lang.String |
getSessionNumber()
Get the Session Number (component1).
|
java.lang.Number |
getSessionNumberAsNumber()
Get the Session Number (component1) as Number
|
java.lang.String |
getTimeSessionClosed()
Get the Time Session Closed (component5).
|
java.util.Calendar |
getTimeSessionClosedAsCalendar()
Get the Time Session Closed (component5) as Calendar
|
java.lang.String |
getTimeSessionOpened()
Get the Time Session Opened (component3).
|
java.util.Calendar |
getTimeSessionOpenedAsCalendar()
Get the Time Session Opened (component3) as Calendar
|
java.lang.String |
getValue()
Serializes the fields' components into the single string value (SWIFT format)
|
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() |
Field331 |
setComponent1(java.lang.Number component1)
Set the component1.
|
Field331 |
setComponent1(java.lang.String component1)
Set the component1.
|
Field331 |
setComponent10(java.lang.Number component10)
Set the component10.
|
Field331 |
setComponent10(java.lang.String component10)
Set the component10.
|
Field331 |
setComponent11(java.lang.Number component11)
Set the component11.
|
Field331 |
setComponent11(java.lang.String component11)
Set the component11.
|
Field331 |
setComponent12(java.lang.Number component12)
Set the component12.
|
Field331 |
setComponent12(java.lang.String component12)
Set the component12.
|
Field331 |
setComponent2(java.util.Calendar component2)
Set the component2.
|
Field331 |
setComponent2(java.lang.String component2)
Set the component2.
|
Field331 |
setComponent3(java.util.Calendar component3)
Set the component3.
|
Field331 |
setComponent3(java.lang.String component3)
Set the component3.
|
Field331 |
setComponent4(java.util.Calendar component4)
Set the component4.
|
Field331 |
setComponent4(java.lang.String component4)
Set the component4.
|
Field331 |
setComponent5(java.util.Calendar component5)
Set the component5.
|
Field331 |
setComponent5(java.lang.String component5)
Set the component5.
|
Field331 |
setComponent6(java.lang.Number component6)
Set the component6.
|
Field331 |
setComponent6(java.lang.String component6)
Set the component6.
|
Field331 |
setComponent7(java.lang.Number component7)
Set the component7.
|
Field331 |
setComponent7(java.lang.String component7)
Set the component7.
|
Field331 |
setComponent8(java.lang.Number component8)
Set the component8.
|
Field331 |
setComponent8(java.lang.String component8)
Set the component8.
|
Field331 |
setComponent9(java.lang.Number component9)
Set the component9.
|
Field331 |
setComponent9(java.lang.String component9)
Set the component9.
|
Field331 |
setDateSessionClosed(java.util.Calendar component4)
Set the Date Session Closed (component4) as Calendar
|
Field331 |
setDateSessionClosed(java.lang.String component4)
Set the Date Session Closed (component4).
|
Field331 |
setDateSessionOpened(java.util.Calendar component2)
Set the Date Session Opened (component2) as Calendar
|
Field331 |
setDateSessionOpened(java.lang.String component2)
Set the Date Session Opened (component2).
|
Field331 |
setFirstInputSequenceNumber(java.lang.Number component9)
Set the First Input Sequence Number (component9) as Number
|
Field331 |
setFirstInputSequenceNumber(java.lang.String component9)
Set the First Input Sequence Number (component9).
|
Field331 |
setFirstOutputSequenceNumber(java.lang.Number component11)
Set the First Output Sequence Number (component11) as Number
|
Field331 |
setFirstOutputSequenceNumber(java.lang.String component11)
Set the First Output Sequence Number (component11).
|
Field331 |
setLastInputSequenceNumber(java.lang.Number component10)
Set the Last Input Sequence Number (component10) as Number
|
Field331 |
setLastInputSequenceNumber(java.lang.String component10)
Set the Last Input Sequence Number (component10).
|
Field331 |
setLastOutputSequenceNumber(java.lang.Number component12)
Set the Last Output Sequence Number (component12) as Number
|
Field331 |
setLastOutputSequenceNumber(java.lang.String component12)
Set the Last Output Sequence Number (component12).
|
Field331 |
setQuantityOfMessagesReceived(java.lang.Number component8)
Set the Quantity Of Messages Received (component8) as Number
|
Field331 |
setQuantityOfMessagesReceived(java.lang.String component8)
Set the Quantity Of Messages Received (component8).
|
Field331 |
setQuantityOfMessagesSent(java.lang.Number component7)
Set the Quantity Of Messages Sent (component7) as Number
|
Field331 |
setQuantityOfMessagesSent(java.lang.String component7)
Set the Quantity Of Messages Sent (component7).
|
Field331 |
setReasonForClosure(java.lang.Number component6)
Set the Reason For Closure (component6) as Number
|
Field331 |
setReasonForClosure(java.lang.String component6)
Set the Reason For Closure (component6).
|
Field331 |
setSessionNumber(java.lang.Number component1)
Set the Session Number (component1) as Number
|
Field331 |
setSessionNumber(java.lang.String component1)
Set the Session Number (component1).
|
Field331 |
setTimeSessionClosed(java.util.Calendar component5)
Set the Time Session Closed (component5) as Calendar
|
Field331 |
setTimeSessionClosed(java.lang.String component5)
Set the Time Session Closed (component5).
|
Field331 |
setTimeSessionOpened(java.util.Calendar component3)
Set the Time Session Opened (component3) as Calendar
|
Field331 |
setTimeSessionOpened(java.lang.String component3)
Set the Time Session Opened (component3).
|
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_331
public static final java.lang.String NAME
public static final java.lang.String PARSER_PATTERN
public Field331()
public Field331(java.lang.String value)
value
- public java.lang.String componentsPattern()
componentsPattern
in interface PatternContainer
public java.util.List<java.util.Calendar> dates()
DateContainer
dates
in interface DateContainer
public static Tag emptyTag()
new Tag(NAME, "")
NAME
public static Field331 get(SwiftMessage msg)
msg
- may be empty or null
public static Field331 get(SwiftTagListBlock block)
block
- may be null or emptypublic static java.util.List<Field331> getAll(SwiftMessage msg)
msg
- may be empty or null in which case an empty list is returned
public static java.util.List<Field331> getAll(SwiftTagListBlock block)
block
- may be empty or null in which case an empty list is returnedpublic 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.lang.Number getComponent11AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent12()
public java.lang.Number getComponent12AsNumber()
null
if cannot be convertedpublic java.lang.Number getComponent1AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent2()
public java.util.Calendar getComponent2AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent3()
public java.util.Calendar getComponent3AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent4()
public java.util.Calendar getComponent4AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent5()
public java.util.Calendar getComponent5AsCalendar()
null
if cannot be convertedpublic java.lang.String getComponent6()
public java.lang.Number getComponent6AsNumber()
null
if cannot be convertedpublic java.lang.String getComponent7()
public java.lang.Number getComponent7AsNumber()
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.lang.Number getComponent9AsNumber()
null
if cannot be convertedpublic java.lang.String getDateSessionClosed()
public java.util.Calendar getDateSessionClosedAsCalendar()
null
if cannot be convertedpublic java.lang.String getDateSessionOpened()
public java.util.Calendar getDateSessionOpenedAsCalendar()
null
if cannot be convertedpublic java.lang.String getFirstInputSequenceNumber()
public java.lang.Number getFirstInputSequenceNumberAsNumber()
null
if cannot be convertedpublic java.lang.String getFirstOutputSequenceNumber()
public java.lang.Number getFirstOutputSequenceNumberAsNumber()
null
if cannot be convertedpublic java.lang.String getLastInputSequenceNumber()
public java.lang.Number getLastInputSequenceNumberAsNumber()
null
if cannot be convertedpublic java.lang.String getLastOutputSequenceNumber()
public java.lang.Number getLastOutputSequenceNumberAsNumber()
null
if cannot be convertedpublic java.lang.String getQuantityOfMessagesReceived()
public java.lang.Number getQuantityOfMessagesReceivedAsNumber()
null
if cannot be convertedpublic java.lang.String getQuantityOfMessagesSent()
public java.lang.Number getQuantityOfMessagesSentAsNumber()
null
if cannot be convertedpublic java.lang.String getReasonForClosure()
public java.lang.Number getReasonForClosureAsNumber()
null
if cannot be convertedpublic java.lang.String getSessionNumber()
public java.lang.Number getSessionNumberAsNumber()
null
if cannot be convertedpublic java.lang.String getTimeSessionClosed()
public java.util.Calendar getTimeSessionClosedAsCalendar()
null
if cannot be convertedpublic java.lang.String getTimeSessionOpened()
public java.util.Calendar getTimeSessionOpenedAsCalendar()
null
if cannot be convertedpublic java.lang.String getValue()
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 Field331 setComponent1(java.lang.Number component1)
component1
- the Number with the component1 content to setpublic Field331 setComponent1(java.lang.String component1)
component1
- the component1 to setpublic Field331 setComponent10(java.lang.Number component10)
component10
- the Number with the component10 content to setpublic Field331 setComponent10(java.lang.String component10)
component10
- the component10 to setpublic Field331 setComponent11(java.lang.Number component11)
component11
- the Number with the component11 content to setpublic Field331 setComponent11(java.lang.String component11)
component11
- the component11 to setpublic Field331 setComponent12(java.lang.Number component12)
component12
- the Number with the component12 content to setpublic Field331 setComponent12(java.lang.String component12)
component12
- the component12 to setpublic Field331 setComponent2(java.util.Calendar component2)
component2
- the Calendar with the component2 content to setpublic Field331 setComponent2(java.lang.String component2)
component2
- the component2 to setpublic Field331 setComponent3(java.util.Calendar component3)
component3
- the Calendar with the component3 content to setpublic Field331 setComponent3(java.lang.String component3)
component3
- the component3 to setpublic Field331 setComponent4(java.util.Calendar component4)
component4
- the Calendar with the component4 content to setpublic Field331 setComponent4(java.lang.String component4)
component4
- the component4 to setpublic Field331 setComponent5(java.util.Calendar component5)
component5
- the Calendar with the component5 content to setpublic Field331 setComponent5(java.lang.String component5)
component5
- the component5 to setpublic Field331 setComponent6(java.lang.Number component6)
component6
- the Number with the component6 content to setpublic Field331 setComponent6(java.lang.String component6)
component6
- the component6 to setpublic Field331 setComponent7(java.lang.Number component7)
component7
- the Number with the component7 content to setpublic Field331 setComponent7(java.lang.String component7)
component7
- the component7 to setpublic Field331 setComponent8(java.lang.Number component8)
component8
- the Number with the component8 content to setpublic Field331 setComponent8(java.lang.String component8)
component8
- the component8 to setpublic Field331 setComponent9(java.lang.Number component9)
component9
- the Number with the component9 content to setpublic Field331 setComponent9(java.lang.String component9)
component9
- the component9 to setpublic Field331 setDateSessionClosed(java.util.Calendar component4)
component4
- Calendar with the Date Session Closed content to setpublic Field331 setDateSessionClosed(java.lang.String component4)
component4
- the Date Session Closed to setpublic Field331 setDateSessionOpened(java.util.Calendar component2)
component2
- Calendar with the Date Session Opened content to setpublic Field331 setDateSessionOpened(java.lang.String component2)
component2
- the Date Session Opened to setpublic Field331 setFirstInputSequenceNumber(java.lang.Number component9)
component9
- Number with the First Input Sequence Number content to setpublic Field331 setFirstInputSequenceNumber(java.lang.String component9)
component9
- the First Input Sequence Number to setpublic Field331 setFirstOutputSequenceNumber(java.lang.Number component11)
component11
- Number with the First Output Sequence Number content to setpublic Field331 setFirstOutputSequenceNumber(java.lang.String component11)
component11
- the First Output Sequence Number to setpublic Field331 setLastInputSequenceNumber(java.lang.Number component10)
component10
- Number with the Last Input Sequence Number content to setpublic Field331 setLastInputSequenceNumber(java.lang.String component10)
component10
- the Last Input Sequence Number to setpublic Field331 setLastOutputSequenceNumber(java.lang.Number component12)
component12
- Number with the Last Output Sequence Number content to setpublic Field331 setLastOutputSequenceNumber(java.lang.String component12)
component12
- the Last Output Sequence Number to setpublic Field331 setQuantityOfMessagesReceived(java.lang.Number component8)
component8
- Number with the Quantity Of Messages Received content to setpublic Field331 setQuantityOfMessagesReceived(java.lang.String component8)
component8
- the Quantity Of Messages Received to setpublic Field331 setQuantityOfMessagesSent(java.lang.Number component7)
component7
- Number with the Quantity Of Messages Sent content to setpublic Field331 setQuantityOfMessagesSent(java.lang.String component7)
component7
- the Quantity Of Messages Sent to setpublic Field331 setReasonForClosure(java.lang.Number component6)
component6
- Number with the Reason For Closure content to setpublic Field331 setReasonForClosure(java.lang.String component6)
component6
- the Reason For Closure to setpublic Field331 setSessionNumber(java.lang.Number component1)
component1
- Number with the Session Number content to setpublic Field331 setSessionNumber(java.lang.String component1)
component1
- the Session Number to setpublic Field331 setTimeSessionClosed(java.util.Calendar component5)
component5
- Calendar with the Time Session Closed content to setpublic Field331 setTimeSessionClosed(java.lang.String component5)
component5
- the Time Session Closed to setpublic Field331 setTimeSessionOpened(java.util.Calendar component3)
component3
- Calendar with the Time Session Opened content to setpublic Field331 setTimeSessionOpened(java.lang.String component3)
component3
- the Time Session Opened to set