@Generated public class Field333 extends Field implements Serializable, DateContainer
Calendar
Calendar
Number
Calendar
Calendar
Number
Number
Number
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENTS_PATTERN |
static Integer |
DATE_LAST_SESSION_CLOSED
Component number for the Date Last Session Closed subfield
|
static Integer |
DATE_LAST_SESSION_OPENED
Component number for the Date Last Session Opened subfield
|
static String |
F_333
same as NAME, intended to be clear when using static imports
|
static Integer |
LAST_INPUT_SEQUENCE_NUMBER_RECEIVED
Component number for the Last Input Sequence Number Received subfield
|
static Integer |
LAST_OUTPUT_SEQUENCE_NUMBER_SENT
Component number for the Last Output Sequence Number Sent subfield
|
static String |
NAME
Constant with the field name 333
|
static String |
PARSER_PATTERN |
static Integer |
REASON_FOR_CLOSURE
Component number for the Reason For Closure subfield
|
static Integer |
SESSION_NUMBER
Component number for the Session Number subfield
|
static int |
SRU
Constant identifying the SRU to which this class belongs to.
|
static Integer |
TIME_LAST_SESSION_CLOSED
Component number for the Time Last Session Closed subfield
|
static Integer |
TIME_LAST_SESSION_OPENED
Component number for the Time Last Session Opened subfield
|
components
Constructor and Description |
---|
Field333()
Default constructor.
|
Field333(String value)
Creates a new field and initializes its components with content from the parameter value.
|
Field333(Tag tag)
Creates a new field and initializes its components with content from the parameter tag.
|
Modifier and Type | Method and Description |
---|---|
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<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 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 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.
|
String |
getComponent1()
Get the component1
|
Calendar |
getComponent1AsCalendar()
Get the component1 as Calendar
|
String |
getComponent2()
Get the component2
|
Calendar |
getComponent2AsCalendar()
Get the component2 as Calendar
|
String |
getComponent3()
Get the component3
|
Number |
getComponent3AsNumber()
Get the component3 as Number
|
String |
getComponent4()
Get the component4
|
Calendar |
getComponent4AsCalendar()
Get the component4 as Calendar
|
String |
getComponent5()
Get the component5
|
Calendar |
getComponent5AsCalendar()
Get the component5 as Calendar
|
String |
getComponent6()
Get the component6
|
Number |
getComponent6AsNumber()
Get the component6 as Number
|
String |
getComponent7()
Get the component7
|
Number |
getComponent7AsNumber()
Get the component7 as Number
|
String |
getComponent8()
Get the component8
|
Number |
getComponent8AsNumber()
Get the component8 as Number
|
protected List<String> |
getComponentLabels()
Returns english label for components.
|
String |
getDateLastSessionClosed()
Get the Date Last Session Closed (component4).
|
Calendar |
getDateLastSessionClosedAsCalendar()
Get the Date Last Session Closed (component4) as Calendar
|
String |
getDateLastSessionOpened()
Get the Date Last Session Opened (component1).
|
Calendar |
getDateLastSessionOpenedAsCalendar()
Get the Date Last Session Opened (component1) as Calendar
|
String |
getLastInputSequenceNumberReceived()
Get the Last Input Sequence Number Received (component7).
|
Number |
getLastInputSequenceNumberReceivedAsNumber()
Get the Last Input Sequence Number Received (component7) as Number
|
String |
getLastOutputSequenceNumberSent()
Get the Last Output Sequence Number Sent (component8).
|
Number |
getLastOutputSequenceNumberSentAsNumber()
Get the Last Output Sequence Number Sent (component8) as Number
|
String |
getName()
Returns the field's name composed by the field number and the letter option (if any)
|
String |
getReasonForClosure()
Get the Reason For Closure (component6).
|
Number |
getReasonForClosureAsNumber()
Get the Reason For Closure (component6) as Number
|
String |
getSessionNumber()
Get the Session Number (component3).
|
Number |
getSessionNumberAsNumber()
Get the Session Number (component3) as Number
|
String |
getTimeLastSessionClosed()
Get the Time Last Session Closed (component5).
|
Calendar |
getTimeLastSessionClosedAsCalendar()
Get the Time Last Session Closed (component5) as Calendar
|
String |
getTimeLastSessionOpened()
Get the Time Last Session Opened (component2).
|
Calendar |
getTimeLastSessionOpenedAsCalendar()
Get the Time Last Session Opened (component2) as Calendar
|
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.
|
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 Field333 |
newInstance(Field333 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() |
Field333 |
setComponent1(Calendar component1)
Set the component1 from a Calendar object.
|
Field333 |
setComponent1(String component1)
Set the component1.
|
Field333 |
setComponent2(Calendar component2)
Set the component2 from a Calendar object.
|
Field333 |
setComponent2(String component2)
Set the component2.
|
Field333 |
setComponent3(Number component3)
Set the component3 from a Number object.
|
Field333 |
setComponent3(String component3)
Set the component3.
|
Field333 |
setComponent4(Calendar component4)
Set the component4 from a Calendar object.
|
Field333 |
setComponent4(String component4)
Set the component4.
|
Field333 |
setComponent5(Calendar component5)
Set the component5 from a Calendar object.
|
Field333 |
setComponent5(String component5)
Set the component5.
|
Field333 |
setComponent6(Number component6)
Set the component6 from a Number object.
|
Field333 |
setComponent6(String component6)
Set the component6.
|
Field333 |
setComponent7(Number component7)
Set the component7 from a Number object.
|
Field333 |
setComponent7(String component7)
Set the component7.
|
Field333 |
setComponent8(Number component8)
Set the component8 from a Number object.
|
Field333 |
setComponent8(String component8)
Set the component8.
|
Field333 |
setDateLastSessionClosed(Calendar component4)
Set the Date Last Session Closed (component4) from a Calendar object.
|
Field333 |
setDateLastSessionClosed(String component4)
Set the Date Last Session Closed (component4).
|
Field333 |
setDateLastSessionOpened(Calendar component1)
Set the Date Last Session Opened (component1) from a Calendar object.
|
Field333 |
setDateLastSessionOpened(String component1)
Set the Date Last Session Opened (component1).
|
Field333 |
setLastInputSequenceNumberReceived(Number component7)
Set the Last Input Sequence Number Received (component7) from a Number object.
|
Field333 |
setLastInputSequenceNumberReceived(String component7)
Set the Last Input Sequence Number Received (component7).
|
Field333 |
setLastOutputSequenceNumberSent(Number component8)
Set the Last Output Sequence Number Sent (component8) from a Number object.
|
Field333 |
setLastOutputSequenceNumberSent(String component8)
Set the Last Output Sequence Number Sent (component8).
|
Field333 |
setReasonForClosure(Number component6)
Set the Reason For Closure (component6) from a Number object.
|
Field333 |
setReasonForClosure(String component6)
Set the Reason For Closure (component6).
|
Field333 |
setSessionNumber(Number component3)
Set the Session Number (component3) from a Number object.
|
Field333 |
setSessionNumber(String component3)
Set the Session Number (component3).
|
Field333 |
setTimeLastSessionClosed(Calendar component5)
Set the Time Last Session Closed (component5) from a Calendar object.
|
Field333 |
setTimeLastSessionClosed(String component5)
Set the Time Last Session Closed (component5).
|
Field333 |
setTimeLastSessionOpened(Calendar component2)
Set the Time Last Session Opened (component2) from a Calendar object.
|
Field333 |
setTimeLastSessionOpened(String component2)
Set the Time Last Session Opened (component2).
|
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, validName
public static final int SRU
public static final String NAME
public static final String F_333
public static final String PARSER_PATTERN
public static final String COMPONENTS_PATTERN
public static final Integer DATE_LAST_SESSION_OPENED
public static final Integer TIME_LAST_SESSION_OPENED
public static final Integer SESSION_NUMBER
public static final Integer DATE_LAST_SESSION_CLOSED
public static final Integer TIME_LAST_SESSION_CLOSED
public static final Integer REASON_FOR_CLOSURE
public static final Integer LAST_INPUT_SEQUENCE_NUMBER_RECEIVED
public static final Integer LAST_OUTPUT_SEQUENCE_NUMBER_SENT
public Field333()
public Field333(String value)
value
- complete field value including separators and CRLFpublic Field333(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 Field333 newInstance(Field333 source)
source
- a field instance to copypublic String getValue()
public static Tag tag(String value)
new Tag(NAME, value)
NAME
public static Tag emptyTag()
new Tag(NAME, "")
NAME
public String getComponent1()
public Calendar getComponent1AsCalendar()
null
if cannot be convertedpublic String getDateLastSessionOpened()
public Calendar getDateLastSessionOpenedAsCalendar()
null
if cannot be convertedpublic Field333 setComponent1(String component1)
component1
- the component1 to setpublic Field333 setComponent1(Calendar component1)
component1
- the Calendar with the component1 content to setpublic Field333 setDateLastSessionOpened(String component1)
component1
- the Date Last Session Opened to setpublic Field333 setDateLastSessionOpened(Calendar component1)
component1
- Calendar with the Date Last Session Opened content to setsetComponent1(java.util.Calendar)
public String getComponent2()
public Calendar getComponent2AsCalendar()
null
if cannot be convertedpublic String getTimeLastSessionOpened()
public Calendar getTimeLastSessionOpenedAsCalendar()
null
if cannot be convertedpublic Field333 setComponent2(String component2)
component2
- the component2 to setpublic Field333 setComponent2(Calendar component2)
component2
- the Calendar with the component2 content to setpublic Field333 setTimeLastSessionOpened(String component2)
component2
- the Time Last Session Opened to setpublic Field333 setTimeLastSessionOpened(Calendar component2)
component2
- Calendar with the Time Last Session Opened content to setsetComponent2(java.util.Calendar)
public String getComponent3()
public Number getComponent3AsNumber()
null
if cannot be convertedpublic String getSessionNumber()
public Number getSessionNumberAsNumber()
null
if cannot be convertedpublic Field333 setComponent3(String component3)
component3
- the component3 to setpublic Field333 setComponent3(Number component3)
component3
- the Number with the component3 content to setsetComponent3(String)
public Field333 setSessionNumber(String component3)
component3
- the Session Number to setpublic Field333 setSessionNumber(Number component3)
component3
- Number with the Session Number content to setsetComponent3(java.lang.Number)
public String getComponent4()
public Calendar getComponent4AsCalendar()
null
if cannot be convertedpublic String getDateLastSessionClosed()
public Calendar getDateLastSessionClosedAsCalendar()
null
if cannot be convertedpublic Field333 setComponent4(String component4)
component4
- the component4 to setpublic Field333 setComponent4(Calendar component4)
component4
- the Calendar with the component4 content to setpublic Field333 setDateLastSessionClosed(String component4)
component4
- the Date Last Session Closed to setpublic Field333 setDateLastSessionClosed(Calendar component4)
component4
- Calendar with the Date Last Session Closed content to setsetComponent4(java.util.Calendar)
public String getComponent5()
public Calendar getComponent5AsCalendar()
null
if cannot be convertedpublic String getTimeLastSessionClosed()
public Calendar getTimeLastSessionClosedAsCalendar()
null
if cannot be convertedpublic Field333 setComponent5(String component5)
component5
- the component5 to setpublic Field333 setComponent5(Calendar component5)
component5
- the Calendar with the component5 content to setpublic Field333 setTimeLastSessionClosed(String component5)
component5
- the Time Last Session Closed to setpublic Field333 setTimeLastSessionClosed(Calendar component5)
component5
- Calendar with the Time Last Session Closed content to setsetComponent5(java.util.Calendar)
public String getComponent6()
public Number getComponent6AsNumber()
null
if cannot be convertedpublic String getReasonForClosure()
public Number getReasonForClosureAsNumber()
null
if cannot be convertedpublic Field333 setComponent6(String component6)
component6
- the component6 to setpublic Field333 setComponent6(Number component6)
component6
- the Number with the component6 content to setsetComponent6(String)
public Field333 setReasonForClosure(String component6)
component6
- the Reason For Closure to setpublic Field333 setReasonForClosure(Number component6)
component6
- Number with the Reason For Closure content to setsetComponent6(java.lang.Number)
public String getComponent7()
public Number getComponent7AsNumber()
null
if cannot be convertedpublic String getLastInputSequenceNumberReceived()
public Number getLastInputSequenceNumberReceivedAsNumber()
null
if cannot be convertedpublic Field333 setComponent7(String component7)
component7
- the component7 to setpublic Field333 setComponent7(Number component7)
component7
- the Number with the component7 content to setsetComponent7(String)
public Field333 setLastInputSequenceNumberReceived(String component7)
component7
- the Last Input Sequence Number Received to setpublic Field333 setLastInputSequenceNumberReceived(Number component7)
component7
- Number with the Last Input Sequence Number Received content to setsetComponent7(java.lang.Number)
public String getComponent8()
public Number getComponent8AsNumber()
null
if cannot be convertedpublic String getLastOutputSequenceNumberSent()
public Number getLastOutputSequenceNumberSentAsNumber()
null
if cannot be convertedpublic Field333 setComponent8(String component8)
component8
- the component8 to setpublic Field333 setComponent8(Number component8)
component8
- the Number with the component8 content to setsetComponent8(String)
public Field333 setLastOutputSequenceNumberSent(String component8)
component8
- the Last Output Sequence Number Sent to setpublic Field333 setLastOutputSequenceNumberSent(Number component8)
component8
- Number with the Last Output Sequence Number Sent content to setsetComponent8(java.lang.Number)
public List<Calendar> dates()
DateContainer
dates
in interface DateContainer
public boolean isOptional(int component)
isOptional
in class Field
component
- component number, first component of a field is referenced as 1public boolean isGeneric()
public String parserPattern()
parserPattern
in interface PatternContainer
public String getName()
public final String componentsPattern()
componentsPattern
in interface PatternContainer
componentsPattern
in class Field
public final String validatorPattern()
validatorPattern
in class Field
public static Field333 get(SwiftTagListBlock block)
block
- may be null or emptypublic static Field333 get(SwiftMessage msg)
msg
- may be empty or nullget(SwiftTagListBlock)
public static List<Field333> getAll(SwiftMessage msg)
msg
- may be empty or null in which case an empty list is returnedgetAll(SwiftTagListBlock)
public static List<Field333> getAll(SwiftTagListBlock block)
block
- may be empty or null in which case an empty list is returnedpublic int componentsSize()
componentsSize
in class Field
public String getValueDisplay(int component, Locale locale)
getValueDisplay
in class Field
component
- 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 Field
Field.getComponentLabel(int)