Package com.helger.html.meta
Class MetaElementValue
- java.lang.Object
-
- com.helger.html.meta.MetaElementValue
-
- All Implemented Interfaces:
com.helger.commons.name.IHasName,IMetaElementValue,Serializable
@Immutable public class MetaElementValue extends Object implements IMetaElementValue
This class encapsulates a single MetaTag. It consists of a name, a locale and a value. If the meta tag is locale independent, the constantLocaleHelper.LOCALE_INDEPENDENTis used.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaElementValue(EMetaElementType eType, String sName, Locale aContentLocale, String sContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetContent()LocalegetContentLocale()StringgetName()EMetaElementTypegetType()inthashCode()StringtoString()
-
-
-
Method Detail
-
getType
@Nonnull public EMetaElementType getType()
- Specified by:
getTypein interfaceIMetaElementValue- Returns:
- The type of the meta element. Never
null.
-
getName
@Nonnull public String getName()
- Specified by:
getNamein interfacecom.helger.commons.name.IHasName
-
getContentLocale
@Nonnull public Locale getContentLocale()
- Specified by:
getContentLocalein interfaceIMetaElementValue- Returns:
- The specific locale of the meta tag. May be
null.
-
getContent
@Nonnull public String getContent()
- Specified by:
getContentin interfaceIMetaElementValue- Returns:
- The content of the meta tag. May not be
null.
-
-