Class Rel
java.lang.Object
com.webfirmframework.wffweb.tag.core.AbstractTagBase
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractValueSetAttribute
com.webfirmframework.wffweb.tag.html.attribute.Rel
- All Implemented Interfaces:
TagBase
,AAttributable
,AreaAttributable
,LinkAttributable
,Serializable
,Cloneable
public class Rel
extends AbstractValueSetAttribute
implements AAttributable, AreaAttributable, LinkAttributable
For anchors containing the href attribute, this attribute specifies the
relationship of the target object to the link object. The value is a
space-separated list of link types values. The values and their semantics
will be registered by some authority that might have meaning to the document
author. The default relationship, if no other is given, is void. Use this
attribute only if the href attribute is present.
rel
attribute
for the element.- Since:
- 1.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Links to an alternate version of the document (i.e.static final String
Links to the author of the documentstatic final String
Permanent URL used for bookmarkingstatic final String
Represents the browser should preemptively perform DNS resolution for the target resource's origin.static final String
Represents that the referenced document is from an external sitestatic final String
Links to a help documentstatic final String
icon url to be used in href attributestatic final String
Links to copyright information for the documentstatic final String
The next document in a selectionstatic final String
Links to an unendorsed document, like a paid link.static final String
Specifies that the browsing context created by its related url must not have an opener browsing context.static final String
Specifies that the browser should not send a HTTP referer header if the user follows the hyperlinkstatic final String
gives pingback server address which handles the pingback to the current document.static final String
preemptively connects to the target resource's origin.static final String
Specifies that the target document should be cachedstatic final String
preloads the resource from href attribute as the attribute value given in as attributestatic final String
The previous document in a selectionstatic final String
Links to a search tool for the documentstatic final String
Specifies that the related tag is for style sheet.static final String
A tag (keyword) for the current document -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds the value to the lastvoid
addValues
(Collection<String> values) adds the values to the lastgetValue()
gets the value of this attributeprotected void
init()
invokes only once per objectvoid
removeValue
(String value) removes the valuevoid
removeValues
(Collection<String> values) removes the valuesvoid
void
sets the value for this attributeMethods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractValueSetAttribute
addAllToAttributeValueSet, contains, containsAll, getAttributeValue, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeValue, setAttributeValue
Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
addAllToAttributeValueMap, addAllToAttributeValueSet, addAllToAttributeValueSet, addToAttributeValueMap, addToAttributeValueSet, addValueChangeListener, beforePrintStructure, beforePrintStructureCompressedByIndex, beforeWffPrintStructure, getAttributeName, getAttributeValueMap, getAttributeValueSet, getBinaryStructureCompressedByIndex, getBinaryStructureCompressedByIndex, getCharset, getOwnerTag, getOwnerTags, getPrintStructure, getPrintStructure, getReadLocks, getValueChangeListeners, getWffPrintStructure, getWriteLocks, lockAndGetReadLocks, lockAndGetReadLocksWithAttrLock, lockAndGetWriteLocks, lockAndGetWriteLocksWithAttrLock, removeAllFromAttributeValueMap, removeAllFromAttributeValueSet, removeAllFromAttributeValueSet, removeFromAttributeValueMap, removeFromAttributeValueMap, removeFromAttributeValueMapByKeys, removeFromAttributeValueSet, removeValueChangeListener, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeName, setAttributeValueMap, setAttributeValueSet, setCharset, setModified, setModifiedLockless, setOwnerTag, setPreIndexedAttribute, toCompressedBytesByIndex, toCompressedBytesByIndex, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString, toWffString, unsetOwnerTag
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setRebuild
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.webfirmframework.wffweb.tag.core.TagBase
toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString
-
Field Details
-
ALTERNATE
Links to an alternate version of the document (i.e. print page, translated or mirror)- See Also:
-
AUTHOR
Links to the author of the document- See Also:
-
BOOKMARK
Permanent URL used for bookmarking- See Also:
-
HELP
Links to a help document- See Also:
-
LICENSE
Links to copyright information for the document- See Also:
-
NEXT
The next document in a selection- See Also:
-
NOFOLLOW
Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)- See Also:
-
NOREFERRER
Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink- See Also:
-
NOOPENER
Specifies that the browsing context created by its related url must not have an opener browsing context.- See Also:
-
PREFETCH
Specifies that the target document should be cached- See Also:
-
PREV
The previous document in a selection- See Also:
-
SEARCH
Links to a search tool for the document- See Also:
-
TAG
A tag (keyword) for the current document- See Also:
-
STYLESHEET
Specifies that the related tag is for style sheet.- See Also:
-
PRELOAD
preloads the resource from href attribute as the attribute value given in as attribute- See Also:
-
PRECONNECT
preemptively connects to the target resource's origin.- See Also:
-
PINGBACK
gives pingback server address which handles the pingback to the current document.- See Also:
-
ICON
icon url to be used in href attribute- See Also:
-
DNS_PREFETCH
Represents the browser should preemptively perform DNS resolution for the target resource's origin.- See Also:
-
EXTERNAL
Represents that the referenced document is from an external site- See Also:
-
-
Constructor Details
-
Rel
- Parameters:
value
- the value for the attribute. If there are multiple values it can be separated by space.- Since:
- 1.0.0
-
Rel
- Parameters:
values
- the values for the attribute. If there are multiple values it can be separated by space.- Since:
- 1.0.0
-
-
Method Details
-
setValue
sets the value for this attribute- Parameters:
value
- the value for the attribute.- Since:
- 1.0.0
-
getValue
gets the value of this attribute- Returns:
- the value of the attribute
- Since:
- 1.0.0
-
getValueSet
- Returns:
- a new copy of set of values
- Since:
- 2.1.15
-
removeValue
removes the value- Parameters:
value
-- Since:
- 2.1.15
-
removeValues
removes the values- Parameters:
values
-- Since:
- 2.1.15
-
addValues
adds the values to the last- Parameters:
values
-- Since:
- 2.1.15
-
addValue
adds the value to the last- Parameters:
value
-- Since:
- 2.1.15
-
init
protected void init()invokes only once per object- Since:
- 1.0.0
-
setValue
-