com.metamatrix.common.types.basic
Class SQLXMLToStringTransform

java.lang.Object
  extended by com.metamatrix.common.types.AbstractTransform
      extended by com.metamatrix.common.types.basic.AnyToStringTransform
          extended by com.metamatrix.common.types.basic.SQLXMLToStringTransform
All Implemented Interfaces:
Transform

public class SQLXMLToStringTransform
extends AnyToStringTransform


Constructor Summary
SQLXMLToStringTransform()
           
 
Method Summary
 java.lang.Class getSourceType()
          Type of the incoming value.
 boolean isNarrowing()
          Flag if the transformation from source to target is a narrowing transformation that may lose information.
 java.lang.Object transform(java.lang.Object value)
          This method transforms a value of the source type into a value of the target type.
 
Methods inherited from class com.metamatrix.common.types.basic.AnyToStringTransform
getTargetType
 
Methods inherited from class com.metamatrix.common.types.AbstractTransform
equals, getDescription, getDisplayName, getSourceTypeName, getTargetTypeName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLXMLToStringTransform

public SQLXMLToStringTransform()
Method Detail

transform

public java.lang.Object transform(java.lang.Object value)
                           throws TransformationException
This method transforms a value of the source type into a value of the target type.

Specified by:
transform in interface Transform
Overrides:
transform in class AnyToStringTransform
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

getSourceType

public java.lang.Class getSourceType()
Type of the incoming value.

Specified by:
getSourceType in interface Transform
Specified by:
getSourceType in class AnyToStringTransform
Returns:
Source type

isNarrowing

public boolean isNarrowing()
Description copied from class: AbstractTransform
Flag if the transformation from source to target is a narrowing transformation that may lose information. This class returns false by default. This method should be overridden if the transform is a narrowing transform.

Specified by:
isNarrowing in interface Transform
Overrides:
isNarrowing in class AbstractTransform
Returns:
False unless overridden.
See Also:
AbstractTransform.isNarrowing()


Copyright © 2009. All Rights Reserved.