public abstract class LayoutField extends Object implements Serializable
LayoutMessage
. A LayoutField
has a type
, a name, a length, a numeric scale
and a default value. The values of these properties have restrictions
depending on the type of the field. See FieldType
for details about
these restrictions.Modifier and Type | Method and Description |
---|---|
Character |
getChar(LayoutMessage message,
int index)
Returns the first character of the string value of the
index
occurence of this field in message . |
Character |
getChar(LayoutMessage message,
int index,
boolean strict)
Returns the first character of the string value of the
index
occurence of this field in message . |
Date |
getDate(LayoutMessage message,
int index)
Returns the date value of the
index occurence of this field in
message . |
Date |
getDate(LayoutMessage message,
int index,
boolean strict)
Returns the date value of the
index occurence of this field in
message . |
String |
getDefault()
Returns the default value of this field.
|
String |
getDefinedDefault()
Returns the defined default value of this field.
|
Double |
getDouble(LayoutMessage message,
int index)
Returns the double value of the
index occurence of this field in
message . |
Double |
getDouble(LayoutMessage message,
int index,
boolean strict)
Returns the double value of the
index occurence of this field in
message . |
int |
getFormattedLength()
Returns the length of the formatted values of this field.
|
Integer |
getInteger(LayoutMessage message,
int index)
Returns the integer value of the
index occurence of this field in
message . |
Integer |
getInteger(LayoutMessage message,
int index,
boolean strict)
Returns the integer value of the
index occurence of this field in
message . |
Layout |
getLayout()
Returns the layout of this field or
null if undefined. |
int |
getLength()
Returns the length of each occurrence of this field.
|
Locale |
getLocale()
Returns the locale of this field.
|
Long |
getLong(LayoutMessage message,
int index)
Returns the long value of the
index occurence of this field in
message . |
Long |
getLong(LayoutMessage message,
int index,
boolean strict)
Returns the long value of the
index occurence of this field in
message . |
String |
getName()
Returns the name of this field.
|
BigDecimal |
getNumber(LayoutMessage message,
int index)
Returns the decimal value of the
index occurence of this field in
message . |
BigDecimal |
getNumber(LayoutMessage message,
int index,
boolean strict)
Returns the decimal value of the
index occurence of this field in
message . |
int |
getOccurs()
Returns the number of occurrences of this field.
|
int |
getOffset(int index)
Returns the offset position of the
index occurence of this field
in a message or it's parent list. |
LayoutField |
getParent()
Returns the list field that contains this field.
|
int |
getScale()
Returns the numeric scale of this field.
|
String |
getString(LayoutMessage message,
int index)
Returns the string value of the
index occurence of this field in
message . |
String |
getString(LayoutMessage message,
int index,
boolean strict)
Returns the string value of the
index occurence of this field in
message . |
String |
getSubstring(LayoutMessage message,
int index)
Returns a substring of the
index occurence of this field in
message . |
String |
getSubstring(LayoutMessage message,
int index,
boolean rtrim,
boolean nodata)
Returns a substring of the
index occurence of this field in
message . |
FieldType |
getType()
Returns the type of this field.
|
Object |
getValue(LayoutMessage message,
int index)
Returns the object value of the
index occurence of this field in
message . |
Object |
getValue(LayoutMessage message,
int index,
boolean strict)
Returns the object value of the
index occurence of this field in
message . |
boolean |
isGroupingUsed()
Returns
true if numbers are formatted using group separators. |
boolean |
isNull(LayoutMessage message,
int index)
Returns
true if the value of the index occurence of this
field in message is NULL. |
void |
setChar(LayoutMessage message,
int index,
Character value)
Changes the character value of the
index occurence of this field
in message . |
void |
setChar(LayoutMessage message,
int index,
Character value,
boolean strict)
Changes the character value of the
index occurence of this field
in message . |
void |
setDate(LayoutMessage message,
int index,
Date date)
Changes the date value of the
index occurence of this field in
message . |
void |
setDate(LayoutMessage message,
int index,
Date date,
boolean strict)
Changes the date value of the
index occurence of this field in
message . |
void |
setDefault(LayoutMessage message,
int index)
Changes the value of the
index occurence of this field in message to its default value. |
void |
setDouble(LayoutMessage message,
int index,
Double value)
Changes the double value of the
index occurence of this field in
message . |
void |
setDouble(LayoutMessage message,
int index,
Double value,
boolean strict)
Changes the double value of the
index occurence of this field in
message . |
void |
setGroupingUsed(boolean groupingUsed)
Changes whether numbers are formatted using group separators.
|
void |
setInteger(LayoutMessage message,
int index,
Integer value)
Changes the integer value of the
index occurence of this field in
message . |
void |
setInteger(LayoutMessage message,
int index,
Integer value,
boolean strict)
Changes the integer value of the
index occurence of this field in
message . |
void |
setLocale(Locale locale)
Changes the locale of this field.
|
void |
setLong(LayoutMessage message,
int index,
Long value)
Changes the long value of the
index occurence of this field in
message . |
void |
setLong(LayoutMessage message,
int index,
Long value,
boolean strict)
Changes the long value of the
index occurence of this field in
message . |
void |
setNull(LayoutMessage message,
int index)
Changes the value of the
index occurence of this field in message to NULL. |
void |
setNumber(LayoutMessage message,
int index,
BigDecimal value)
Changes the decimal value of the
index occurence of this field in
message . |
void |
setNumber(LayoutMessage message,
int index,
BigDecimal value,
boolean strict)
Changes the decimal value of the
index occurence of this field in
message . |
void |
setString(LayoutMessage message,
int index,
String value)
Changes the string value of the
index occurence of this field in
message . |
void |
setString(LayoutMessage message,
int index,
String value,
boolean strict)
Changes the string value of the
index occurence of this field in
message . |
void |
setSubstring(LayoutMessage message,
int index,
String value)
Replaces a substring of the
index occurence of this field in
message . |
void |
setSubstring(LayoutMessage message,
int index,
String value,
boolean strict)
Replaces a substring of the
index occurence of this field in
message . |
void |
setValue(LayoutMessage message,
int index,
Object value)
Changes the object value of the
index occurence of this field in
message . |
void |
setValue(LayoutMessage message,
int index,
Object value,
boolean strict)
Changes the object value of the
index occurence of this field in
message . |
public final FieldType getType()
public final Layout getLayout()
null
if undefined.null
if undefined.public final String getName()
public final int getLength()
public final int getScale()
public final int getOccurs()
public int getFormattedLength()
public final Locale getLocale()
null
for default locale.public void setLocale(Locale locale)
locale
is null
, the default JVM
locale is used.locale
- the new layout locale (can be null).public final boolean isGroupingUsed()
true
if numbers are formatted using group separators.true
if numbers are formatted using group separators.public void setGroupingUsed(boolean groupingUsed)
groupingUsed
- the new value of this property.public final String getDefinedDefault()
null
.null
if the field
does not have a defined default value.public String getDefault()
type
. This method never returns null
.type
.public void setDefault(LayoutMessage message, int index)
index
occurence of this field in message
to its default value. If the field's default value is invalid,
then the type's default value is used.message
- the layout message editor.index
- the occurence index of the field.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.public final LayoutField getParent()
null
. Fields of type FieldType.LIST
always return null
because list fields cannot be
defined (contained) within other lists.null
.public final int getOffset(int index)
index
occurence of this field
in a message or it's parent list.index
- the occurence index of the field.IndexOutOfBoundsException
- if index
is out-of-bounds.public final boolean isNull(LayoutMessage message, int index)
true
if the value of the index
occurence of this
field in message
is NULL. The value is NULL if the
first character of it's substring is NO-DATA
(0x1A). The
substring begins at getOffset
with a length given by
getLength()
message
- the layout message editor.index
- the occurence index of the field.true
if the value of this field is NULL.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.public void setNull(LayoutMessage message, int index)
index
occurence of this field in message
to NULL. The value is set to NULL by replacing all
characters of it's substring with NO-DATA
(0x1A).message
- the layout message editor.index
- the occurence index of the field.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.public final String getSubstring(LayoutMessage message, int index)
index
occurence of this field in
message
. The substring begins at getOffset
with a length given by getLength()
. Trailing spaces are removed.
It returns null
if the first character of the substring is NO-DATA
(0x1A).message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.public final String getSubstring(LayoutMessage message, int index, boolean rtrim, boolean nodata)
index
occurence of this field in
message
. The substring begins at getOffset
with a length given by getLength()
. If rtrim
is true
, trailing spaces are removed. It returns null
if nodata
is true
and the first character of the substring is
NO-DATA
(0x1A). If nodata
is false
, the returned
substring includes NO-DATA
(0x1A) characters.message
- the layout message editor.index
- the occurence index of the field.rtrim
- if true
remove trailing spaces.nodata
- if true
check for NO-DATA.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.public final void setSubstring(LayoutMessage message, int index, String value)
index
occurence of this field in
message
. The substring begins at getOffset(int)
method with a
length given by getLength()
. If value
is null
, the
substring is filled with NO-DATA
(0x1A) characters. If value
is shorter than the substring, the remaining space is filled with
spaces. If value
is too long, it is truncated.message
- the layout message editor.index
- the occurence index of the field.value
- the new character sequence of this field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.IllegalArgumentException
- if strict and value
is too long.public final void setSubstring(LayoutMessage message, int index, String value, boolean strict)
index
occurence of this field in
message
. The substring begins at getOffset(int)
method with a
length given by getLength()
. If value
is null
, the
substring is filled with NO-DATA
(0x1A) characters. If value
is shorter than the substring, the remaining space is filled with
spaces. If value
is too long, it is truncated, unless strict
is true
, in which case an exception is thrown.message
- the layout message editor.index
- the occurence index of the field.value
- the new character sequence of this field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.IllegalArgumentException
- if strict and value
is too long.public final String getString(LayoutMessage message, int index)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public String getString(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL. If strict
is true
an exception is thrown if
message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public final void setString(LayoutMessage message, int index, String value)
index
occurence of this field in
message
. The supplied value
is formatted according to the
type of this field, and the resulting text is stored in message
.
If value
is null
, the value of the field is set to
NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the string representation of the field value.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if value
has an invalid format.public void setString(LayoutMessage message, int index, String value, boolean strict)
index
occurence of this field in
message
. The supplied value
is formatted according to the
type of this field, and the resulting text is stored in message
.
If value
is null
, the value of the field is set to
NULL. If strict
is true
an exception is thrown if
value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the string representation of the field value.strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if value
has an invalid format.public final Character getChar(LayoutMessage message, int index)
index
occurence of this field in message
. It returns null
if
the value of the field is NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public final Character getChar(LayoutMessage message, int index, boolean strict)
index
occurence of this field in message
. It returns null
if
the value of the field is NULL. If strict
is true
an exception is thrown if message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public final void setChar(LayoutMessage message, int index, Character value)
index
occurence of this field
in message
. If value
is null
, the value of the
field is set to NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the new character value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if value
has an invalid format.public final void setChar(LayoutMessage message, int index, Character value, boolean strict)
index
occurence of this field
in message
. If value
is null
, the value of the
field is set to NULL. If strict
is true
an
exception is thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the new character value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if value
has an invalid format.public final BigDecimal getNumber(LayoutMessage message, int index)
index
occurence of this field in
message
. This method can only be used if the type of this field
is NUMERIC
or SIGNED
.
It returns null
if the value of the field is NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public BigDecimal getNumber(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. This method can only be used if the type of this field
is NUMERIC
or SIGNED
.
It returns null
if the value of the field is NULL. If
strict
is true
an exception is thrown if message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setNumber(LayoutMessage message, int index, BigDecimal value)
index
occurence of this field in
message
. This method can only be used if the type of this field
is NUMERIC
or SIGNED
.
If decimal
is null
, the value of the field is set to
NULL.message
- the layout message editor.index
- the occurence index of the field.value
- decimal value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public void setNumber(LayoutMessage message, int index, BigDecimal value, boolean strict)
index
occurence of this field in
message
. This method can only be used if the type of this field
is NUMERIC
or SIGNED
.
If decimal
is null
, the value of the field is set to
NULL. If strict
is true
an exception is thrown if
value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- decimal value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Double getDouble(LayoutMessage message, int index)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Double getDouble(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL. If strict
is true
an exception is thrown if
message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setDouble(LayoutMessage message, int index, Double value)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the new double value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setDouble(LayoutMessage message, int index, Double value, boolean strict)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL. If strict
is true
an exception is
thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the new double value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Integer getInteger(LayoutMessage message, int index)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Integer getInteger(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL. If strict
is true
an exception is thrown if
message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setInteger(LayoutMessage message, int index, Integer value)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the new integer value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setInteger(LayoutMessage message, int index, Integer value, boolean strict)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL. If strict
is true
an exception is
thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the new integer value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Long getLong(LayoutMessage message, int index)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Long getLong(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL. If strict
is true
an exception is thrown if
message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setLong(LayoutMessage message, int index, Long value)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the new long value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final void setLong(LayoutMessage message, int index, Long value, boolean strict)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL. If strict
is true
an exception is
thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the new long value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
NUMERIC
or SIGNED
.public final Date getDate(LayoutMessage message, int index)
index
occurence of this field in
message
. This method can only be used if the type of this field
is DATE
. It returns null
if the value of
the field is NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
DATE
.public Date getDate(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. This method can only be used if the type of this field
is DATE
. It returns null
if the value of
the field is NULL. If strict
is true
an exception
is thrown if message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.UnsupportedOperationException
- if the type of this field is not
DATE
.public final void setDate(LayoutMessage message, int index, Date date)
index
occurence of this field in
message
. This method can only be used if the type of this field
is DATE
. If date
is null
, the
value of the field is set to NULL.message
- the layout message editor.index
- the occurence index of the field.date
- the new date value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
DATE
.public void setDate(LayoutMessage message, int index, Date date, boolean strict)
index
occurence of this field in
message
. This method can only be used if the type of this field
is DATE
. If date
is null
, the
value of the field is set to NULL. If strict
is true
an exception is thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.date
- the new date value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.UnsupportedOperationException
- if the type of this field is not
DATE
.public final Object getValue(LayoutMessage message, int index)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL.message
- the layout message editor.index
- the occurence index of the field.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public Object getValue(LayoutMessage message, int index, boolean strict)
index
occurence of this field in
message
. It returns null
if the value of the field is
NULL. If strict
is true
an exception is thrown if
message
is invalid.message
- the layout message editor.index
- the occurence index of the field.strict
- if true
throws an exception if message is invalid.null
.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if the field record data is invalid.public final void setValue(LayoutMessage message, int index, Object value)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL.message
- the layout message editor.index
- the occurence index of the field.value
- the new object value of the field (can be null).NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if supplied value
is invalid.public void setValue(LayoutMessage message, int index, Object value, boolean strict)
index
occurence of this field in
message
. If value
is null
, the value of the field
is set to NULL. If strict
is true
an exception is
thrown if value
is invalid.message
- the layout message editor.index
- the occurence index of the field.value
- the new object value of the field (can be null).strict
- if true
throws an exception if value is invalid.NullPointerException
- if message
is null
.IndexOutOfBoundsException
- if index
is out-of-bounds.ValueFormatException
- if supplied value
is invalid.Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.