public class NumberToIntegerTransform extends NumberToNumberTransform
| Constructor and Description |
|---|
NumberToIntegerTransform(Class<?> sourceType,
boolean isNarrowing) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getTargetType()
Type of the outgoing value.
|
boolean |
isExplicit() |
Object |
transformDirect(Object value)
This method transforms a value of the source type into a value
of the target type.
|
checkValueRange, getSourceTypegetDescription, getDisplayName, getSourceTypeName, getTargetTypeName, toString, transformpublic NumberToIntegerTransform(Class<?> sourceType, boolean isNarrowing)
public Object transformDirect(Object value) throws TransformationException
transformDirect in class Transformvalue - Incoming value of source typeTransformationException - if value is an incorrect input type or
the transformation failspublic Class<?> getTargetType()
getTargetType in class Transformpublic boolean isExplicit()
isExplicit in class TransformCopyright © 2018 JBoss by Red Hat. All rights reserved.