Interface IMutableMetaElement

    • Method Detail

      • setType

        @Nonnull
        com.helger.commons.state.EChange setType​(@Nonnull
                                                 EMetaElementType eType)
        Set the type of the meta element.
        Parameters:
        eType - The type to use. May not be null.
        Returns:
        EChange
      • setName

        @Nonnull
        com.helger.commons.state.EChange setName​(@Nonnull
                                                 String sName)
        Set the name of the meta element. May usually neither be null nor empty, except for EMetaElementType.CHARSET where the name does not matter.
        Parameters:
        sName - The name to use. May not be null.
        Returns:
        EChange.
      • setContent

        @Nonnull
        default com.helger.commons.state.EChange setContent​(@Nullable
                                                            String sContent)
        Set the value of the meta element in an unspecified locale.
        Parameters:
        sContent - The value to be set. If the content is null the value is removed.
        Returns:
        EChange
      • setContent

        @Nonnull
        com.helger.commons.state.EChange setContent​(@Nullable
                                                    Locale aContentLocale,
                                                    @Nullable
                                                    String sContent)
        Set the value of the meta element in the given locale.
        Parameters:
        aContentLocale - The locale to set. May be null.
        sContent - The value to be set. If the content is null the value is removed.
        Returns:
        EChange
      • removeContent

        @Nonnull
        default com.helger.commons.state.EChange removeContent()
        Remove the content in the unspecified locale.
        Returns:
        EChange
      • removeContent

        @Nonnull
        com.helger.commons.state.EChange removeContent​(Locale aContentLocale)
        Remove the value of the given locale.
        Parameters:
        aContentLocale - The locale to be removed. May not be null.
        Returns:
        EChange