1.0.0

org.eclipse.soda.dk.transform
Class ShiftTransform

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.transform.Transform
          extended by org.eclipse.soda.dk.transform.ShiftTransform
All Implemented Interfaces:
TransformService

public class ShiftTransform
extends Transform
implements TransformService

The ShiftTransform class implements the TransformService interface.

Version:
1.0.0
See Also:
TransformService

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.core.EscObject
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE
 
Constructor Summary
ShiftTransform(int shift)
          Constructs an ShiftTransform object using the input parameter(s).
 
Method Summary
 java.lang.Object decode(java.lang.Object value)
          Perform the decode method and return the Object result.
 java.lang.Object encode(java.lang.Object value)
          Perform the encode method and return the Object result.
 int getShift()
          Gets the shift (int) value.
 java.lang.Object translate(java.lang.Object value, int shift)
          Perform the translate method and return the Object result.
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
attemptRecoveryFromError, createDefaultLogService, createException, createException, createInteger, createIntegerTable, createNumber, format, getBoolean, getConfigurationService, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getErrorSeverity, getFloat, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails2, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogService, getLong, getObject, getOutputName, getResource, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleStaticError, handleStaticException, isDebug, isTrace, loadService, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setDebug, setDefaultLogService, setLogService, setTraceLevel, shouldLog, sleep, startupEscStatic, toString, toStringConfigurationKeys, toStringInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShiftTransform

public ShiftTransform(int shift)
Constructs an ShiftTransform object using the input parameter(s).

Parameters:
shift - int
Method Detail

decode

public java.lang.Object decode(java.lang.Object value)
Perform the decode method and return the Object result.

Specified by:
decode in interface TransformService
Parameters:
value - java.lang.Object
Returns:
Results of the decode (Object) value.
See Also:
TransformService.decode(java.lang.Object)

encode

public java.lang.Object encode(java.lang.Object value)
                        throws java.lang.ClassCastException
Perform the encode method and return the Object result.

Specified by:
encode in interface TransformService
Parameters:
value - java.lang.Object
Returns:
Results of the encode (Object) value.
Throws:
java.lang.ClassCastException - Class Cast Exception.
See Also:
TransformService.encode(java.lang.Object)

getShift

public int getShift()
Gets the shift (int) value.

Returns:
The shift (int) value.

translate

public java.lang.Object translate(java.lang.Object value,
                                  int shift)
                           throws java.lang.ClassCastException
Perform the translate method and return the Object result.

Parameters:
value - java.lang.Object
shift - int
Returns:
Results of the translate (Object) value.
Throws:
java.lang.ClassCastException - Class Cast Exception.

1.0.0

Copyright (c) 1999, 2007 IBM