Package com.helger.html.meta
Interface IMetaElement
-
- All Superinterfaces:
com.helger.commons.name.IHasName,IMetaElementDeclaration,Serializable
- All Known Subinterfaces:
IMutableMetaElement
- All Known Implementing Classes:
MetaElement
@MustImplementEqualsAndHashcode public interface IMetaElement extends IMetaElementDeclaration
Represents a single meta element- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.helger.xml.microdom.IMicroNodeconvertToNode(IHCConversionSettingsToNode aConversionSettings)Convert this meta element to anIMicroNodecom.helger.commons.collection.impl.ICommonsOrderedSet<Locale>getAllLocales()com.helger.commons.collection.impl.ICommonsList<IMetaElementValue>getAsMetaElementValueList()Get the contents of this meta tag as a self contained list of meta tag values.Iterable<Map.Entry<Locale,String>>getContent()StringgetContentLanguageIndependent()com.helger.commons.collection.impl.ICommonsOrderedMap<Locale,String>getContentMap()booleanisLanguageIndependent()Check if the meta tag is language independent.-
Methods inherited from interface com.helger.html.meta.IMetaElementDeclaration
getScheme, getType, isHttpEquiv
-
-
-
-
Method Detail
-
isLanguageIndependent
boolean isLanguageIndependent()
Check if the meta tag is language independent.- Returns:
trueif the meta tag is language independent,falseif it is not
-
getAllLocales
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsOrderedSet<Locale> getAllLocales()
- Returns:
- A set with all locales a value is present
-
getContentLanguageIndependent
@Nullable String getContentLanguageIndependent()
- Returns:
- The content which was specified locale independent.
-
getContentMap
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsOrderedMap<Locale,String> getContentMap()
- Returns:
- A non-
nullmap from language to value.
-
getContent
@Nonnull Iterable<Map.Entry<Locale,String>> getContent()
- Returns:
- A non-
nullmap from language to value.
-
getAsMetaElementValueList
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IMetaElementValue> getAsMetaElementValueList()
Get the contents of this meta tag as a self contained list of meta tag values.- Returns:
- A non-
nullmodifiable list of meta tags.
-
convertToNode
@Nullable com.helger.xml.microdom.IMicroNode convertToNode(@Nonnull IHCConversionSettingsToNode aConversionSettings)
Convert this meta element to anIMicroNode- Parameters:
aConversionSettings- The conversion settings to be used. May not benull.- Returns:
nullif this meta element contains no content.
-
-