Package com.nt.udc.io
Class COSARAttrConverter
java.lang.Object
com.nt.udc.io.COSARAttrConverter
This class provides the conversion mechanism between string keys
and OSAR attributes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
debug()
This function prints out a description of the mapping between String keys and OSAR attributesprotected void
protected void
int
getOSARAttr
(String recordType, String key) boolean
loadFromFile
(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
(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)
-
Field Details
-
m_debugLevel
protected static int m_debugLevel
-
-
Constructor Details
-
Method Details
-
getDebugLevel
public int getDebugLevel() -
setDebugLevel
public void setDebugLevel(int debugLevel) -
loadFromFile
This function is used for loading the mappings between an OSAR attribute id + type and string keys, stored in a file.- Parameters:
filename
- - Filename containing the mappingsFormat: '['record:
']' { }* - Returns:
- true if successful, false otherwise
-
loadFromVector
This function is used for loading the mappings between an OSAR attribute id + type and string keys, stored in a Hashtable.- Parameters:
cfgMapping
- - matrix containing the mappingsMatrix line format:
- Returns:
- true if successful, false otherwise
-
debug
public void debug()This function prints out a description of the mapping between String keys and OSAR attributes -
getOSARAttr
-
error
-
debug
-