public class COSARAttrConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
m_debugLevel |
Constructor and Description |
---|
COSARAttrConverter() |
COSARAttrConverter(ILogger iLogger) |
Modifier and Type | Method and Description |
---|---|
void |
debug()
This function prints out a description of the mapping between
String keys and OSAR attributes
|
protected void |
debug(java.lang.String fName,
java.lang.String msg) |
protected void |
error(java.lang.String fName,
java.lang.String msg) |
int |
getDebugLevel() |
COSARAttr |
getOSARAttr(java.lang.String recordType,
java.lang.String key) |
boolean |
loadFromFile(java.lang.String filename)
This function is used for loading the mappings between
an OSAR attribute id + type and string keys, stored in a file.
|
boolean |
loadFromVector(java.util.Vector cfgMapping)
This function is used for loading the mappings between
an OSAR attribute id + type and string keys, stored in a Hashtable.
|
void |
setDebugLevel(int debugLevel) |
public COSARAttrConverter() throws java.lang.Exception
java.lang.Exception
public COSARAttrConverter(ILogger iLogger) throws java.lang.Exception
iLogger
- - Object implementing ILogger interface - used
for logging errors, warnings, etc.java.lang.Exception
public int getDebugLevel()
public void setDebugLevel(int debugLevel)
public boolean loadFromFile(java.lang.String filename)
filename
- - Filename containing the mappings
Format: '['record:
public boolean loadFromVector(java.util.Vector cfgMapping)
cfgMapping
- - matrix containing the mappings
Matrix line format:
public void debug()
public COSARAttr getOSARAttr(java.lang.String recordType, java.lang.String key)
protected void error(java.lang.String fName, java.lang.String msg)
protected void debug(java.lang.String fName, java.lang.String msg)