Package io.wcm.handler.commons.dom
Class Anchor
- java.lang.Object
-
- org.jdom2.Content
-
- org.jdom2.Element
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.jdom2.NamespaceAware,org.jdom2.Parent
@ProviderType public final class Anchor extends AbstractNonSelfClosingHtmlElement<Anchor>
Html anchor (a) element.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessKey()Html "accesskey" attribute.java.lang.StringgetHRef()Html "href" attribute.java.lang.StringgetRel()Html "rel" attribute.intgetTabIndex()Html "tabindex" attribute.java.lang.StringgetTarget()Html "target" attribute.AnchorsetAccessKey(java.lang.String value)Html "accesskey" attribute.AnchorsetHRef(java.lang.String value)Html "href" attribute.AnchorsetRel(java.lang.String value)Html "rel" attribute.AnchorsetTabIndex(int value)Html "tabindex" attribute.AnchorsetTarget(java.lang.String value)Html "target" attribute.-
Methods inherited from class io.wcm.handler.commons.dom.HtmlElement
add, addCssClass, getCssClass, getData, getEmptyAttributeValueAsBoolean, getId, getStyle, getStyles, getStyleString, getTitle, setCssClass, setData, setEmptyAttributeValueAsBoolean, setId, setStyle, setStyleString, setTitle
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractHtmlElementFactory
create, createAnchor, createAnchor, createAnchor, createAudio, createComment, createDiv, createFigCaption, createFigure, createImage, createImage, createImage, createImage, createImage, createNoScript, createScript, createScript, createSource, createSpan, createSpan, createVideo
-
Methods inherited from class io.wcm.handler.commons.dom.AbstractElement
add, addContent, addContent, addContent, addContent, addContent, getAttributeValueAsInteger, getAttributeValueAsLong, setAttribute, setAttribute, setAttributeValueAsInteger, setAttributeValueAsLong, setName, setText, toString, toStringContentOnly
-
Methods inherited from class org.jdom2.Element
addNamespaceDeclaration, canContainContent, clone, cloneContent, coalesceText, detach, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributesSize, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespacesInherited, getNamespacesInScope, getNamespacesIntroduced, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, getXMLBaseURI, hasAdditionalNamespaces, hasAttributes, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setNamespace, sortAttributes, sortChildren, sortContent, sortContent
-
Methods inherited from class org.jdom2.Content
equals, getCType, getDocument, getParent, getParentElement, hashCode, setParent
-
-
-
-
Constructor Detail
-
Anchor
public Anchor()
Initializes html element.
-
Anchor
public Anchor(java.lang.String href)
Initializes html element.- Parameters:
href- Html "href" attribute.
-
Anchor
public Anchor(java.lang.String href, java.lang.String target)Initializes html element.- Parameters:
href- Html "href" attribute.target- Html "target" attribute.
-
-
Method Detail
-
getRel
public java.lang.String getRel()
Html "rel" attribute.- Returns:
- Value of attribute
-
setRel
public Anchor setRel(java.lang.String value)
Html "rel" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getHRef
public java.lang.String getHRef()
Html "href" attribute.- Returns:
- Value of attribute
-
setHRef
public Anchor setHRef(java.lang.String value)
Html "href" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getTarget
public java.lang.String getTarget()
Html "target" attribute.- Returns:
- Value of attribute
-
setTarget
public Anchor setTarget(java.lang.String value)
Html "target" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getTabIndex
public int getTabIndex()
Html "tabindex" attribute.- Returns:
- Value of attribute
-
setTabIndex
public Anchor setTabIndex(int value)
Html "tabindex" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
getAccessKey
public java.lang.String getAccessKey()
Html "accesskey" attribute.- Returns:
- Value of attribute
-
setAccessKey
public Anchor setAccessKey(java.lang.String value)
Html "accesskey" attribute.- Parameters:
value- Value of attribute- Returns:
- Self reference
-
-