Package com.helger.html.meta
Interface IMutableMetaElement
-
- All Superinterfaces:
com.helger.commons.name.IHasName,IMetaElement,IMetaElementDeclaration,Serializable
- All Known Implementing Classes:
MetaElement
@MustImplementEqualsAndHashcode public interface IMutableMetaElement extends IMetaElement
Represents a single meta element- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default com.helger.commons.state.EChangeremoveContent()Remove the content in the unspecified locale.com.helger.commons.state.EChangeremoveContent(Locale aContentLocale)Remove the value of the given locale.default com.helger.commons.state.EChangesetContent(String sContent)Set the value of the meta element in an unspecified locale.com.helger.commons.state.EChangesetContent(Locale aContentLocale, String sContent)Set the value of the meta element in the given locale.com.helger.commons.state.EChangesetName(String sName)Set the name of the meta element.com.helger.commons.state.EChangesetType(EMetaElementType eType)Set the type of the meta element.-
Methods inherited from interface com.helger.html.meta.IMetaElement
convertToNode, getAllLocales, getAsMetaElementValueList, getContent, getContentLanguageIndependent, getContentMap, isLanguageIndependent
-
Methods inherited from interface com.helger.html.meta.IMetaElementDeclaration
getScheme, getType, isHttpEquiv
-
-
-
-
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 benull.- Returns:
EChange
-
setName
@Nonnull com.helger.commons.state.EChange setName(@Nonnull String sName)
Set the name of the meta element. May usually neither benullnor empty, except forEMetaElementType.CHARSETwhere the name does not matter.- Parameters:
sName- The name to use. May not benull.- 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 isnullthe 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 benull.sContent- The value to be set. If the content isnullthe value is removed.- Returns:
EChange
-
removeContent
@Nonnull default com.helger.commons.state.EChange removeContent()
Remove the content in the unspecified locale.- Returns:
EChange
-
-