Class OperationMethod

    • Constructor Detail

      • OperationMethod

        public OperationMethod()
        Constructor
      • OperationMethod

        public OperationMethod​(String name)
        Constructor
        Parameters:
        name - name
      • OperationMethod

        public OperationMethod​(OperationMethods method)
        Constructor
        Parameters:
        method - operation method
    • Method Detail

      • getName

        public String getName()
        Get the name
        Returns:
        name
      • setName

        public void setName​(String name)
        Set the name
        Parameters:
        name - name
      • hasParameters

        public boolean hasParameters()
        Has parameters
        Returns:
        true if has parameters
      • numParameters

        public int numParameters()
        Number of parameters
        Returns:
        parameters count
      • getParameter

        public OperationParameter getParameter​(int index)
        Get the parameter at the index
        Parameters:
        index - parameter index
        Returns:
        parameter
      • setParameters

        public void setParameters​(List<OperationParameter> parameters)
        Set the parameters
        Parameters:
        parameters - parameters
      • addParameter

        public void addParameter​(OperationParameter parameter)
        Add the parameter
        Parameters:
        parameter - parameter
      • addParameters

        public void addParameters​(List<OperationParameter> parameters)
        Add the parameters
        Parameters:
        parameters - parameters
      • hasIdentifiers

        public boolean hasIdentifiers()
        Has identifiers
        Specified by:
        hasIdentifiers in interface Identifiable
        Returns:
        true if has identifiers
      • numIdentifiers

        public int numIdentifiers()
        Number of identifiers
        Specified by:
        numIdentifiers in interface Identifiable
        Returns:
        identifiers count
      • getIdentifier

        public Identifier getIdentifier​(int index)
        Get the identifier at the index
        Specified by:
        getIdentifier in interface Identifiable
        Parameters:
        index - identifier index
        Returns:
        identifier
      • addIdentifier

        public void addIdentifier​(Identifier identifier)
        Add the identifier
        Specified by:
        addIdentifier in interface Identifiable
        Parameters:
        identifier - identifier
      • getMethod

        public OperationMethods getMethod()
        Get the commonly known method type
        Returns:
        method type or null
      • hasMethod

        public boolean hasMethod()
        Is a commonly known method type
        Returns:
        true if has common method type
      • setMethod

        public void setMethod​(OperationMethods method)
        Set the commonly known method type
        Parameters:
        method - method type or null
      • updateMethod

        public void updateMethod()
        Update the commonly known method type using the name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object