Package org.teiid.core.types.basic
Class StringToSQLXMLTransform
- java.lang.Object
-
- org.teiid.core.types.Transform
-
- org.teiid.core.types.basic.StringToSQLXMLTransform
-
public class StringToSQLXMLTransform extends Transform
-
-
Constructor Summary
Constructors Constructor Description StringToSQLXMLTransform()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getSourceType()Type of the incoming value.Class<?>getTargetType()Type of the outgoing value.booleanisExplicit()static XMLType.TypeisXml(Reader reader)ObjecttransformDirect(Object value)This method transforms a value of the source type into a value of the target type.-
Methods inherited from class org.teiid.core.types.Transform
getDescription, getDisplayName, getSourceTypeName, getTargetTypeName, toString, transform
-
-
-
-
Method Detail
-
transformDirect
public Object transformDirect(Object value) throws TransformationException
This method transforms a value of the source type into a value of the target type.- Specified by:
transformDirectin classTransform- Parameters:
value- Incoming value of source type- Returns:
- Outgoing value of target type
- Throws:
TransformationException- if value is an incorrect input type or the transformation fails
-
isXml
public static XMLType.Type isXml(Reader reader) throws TransformationException
- Throws:
TransformationException
-
getSourceType
public Class<?> getSourceType()
Type of the incoming value.- Specified by:
getSourceTypein classTransform- Returns:
- Source type
-
getTargetType
public Class<?> getTargetType()
Type of the outgoing value.- Specified by:
getTargetTypein classTransform- Returns:
- Target type
-
isExplicit
public boolean isExplicit()
- Overrides:
isExplicitin classTransform
-
-