Package com.helger.html.hc.html.metadata
Enum EHCLinkType
- java.lang.Object
-
- java.lang.Enum<EHCLinkType>
-
- com.helger.html.hc.html.metadata.EHCLinkType
-
- All Implemented Interfaces:
IHCHasHTMLAttributeValue,IHCLinkType,com.helger.xml.microdom.IHasAttributeValue,Serializable,Comparable<EHCLinkType>
public enum EHCLinkType extends Enum<EHCLinkType> implements IHCLinkType
The possible values of therelattribute of aHCLinkelement.
Source: http://de.selfhtml.org/html/kopfdaten/beziehungen.htm- Author:
- Philip Helger
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttrValue()static EHCLinkTypegetFromAttrValueOrNull(String sAttrValue)booleanisAllowedMoreThanOnce()static EHCLinkTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EHCLinkType[]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.hc.html.IHCHasHTMLAttributeValue
hasAttrValue
-
-
-
-
Enum Constant Detail
-
CONTENTS
public static final EHCLinkType CONTENTS
-
CHAPTER
public static final EHCLinkType CHAPTER
-
SECTION
public static final EHCLinkType SECTION
-
SUBSECTION
public static final EHCLinkType SUBSECTION
-
INDEX
public static final EHCLinkType INDEX
-
GLOSSARY
public static final EHCLinkType GLOSSARY
-
APPENDIX
public static final EHCLinkType APPENDIX
-
SEARCH
public static final EHCLinkType SEARCH
-
AUTHOR
public static final EHCLinkType AUTHOR
-
COPYRIGHT
public static final EHCLinkType COPYRIGHT
-
NEXT
public static final EHCLinkType NEXT
-
PREV
public static final EHCLinkType PREV
-
FIRST
public static final EHCLinkType FIRST
-
LAST
public static final EHCLinkType LAST
-
UP
public static final EHCLinkType UP
-
TOP
public static final EHCLinkType TOP
-
START
public static final EHCLinkType START
-
HELP
public static final EHCLinkType HELP
-
BOOKMARK
public static final EHCLinkType BOOKMARK
-
STYLESHEET
public static final EHCLinkType STYLESHEET
-
ALTERNATE
public static final EHCLinkType ALTERNATE
-
ALTERNATE_STYLESHEET
public static final EHCLinkType ALTERNATE_STYLESHEET
-
SHORTCUT_ICON
public static final EHCLinkType SHORTCUT_ICON
-
ICON
public static final EHCLinkType ICON
-
LICENSE
public static final EHCLinkType LICENSE
-
NOFOLLOW
public static final EHCLinkType NOFOLLOW
-
NOREFERRER
public static final EHCLinkType NOREFERRER
-
PREFETCH
public static final EHCLinkType PREFETCH
-
TAG
public static final EHCLinkType TAG
-
MANIFEST
public static final EHCLinkType MANIFEST
-
APPLE_TOUCH_ICON
public static final EHCLinkType APPLE_TOUCH_ICON
-
APPLE_TOUCH_ICON_PRECOMPOSED
public static final EHCLinkType APPLE_TOUCH_ICON_PRECOMPOSED
-
APPLE_TOUCH_STARTUP_IMAGE
public static final EHCLinkType APPLE_TOUCH_STARTUP_IMAGE
-
DC_SCHEMA
public static final EHCLinkType DC_SCHEMA
-
DC_SCHEMA_TERMS
public static final EHCLinkType DC_SCHEMA_TERMS
-
-
Method Detail
-
values
public static EHCLinkType[] 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 (EHCLinkType c : EHCLinkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHCLinkType 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
-
getAttrValue
@Nonnull @Nonempty public String getAttrValue()
- Specified by:
getAttrValuein interfacecom.helger.xml.microdom.IHasAttributeValue
-
isAllowedMoreThanOnce
public boolean isAllowedMoreThanOnce()
- Specified by:
isAllowedMoreThanOncein interfaceIHCLinkType- Returns:
trueif links of this type can occur more than once,falseif it may occur only once.
-
getFromAttrValueOrNull
@Nullable public static EHCLinkType getFromAttrValueOrNull(@Nullable String sAttrValue)
-
-