Class Operation

    • Constructor Detail

      • Operation

        public Operation()
      • Operation

        public Operation​(java.lang.String name,
                         java.lang.String description,
                         IOperation.MethodType method,
                         IProperty targetSchema,
                         IProperty schema,
                         boolean genericOperation,
                         boolean isHidden)
      • Operation

        public Operation​(java.lang.String name,
                         java.lang.String title,
                         java.lang.String description,
                         IOperation.MethodType method,
                         IProperty targetSchema,
                         IProperty schema,
                         boolean genericOperation,
                         boolean isHidden)
    • Method Detail

      • getRel

        public java.lang.String getRel()
        Gets the rel of this Operation
        Specified by:
        getRel in interface IOperation
        Returns:
        the rel of this Operation
      • setRel

        public void setRel​(java.lang.String rel)
      • getHref

        public java.lang.String getHref()
        Gets the href of this Operation
        Specified by:
        getHref in interface IOperation
        Returns:
        the href of this Operation
      • getTargetSchema

        public IProperty getTargetSchema()
        gets the type of the returned object
        Specified by:
        getTargetSchema in interface IOperation
        Returns:
        type of returned object
      • hasMultipleArguments

        public boolean hasMultipleArguments()
        Utility method to check if operation have multiple arguments
        Specified by:
        hasMultipleArguments in interface IOperation
        Returns:
        - Returns true if operation takes more than one argument.
      • getSource

        public java.lang.String getSource()
        Gets the source of Operation
        Specified by:
        getSource in interface IOperation
        Returns:
        the source
      • setSource

        public void setSource​(java.lang.String source)
        Description copied from interface: IOperation
        sets the source of Operation
        Specified by:
        setSource in interface IOperation
      • isGenericOperation

        public boolean isGenericOperation()
        Represent if operation is generic in nature, which means it allow FDM author to add/remove argument of operation.
        Specified by:
        isGenericOperation in interface IOperation
        Returns:
        - Returns true if operation is generic.
      • setGenericOperation

        public void setGenericOperation​(boolean genericOperation)
        Sets true if this is generic operation
        Parameters:
        genericOperation -
      • getIsHidden

        public boolean getIsHidden()
        Represent whether a operation is Hidden on UI or not.
        Returns:
        Returns true if operation is Hidden.
      • setIsHidden

        public void setIsHidden​(boolean isHidden)
        Set true if this operation should be Hidden on UI
        Parameters:
        isHidden -