public class Field333 extends Field implements java.io.Serializable, DateContainer
Calendar
Calendar
Number
Calendar
Calendar
Number
Number
Number
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENTS_PATTERN |
static java.lang.String |
F_333
same as NAME, intended to be clear when using static imports
|
static java.lang.String |
NAME
Constant with the field name 333
|
static java.lang.String |
PARSER_PATTERN |
components
Constructor and Description |
---|
Field333()
Default constructor
|
Field333(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 Field333 |
get(SwiftMessage msg)
Get the first instance of Field333 in the given message.
|
static Field333 |
get(SwiftTagListBlock block)
Get the first occurrence form the tag list or null if not found.
|
static java.util.List<Field333> |
getAll(SwiftMessage msg)
Get a list of all occurrences of the field Field333 in the given message
an empty list is returned if none found.
|
static java.util.List<Field333> |
getAll(SwiftTagListBlock block)
Get a list of all occurrences of the field Field333 from the given block
an empty list is returned if none found.
|
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.Number |
getComponent3AsNumber()
Get the component3 as Number
|
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 |
getDateLastSessionClosed()
Get the Date Last Session Closed (component4).
|
java.util.Calendar |
getDateLastSessionClosedAsCalendar()
Get the Date Last Session Closed (component4) as Calendar
|
java.lang.String |
getDateLastSessionOpened()
Get the Date Last Session Opened (component1).
|
java.util.Calendar |
getDateLastSessionOpenedAsCalendar()
Get the Date Last Session Opened (component1) as Calendar
|
java.lang.String |
getLastInputSequenceNumberReceived()
Get the Last Input Sequence Number Received (component7).
|
java.lang.Number |
getLastInputSequenceNumberReceivedAsNumber()
Get the Last Input Sequence Number Received (component7) as Number
|
java.lang.String |
getLastOutputSequenceNumberSent()
Get the Last Output Sequence Number Sent (component8).
|
java.lang.Number |
getLastOutputSequenceNumberSentAsNumber()
Get the Last Output Sequence Number Sent (component8) 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 (component3).
|
java.lang.Number |
getSessionNumberAsNumber()
Get the Session Number (component3) as Number
|
java.lang.String |
getTimeLastSessionClosed()
Get the Time Last Session Closed (component5).
|
java.util.Calendar |
getTimeLastSessionClosedAsCalendar()
Get the Time Last Session Closed (component5) as Calendar
|
java.lang.String |
getTimeLastSessionOpened()
Get the Time Last Session Opened (component2).
|
java.util.Calendar |
getTimeLastSessionOpenedAsCalendar()
Get the Time Last Session Opened (component2) 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() |
Field333 |
setComponent1(java.util.Calendar component1)
Set the component1.
|
Field333 |
setComponent1(java.lang.String component1)
Set the component1.
|
Field333 |
setComponent2(java.util.Calendar component2)
Set the component2.
|
Field333 |
setComponent2(java.lang.String component2)
Set the component2.
|
Field333 |
setComponent3(java.lang.Number component3)
Set the component3.
|
Field333 |
setComponent3(java.lang.String component3)
Set the component3.
|
Field333 |
setComponent4(java.util.Calendar component4)
Set the component4.
|
Field333 |
setComponent4(java.lang.String component4)
Set the component4.
|
Field333 |
setComponent5(java.util.Calendar component5)
Set the component5.
|
Field333 |
setComponent5(java.lang.String component5)
Set the component5.
|
Field333 |
setComponent6(java.lang.Number component6)
Set the component6.
|
Field333 |
setComponent6(java.lang.String component6)
Set the component6.
|
Field333 |
setComponent7(java.lang.Number component7)
Set the component7.
|
Field333 |
setComponent7(java.lang.String component7)
Set the component7.
|
Field333 |
setComponent8(java.lang.Number component8)
Set the component8.
|
Field333 |
setComponent8(java.lang.String component8)
Set the component8.
|
Field333 |
setDateLastSessionClosed(java.util.Calendar component4)
Set the Date Last Session Closed (component4) as Calendar
|
Field333 |
setDateLastSessionClosed(java.lang.String component4)
Set the Date Last Session Closed (component4).
|
Field333 |
setDateLastSessionOpened(java.util.Calendar component1)
Set the Date Last Session Opened (component1) as Calendar
|
Field333 |
setDateLastSessionOpened(java.lang.String component1)
Set the Date Last Session Opened (component1).
|
Field333 |
setLastInputSequenceNumberReceived(java.lang.Number component7)
Set the Last Input Sequence Number Received (component7) as Number
|
Field333 |
setLastInputSequenceNumberReceived(java.lang.String component7)
Set the Last Input Sequence Number Received (component7).
|
Field333 |
setLastOutputSequenceNumberSent(java.lang.Number component8)
Set the Last Output Sequence Number Sent (component8) as Number
|
Field333 |
setLastOutputSequenceNumberSent(java.lang.String component8)
Set the Last Output Sequence Number Sent (component8).
|
Field333 |
setReasonForClosure(java.lang.Number component6)
Set the Reason For Closure (component6) as Number
|
Field333 |
setReasonForClosure(java.lang.String component6)
Set the Reason For Closure (component6).
|
Field333 |
setSessionNumber(java.lang.Number component3)
Set the Session Number (component3) as Number
|
Field333 |
setSessionNumber(java.lang.String component3)
Set the Session Number (component3).
|
Field333 |
setTimeLastSessionClosed(java.util.Calendar component5)
Set the Time Last Session Closed (component5) as Calendar
|
Field333 |
setTimeLastSessionClosed(java.lang.String component5)
Set the Time Last Session Closed (component5).
|
Field333 |
setTimeLastSessionOpened(java.util.Calendar component2)
Set the Time Last Session Opened (component2) as Calendar
|
Field333 |
setTimeLastSessionOpened(java.lang.String component2)
Set the Time Last Session Opened (component2).
|
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_333
public static final java.lang.String NAME
public static final java.lang.String PARSER_PATTERN
public Field333()
public Field333(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 Field333 get(SwiftMessage msg)
msg
- may be empty or null
public static Field333 get(SwiftTagListBlock block)
block
- may be null or emptypublic static java.util.List<Field333> getAll(SwiftMessage msg)
msg
- may be empty or null in which case an empty list is returned
public static java.util.List<Field333> getAll(SwiftTagListBlock block)
block
- may be empty or null in which case an empty list is returnedpublic 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()
public java.lang.Number getComponent3AsNumber()
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 getDateLastSessionClosed()
public java.util.Calendar getDateLastSessionClosedAsCalendar()
null
if cannot be convertedpublic java.lang.String getDateLastSessionOpened()
public java.util.Calendar getDateLastSessionOpenedAsCalendar()
null
if cannot be convertedpublic java.lang.String getLastInputSequenceNumberReceived()
public java.lang.Number getLastInputSequenceNumberReceivedAsNumber()
null
if cannot be convertedpublic java.lang.String getLastOutputSequenceNumberSent()
public java.lang.Number getLastOutputSequenceNumberSentAsNumber()
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 getTimeLastSessionClosed()
public java.util.Calendar getTimeLastSessionClosedAsCalendar()
null
if cannot be convertedpublic java.lang.String getTimeLastSessionOpened()
public java.util.Calendar getTimeLastSessionOpenedAsCalendar()
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 Field333 setComponent1(java.util.Calendar component1)
component1
- the Calendar with the component1 content to setpublic Field333 setComponent1(java.lang.String component1)
component1
- the component1 to setpublic Field333 setComponent2(java.util.Calendar component2)
component2
- the Calendar with the component2 content to setpublic Field333 setComponent2(java.lang.String component2)
component2
- the component2 to setpublic Field333 setComponent3(java.lang.Number component3)
component3
- the Number with the component3 content to setpublic Field333 setComponent3(java.lang.String component3)
component3
- the component3 to setpublic Field333 setComponent4(java.util.Calendar component4)
component4
- the Calendar with the component4 content to setpublic Field333 setComponent4(java.lang.String component4)
component4
- the component4 to setpublic Field333 setComponent5(java.util.Calendar component5)
component5
- the Calendar with the component5 content to setpublic Field333 setComponent5(java.lang.String component5)
component5
- the component5 to setpublic Field333 setComponent6(java.lang.Number component6)
component6
- the Number with the component6 content to setpublic Field333 setComponent6(java.lang.String component6)
component6
- the component6 to setpublic Field333 setComponent7(java.lang.Number component7)
component7
- the Number with the component7 content to setpublic Field333 setComponent7(java.lang.String component7)
component7
- the component7 to setpublic Field333 setComponent8(java.lang.Number component8)
component8
- the Number with the component8 content to setpublic Field333 setComponent8(java.lang.String component8)
component8
- the component8 to setpublic Field333 setDateLastSessionClosed(java.util.Calendar component4)
component4
- Calendar with the Date Last Session Closed content to setpublic Field333 setDateLastSessionClosed(java.lang.String component4)
component4
- the Date Last Session Closed to setpublic Field333 setDateLastSessionOpened(java.util.Calendar component1)
component1
- Calendar with the Date Last Session Opened content to setpublic Field333 setDateLastSessionOpened(java.lang.String component1)
component1
- the Date Last Session Opened to setpublic Field333 setLastInputSequenceNumberReceived(java.lang.Number component7)
component7
- Number with the Last Input Sequence Number Received content to setpublic Field333 setLastInputSequenceNumberReceived(java.lang.String component7)
component7
- the Last Input Sequence Number Received to setpublic Field333 setLastOutputSequenceNumberSent(java.lang.Number component8)
component8
- Number with the Last Output Sequence Number Sent content to setpublic Field333 setLastOutputSequenceNumberSent(java.lang.String component8)
component8
- the Last Output Sequence Number Sent to setpublic Field333 setReasonForClosure(java.lang.Number component6)
component6
- Number with the Reason For Closure content to setpublic Field333 setReasonForClosure(java.lang.String component6)
component6
- the Reason For Closure to setpublic Field333 setSessionNumber(java.lang.Number component3)
component3
- Number with the Session Number content to setpublic Field333 setSessionNumber(java.lang.String component3)
component3
- the Session Number to setpublic Field333 setTimeLastSessionClosed(java.util.Calendar component5)
component5
- Calendar with the Time Last Session Closed content to setpublic Field333 setTimeLastSessionClosed(java.lang.String component5)
component5
- the Time Last Session Closed to setpublic Field333 setTimeLastSessionOpened(java.util.Calendar component2)
component2
- Calendar with the Time Last Session Opened content to setpublic Field333 setTimeLastSessionOpened(java.lang.String component2)
component2
- the Time Last Session Opened to set