com.ibm.commerce.foundation.rest.resourcehandler

Class Operation

  • java.lang.Object
    • com.ibm.commerce.foundation.rest.resourcehandler.Operation
  • All Implemented Interfaces:
    Value


    public class Operation
    extends java.lang.Object
    implements Value
    Represents an operation that can be executed.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Operation(java.lang.String setName, java.lang.String setDescription, java.lang.reflect.Method setMethod)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getDescription() 
      java.lang.reflect.Method getMethod() 
      java.lang.String getName() 
      java.lang.String getValue() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Operation

        public Operation(java.lang.String setName,
                         java.lang.String setDescription,
                         java.lang.reflect.Method setMethod)
        Constructor.
        Parameters:
        setName - The operation name.
        setDescription - The description.
        setMethod - The method to call to invoke the operation.
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
        Returns:
        The method to call to invoke the operation.
      • getName

        public java.lang.String getName()
        Returns:
        The operation name.
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface Value
        Returns:
        The description.
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface Value
        Returns:
        The value.