Compoze Software, Inc.

com.compoze.collab
Class ItemOperation


java.lang.Object

  |

  +--com.compoze.collab.ItemOperation


public class ItemOperation
extends java.lang.Object

Defines an operation that can be performed on an item.


Constructor Summary
ItemOperation(int iID, java.lang.Class[] operandTypes, java.lang.String sInternalName)
          Construct an ItemOperation that takes operands.
ItemOperation(int iID, java.lang.String sInternalName)
          Construct an ItemOperation that takes no operands.
 
Method Summary
 void checkOperandTypes(com.compoze.collab.spi.Context context, java.lang.Object[] params)
          Check whether parameters are compatible with the specified parameter types for this ItemOperation.
 java.lang.String getInternalName()
          Gets the internal name of the item operation (used for debugging purposes).
 int getIntValue()
          Gets the integer value of the operation so it can be switched on.
 java.lang.Class[] getOperandTypes()
          Get the operand types.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemOperation


public ItemOperation(int iID,
                     java.lang.String sInternalName)
Construct an ItemOperation that takes no operands.
Parameters:
iID - the int ID

ItemOperation


public ItemOperation(int iID,
                     java.lang.Class[] operandTypes,
                     java.lang.String sInternalName)
Construct an ItemOperation that takes operands.
Parameters:
iID - the int ID
operandTypes - the type for each elements of params[]
Method Detail

getInternalName


public java.lang.String getInternalName()
Gets the internal name of the item operation (used for debugging purposes).
Returns:
the internal name (not null)

getIntValue


public int getIntValue()
Gets the integer value of the operation so it can be switched on.
Returns:
the int value

getOperandTypes


public java.lang.Class[] getOperandTypes()
Get the operand types.
Returns:
the operand types

checkOperandTypes


public final void checkOperandTypes(com.compoze.collab.spi.Context context,
                                    java.lang.Object[] params)
                             throws CollaborationRuntimeException
Check whether parameters are compatible with the specified parameter types for this ItemOperation.
Parameters:
context -  
params -  
Throws:
CollaborationRuntimeException -  

toString


public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.