pl.bristleback.server.bristle.binding.resolvers
Class BigDecimalPropertyResolver

java.lang.Object
  extended by pl.bristleback.server.bristle.binding.resolvers.BigDecimalPropertyResolver
All Implemented Interfaces:
PropertyValueResolver<java.math.BigDecimal>

public class BigDecimalPropertyResolver
extends java.lang.Object
implements PropertyValueResolver<java.math.BigDecimal>

Creates a new BigDecimal instance using various constructors depending on the parameter type. Every comma is replaced by dot.

Created on: 2011-04-03 11:00:17

Author:
Wojciech Niemiec

Constructor Summary
BigDecimalPropertyResolver()
           
 
Method Summary
 java.math.BigDecimal extractValue(java.lang.Object value)
          Extracts value given as parameter and process it to be of desired type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalPropertyResolver

public BigDecimalPropertyResolver()
Method Detail

extractValue

public java.math.BigDecimal extractValue(java.lang.Object value)
Description copied from interface: PropertyValueResolver
Extracts value given as parameter and process it to be of desired type.

Specified by:
extractValue in interface PropertyValueResolver<java.math.BigDecimal>
Parameters:
value - value to extract.
Returns:
processed value or null if given value cannot be processed.


Copyright © 2011. All Rights Reserved.