com.ca.jcs.converter.core
Class NumericBaseConverter

java.lang.Object
  extended by com.ca.jcs.converter.core.NumericBaseConverter
All Implemented Interfaces:
Converter

public class NumericBaseConverter
extends Object
implements Converter

Converter class capable of translating numeric values between bases


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ca.jcs.converter.core.Converter
Converter.ConverterFlag
 
Constructor Summary
NumericBaseConverter(int fromBase, int toBase, String prefix)
           
 
Method Summary
 Object convertFromConnector(Object nonLdapVal)
          Convert a numeric value from toBase to fromBase
 Object convertToConnector(Converter.ConverterFlag flag, String ldapVal)
          Convert to connector with additional context, for instance when converting values found in rule expressions.
 Object convertToConnector(String ldapVal)
          Convert a numeric value to a designated numeric base, from fromBase to toBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericBaseConverter

public NumericBaseConverter(int fromBase,
                            int toBase,
                            String prefix)
Method Detail

convertFromConnector

public Object convertFromConnector(Object nonLdapVal)
Convert a numeric value from toBase to fromBase

Specified by:
convertFromConnector in interface Converter

convertToConnector

public Object convertToConnector(String ldapVal)
Convert a numeric value to a designated numeric base, from fromBase to toBase

Specified by:
convertToConnector in interface Converter

convertToConnector

public Object convertToConnector(Converter.ConverterFlag flag,
                                 String ldapVal)
Description copied from interface: Converter
Convert to connector with additional context, for instance when converting values found in rule expressions.

Specified by:
convertToConnector in interface Converter


Created 2011-07-14 13:27 EST