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 TypeMethodDescriptionvoiddebug()This function prints out a description of the mapping between String keys and OSAR attributesprotected voidprotected voidintgetOSARAttr(String recordType, String key) booleanloadFromFile(String filename) This function is used for loading the mappings between an OSAR attribute id + type and string keys, stored in a file.booleanloadFromVector(Vector cfgMapping) This function is used for loading the mappings between an OSAR attribute id + type and string keys, stored in a Hashtable.voidsetDebugLevel(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
-