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, getSourceType
getDescription, getDisplayName, getSourceTypeName, getTargetTypeName, toString, transform
public NumberToIntegerTransform(Class<?> sourceType, boolean isNarrowing)
public Object transformDirect(Object value) throws TransformationException
transformDirect
in class Transform
value
- Incoming value of source typeTransformationException
- if value is an incorrect input type or
the transformation failspublic Class<?> getTargetType()
getTargetType
in class Transform
public boolean isExplicit()
isExplicit
in class Transform
Copyright © 2018 JBoss by Red Hat. All rights reserved.