Interface TemplateManager

    • Method Detail

      • reset

        @Nonnull
        TemplateManager reset​(long fields)
        Resets the fields specified by the provided bit-flag pattern. You can specify a combination by using a bitwise OR concat of the flag constants.
        Example: manager.reset(TemplateManager.NAME | TemplateManager.DESCRIPTION);

        Flag Constants:

        Specified by:
        reset in interface Manager<TemplateManager>
        Parameters:
        fields - Integer value containing the flags to reset.
        Returns:
        TemplateManager for chaining convenience
      • reset

        @Nonnull
        TemplateManager reset​(long... fields)
        Resets the fields specified by the provided bit-flag patterns.
        Example: manager.reset(TemplateManager.NAME, TemplateManager.DESCRIPTION);

        Flag Constants:

        Specified by:
        reset in interface Manager<TemplateManager>
        Parameters:
        fields - Integer values containing the flags to reset.
        Returns:
        TemplateManager for chaining convenience
      • setName

        @Nonnull
        @CheckReturnValue
        TemplateManager setName​(@Nonnull
                                java.lang.String name)
        Sets the name of this Template.
        Parameters:
        name - The new name for this Template
        Returns:
        TemplateManager for chaining convenience
        Throws:
        java.lang.IllegalArgumentException - If the provided name is null or not between 1-100 characters long
      • setDescription

        @Nonnull
        @CheckReturnValue
        TemplateManager setDescription​(@Nullable
                                       java.lang.String description)
        Sets the description of this Template.
        Parameters:
        description - The new description for this Template
        Returns:
        TemplateManager for chaining convenience
        Throws:
        java.lang.IllegalArgumentException - If the provided description is not between 0-120 characters long