Class MethodDefinition.BuilderBase<B extends MethodDefinition.BuilderBase<B>>

    • Method Detail

      • withObjectType

        public B withObjectType​(String objectType)
        Adds method object types.
        Parameters:
        objectType - object type to add, must not be null
        Returns:
        this builder, never null
      • withObjectTypes

        public B withObjectTypes​(Iterable<String> objectTypes)
        Replaces method's object types.
        Parameters:
        objectTypes - object types, may be null
        Returns:
        this builder, never null
      • withDisplayName

        public B withDisplayName​(String displayName)
        Updates method display name.
        Parameters:
        displayName - method display name, may be null
        Returns:
        this builder, never null
      • withDescription

        public B withDescription​(String description)
        Updates method description.
        Parameters:
        description - method description, may be null
        Returns:
        this builder, never null
      • withAccepts

        public B withAccepts​(String accepts)
        Updates accepted arguments signature.
        Parameters:
        accepts - accepted arguments signature
        Returns:
        this builder, never null
        Since:
        1.2
      • withReturns

        public B withReturns​(String returns)
        Updates returned result signature.
        Parameters:
        returns - returned result signature
        Returns:
        this builder, never null
        Since:
        1.2
      • withSignature

        public B withSignature​(String accepts,
                               String returns)
        Updates accepted arguments and returned result signatures.
        Parameters:
        accepts - accepted arguments signature
        returns - returned result signature
        Returns:
        this builder
        Since:
        1.2
      • withMetadata

        public <T> B withMetadata​(String key,
                                  T value)
        Adds metadata key-value pair.
        Type Parameters:
        T - type of the metadata value
        Parameters:
        key - metadata key, must not be null
        value - metadata value, must not be code
        Returns:
        this builder, never null
        Since:
        1.4.3
      • withMetadata

        public B withMetadata​(Map<String,​Object> metadata)
        Replaces the metadata key-value pairs.
        Parameters:
        metadata - the metdata key-value pairs, may be null
        Returns:
        this builder
        Since:
        1.4.3