public class AnyToObjectTransform extends Transform
| Modifier and Type | Field and Description |
|---|---|
static AnyToObjectTransform |
INSTANCE |
| Constructor and Description |
|---|
AnyToObjectTransform(Class<?> sourceType) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getSourceType()
Type of the incoming value.
|
Class<?> |
getTargetType()
Type of the outgoing value.
|
Object |
transformDirect(Object value)
This method transforms a value of the source type into a value
of the target type.
|
getDescription, getDisplayName, getSourceTypeName, getTargetTypeName, isExplicit, toString, transformpublic static final AnyToObjectTransform INSTANCE
public AnyToObjectTransform(Class<?> sourceType)
public Class<?> getSourceType()
TransformgetSourceType in class Transformpublic 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 TransformCopyright © 2019 JBoss by Red Hat. All rights reserved.