org.instrumentmiddleware.cima.extension.handler.impl
Class AbstractSingleBodyHandler

java.lang.Object
  extended by org.instrumentmiddleware.cima.extension.handler.impl.AbstractSingleBodyHandler
All Implemented Interfaces:
IParcelBodyHandler
Direct Known Subclasses:
OperationHandler.CommandOperationHandler, OperationHandler.GetCIMAOperationHandler, OperationHandler.GetPluginOperationHandler, OperationHandler.SetCIMAOperationHandler, OperationHandler.SetPluginOperationHandler

public abstract class AbstractSingleBodyHandler
extends java.lang.Object
implements IParcelBodyHandler

An implementation of the IParcelBodyHandler interface. This abstract class can handle a particular body type only if the body's type interface or implementation is equal to the handled type given as constructor argument.

Author:
Romain

Field Summary
protected  java.lang.String handledType
          The body type this handler can handle
 
Constructor Summary
AbstractSingleBodyHandler(java.lang.String handledType)
           
 
Method Summary
 boolean canHandle(org.instrumentmiddleware.cima.parcel.BodyType body)
          Returns true if this handler can handle the given body type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.instrumentmiddleware.cima.extension.handler.IParcelBodyHandler
processBody
 

Field Detail

handledType

protected java.lang.String handledType
The body type this handler can handle

Constructor Detail

AbstractSingleBodyHandler

public AbstractSingleBodyHandler(java.lang.String handledType)
Method Detail

canHandle

public boolean canHandle(org.instrumentmiddleware.cima.parcel.BodyType body)
Description copied from interface: IParcelBodyHandler
Returns true if this handler can handle the given body type

Specified by:
canHandle in interface IParcelBodyHandler
Returns:
true if this handler can handle the given body type


Copyright © 2008. All Rights Reserved.