Package com.oorian.html.elements.consts
Enum Class Relationship
- All Implemented Interfaces:
Serializable,Comparable<Relationship>,Constable
Enumeration defining the relationship types between the current document and linked resources.
This enum provides type-safe constants for the "rel" attribute used in link and anchor elements,
which describes the relationship between the current document and the linked resource.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProvides a link to an alternate representation of the document.Provides a link to a collection of archived documents.Provides a link to the author of the document.Provides a permanent link to the current section or document.Indicates the link references an external resource.Indicates the link to the first document in a series.Provides a link to help documentation.Specifies an icon representing the document.Indicates the link to the last document in a series.Provides a link to copyright or licensing information.Indicates the link to the next document in a series.Instructs search engines not to follow the link.Instructs the browser not to send an HTTP referrer header.Provides the address of a pingback server.Hints that the target resource should be cached.Indicates the link to the previous document in a series.Provides a link to a search tool for the document.Indicates the link should be shown in a sidebar.Imports an external stylesheet.Provides a tag or keyword for the current document.Indicates the link to a parent document in the hierarchy. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the relationship type value for use in HTML rel attribute.toString()static RelationshipReturns the enum constant of this class with the specified name.static Relationship[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALTERNATE
Provides a link to an alternate representation of the document. Used for alternate stylesheets, RSS feeds, or translations. -
ARCHIVES
Provides a link to a collection of archived documents. Used to reference historical versions or archives. -
AUTHOR
Provides a link to the author of the document. Used to reference the creator or author's contact information. -
BOOKMARK
Provides a permanent link to the current section or document. Used for permalink URLs that won't change over time. -
EXTERNAL
Indicates the link references an external resource. Used to mark links that navigate away from the current domain. -
FIRST
Indicates the link to the first document in a series. Used for navigation in a sequence of documents. -
HELP
Provides a link to help documentation. Used to reference context-sensitive help or documentation. -
ICON
Specifies an icon representing the document. Used for favicon or application icons. -
LAST
Indicates the link to the last document in a series. Used for navigation in a sequence of documents. -
LICENSE
Provides a link to copyright or licensing information. Used to reference legal terms or license agreements. -
NEXT
Indicates the link to the next document in a series. Used for sequential navigation or pagination. -
NOFOLLOW
Instructs search engines not to follow the link. Used to prevent passing PageRank or endorsement to the linked page. -
NOREFERRER
Instructs the browser not to send an HTTP referrer header. Used for privacy when navigating to external sites. -
PINGBACK
Provides the address of a pingback server. Used for blog pingback functionality. -
PREFETCH
Hints that the target resource should be cached. Used to prefetch resources that will likely be needed. -
PREV
Indicates the link to the previous document in a series. Used for sequential navigation or pagination. -
SEARCH
Provides a link to a search tool for the document. Used to reference search functionality. -
SIDEBAR
Indicates the link should be shown in a sidebar. Used for browser sidebar functionality. -
STYLESHEET
Imports an external stylesheet. Used to include CSS files for styling the document. -
TAG
Provides a tag or keyword for the current document. Used for categorization and tagging. -
UP
Indicates the link to a parent document in the hierarchy. Used for navigating up a document tree structure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
Gets the relationship type value for use in HTML rel attribute.- Returns:
- the string value used in HTML rel attribute.
-
toString
- Overrides:
toStringin classEnum<Relationship>
-