| Constructor and Description |
|---|
ReplacementTable(ITable table)
Create a new ReplacementTable object that decorates the specified table.
|
ReplacementTable(ITable table,
Map objectMap,
Map substringMap,
String startDelimiter,
String endDelimiter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReplacementObject(Object originalObject,
Object replacementObject)
Add a new Object replacement mapping.
|
void |
addReplacementSubstring(String originalSubstring,
String replacementSubstring)
Add a new substring replacement mapping.
|
int |
getRowCount()
Returns this table row count.
|
ITableMetaData |
getTableMetaData()
Returns this table metadata.
|
Object |
getValue(int row,
String column)
Returns this table value for the specified row and column.
|
void |
setStrictReplacement(boolean strictReplacement)
Setting this property to true indicates that when no replacement
is found for a delimited substring the replacement will fail fast.
|
void |
setSubstringDelimiters(String startDelimiter,
String endDelimiter)
Sets substring delimiters.
|
String |
toString() |
public ReplacementTable(ITable table)
table - the decorated tablepublic void setStrictReplacement(boolean strictReplacement)
strictReplacement - true if replacement should be strictpublic void addReplacementObject(Object originalObject, Object replacementObject)
originalObject - the object to replacereplacementObject - the replacement objectpublic void addReplacementSubstring(String originalSubstring, String replacementSubstring)
originalSubstring - the substring to replacereplacementSubstring - the replacement substringpublic void setSubstringDelimiters(String startDelimiter, String endDelimiter)
public ITableMetaData getTableMetaData()
ITablegetTableMetaData in interface ITablepublic int getRowCount()
ITablegetRowCount in interface ITablepublic Object getValue(int row, String column) throws DataSetException
ITablegetValue in interface ITablerow - The row index, starting with 0column - The name of the columnNoSuchColumnException - if specified column name do not exist in
this tableRowOutOfBoundsException - if specified row is less than zero or
equals or greater than getRowCountDataSetExceptionCopyright © 2002-2017. All Rights Reserved.