com.regnosys.rosetta.translate.basic.NumberParseHandler Maven / Gradle / Ivy
package com.regnosys.rosetta.translate.basic;
import java.math.BigDecimal;
public class NumberParseHandler extends BasicParseHandler {
public NumberParseHandler(boolean allowsMultiple, boolean isCondition, boolean removeHtml) {
super(allowsMultiple, isCondition, removeHtml);
}
public NumberParseHandler(boolean allowsMultiple, boolean isCondition, boolean removeHtml, String patternMatch, String patternReplace) {
super(allowsMultiple, isCondition, removeHtml, patternMatch, patternReplace);
}
@Override
public String toString() {
return "BigDecimal";
}
@Override
protected BigDecimal convert(String value) {
return new BigDecimal(value);
}
}