Package com.helger.html.meta
Enum EDublinCoreMetaElement
- java.lang.Object
-
- java.lang.Enum<EDublinCoreMetaElement>
-
- com.helger.html.meta.EDublinCoreMetaElement
-
- All Implemented Interfaces:
com.helger.commons.name.IHasName,IMetaElementDeclaration,Serializable,Comparable<EDublinCoreMetaElement>
public enum EDublinCoreMetaElement extends Enum<EDublinCoreMetaElement> implements IMetaElementDeclaration
An enumeration with all DublinCore meta tag names.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTRIBUTORCOVERAGECREATORDATEDESCRIPTIONFORMATIDENTIFIERLANGUAGEPUBLISHERRELATIONRIGHTSSOURCESUBJECTTITLETYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EDublinCoreMetaElementgetDCMetaTag(String sTagName)Check if a tag is a DublinCore tag.StringgetName()Get the meta tag name.StringgetScheme()Get the corresponding scheme of the meta tag.EMetaElementTypegetType()static booleanisDCMetaTag(String sTagName)static EDublinCoreMetaElementvalueOf(String name)Returns the enum constant of this type with the specified name.static EDublinCoreMetaElement[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.html.meta.IMetaElementDeclaration
isHttpEquiv
-
-
-
-
Enum Constant Detail
-
TITLE
public static final EDublinCoreMetaElement TITLE
-
CREATOR
public static final EDublinCoreMetaElement CREATOR
-
SUBJECT
public static final EDublinCoreMetaElement SUBJECT
-
DESCRIPTION
public static final EDublinCoreMetaElement DESCRIPTION
-
PUBLISHER
public static final EDublinCoreMetaElement PUBLISHER
-
CONTRIBUTOR
public static final EDublinCoreMetaElement CONTRIBUTOR
-
DATE
public static final EDublinCoreMetaElement DATE
-
TYPE
public static final EDublinCoreMetaElement TYPE
-
FORMAT
public static final EDublinCoreMetaElement FORMAT
-
IDENTIFIER
public static final EDublinCoreMetaElement IDENTIFIER
-
SOURCE
public static final EDublinCoreMetaElement SOURCE
-
LANGUAGE
public static final EDublinCoreMetaElement LANGUAGE
-
RELATION
public static final EDublinCoreMetaElement RELATION
-
COVERAGE
public static final EDublinCoreMetaElement COVERAGE
-
RIGHTS
public static final EDublinCoreMetaElement RIGHTS
-
-
Method Detail
-
values
public static EDublinCoreMetaElement[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EDublinCoreMetaElement c : EDublinCoreMetaElement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDublinCoreMetaElement valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
@Nonnull @Nonempty public String getName()
Get the meta tag name.- Specified by:
getNamein interfacecom.helger.commons.name.IHasName- Returns:
- the meta tag name
-
getScheme
@Nullable public String getScheme()
Get the corresponding scheme of the meta tag.- Specified by:
getSchemein interfaceIMetaElementDeclaration- Returns:
nullif the meta tag has no scheme
-
getType
@Nonnull public EMetaElementType getType()
- Specified by:
getTypein interfaceIMetaElementDeclaration- Returns:
- The meta element type. Never
null.
-
getDCMetaTag
@Nullable public static EDublinCoreMetaElement getDCMetaTag(@Nullable String sTagName)
Check if a tag is a DublinCore tag.- Parameters:
sTagName- the tag name to check- Returns:
- null if the tag name is not a DublinCore meta tag
-
-