org.mvel2.conversion
Class BigDecimalCH

java.lang.Object
  extended by org.mvel2.conversion.BigDecimalCH
All Implemented Interfaces:
ConversionHandler

public class BigDecimalCH
extends java.lang.Object
implements ConversionHandler

MVEL (The MVFLEX Expression Language)

Copyright (C) 2007 Christopher Brock, MVFLEX/Valhalla Project and the Codehaus

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Constructor Summary
BigDecimalCH()
           
 
Method Summary
 boolean canConvertFrom(java.lang.Class cls)
          This method is used to indicate to the runtime whehter or not the handler knows how to convert from the specified type.
 java.lang.Object convertFrom(java.lang.Object in)
          Converts the passed argument to the type represented by the handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalCH

public BigDecimalCH()
Method Detail

convertFrom

public java.lang.Object convertFrom(java.lang.Object in)
Description copied from interface: ConversionHandler
Converts the passed argument to the type represented by the handler.

Specified by:
convertFrom in interface ConversionHandler
Parameters:
in - - the input type
Returns:
- the converted type

canConvertFrom

public boolean canConvertFrom(java.lang.Class cls)
Description copied from interface: ConversionHandler
This method is used to indicate to the runtime whehter or not the handler knows how to convert from the specified type.

Specified by:
canConvertFrom in interface ConversionHandler
Parameters:
cls - - the source type
Returns:
- true if the converter supports converting from the specified type.


Copyright © 2008. All Rights Reserved.