public class HTMLAnchorElement extends HTMLElement
HTMLElement.ProxyDomNodeBEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGEATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
HTMLAnchorElement()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Returns the
charset attribute. |
String |
getCoords()
Returns the
coords attribute. |
String |
getDataFld()
Returns the
dataFld attribute. |
String |
getDataFormatAs()
Returns the
dataFormatAs attribute. |
String |
getDataSrc()
Returns the
dataSrc attribute. |
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string.
|
String |
getDownload()
Returns the
download attribute. |
String |
getHash()
Returns the hash portion of the link's URL (the portion following the '#', including the '#').
|
String |
getHost()
Returns the host portion of the link's URL (the '[hostname]:[port]' portion).
|
String |
getHostname()
Returns the hostname portion of the link's URL.
|
String |
getHref()
Returns the value of this link's href property.
|
String |
getHreflang()
Returns the
hreflang attribute. |
String |
getMethods()
Returns the
Methods attribute. |
String |
getMimeType()
Returns the
mimeType attribute. |
String |
getName()
Returns the value of the name property of this link.
|
String |
getNameProp()
Returns the
nameProp attribute. |
String |
getOrigin()
Returns the
origin attribute. |
String |
getPassword()
Returns the
password attribute. |
String |
getPathname()
Returns the pathname portion of the link's URL.
|
String |
getPing()
Returns the
ping attribute. |
String |
getPort()
Returns the port portion of the link's URL.
|
String |
getProtocol()
Returns the protocol portion of the link's URL, including the trailing ':'.
|
String |
getProtocolLong()
Returns the
protocolLong attribute. |
String |
getRel()
Returns the value of the rel property.
|
DOMTokenList |
getRelList()
Returns the
relList attribute. |
String |
getRev()
Returns the value of the rev property.
|
String |
getSearch()
Returns the search portion of the link's URL (the portion starting with
'?'
|
String |
getSearchParams()
Returns the
searchParams attribute. |
String |
getShape()
Returns the
shape attribute. |
String |
getTarget()
Returns the value of the target property of this link.
|
String |
getText()
Returns the text attribute.
|
String |
getType()
Returns the
type attribute. |
String |
getTypeOf() |
String |
getUrn()
Returns the
urn attribute. |
String |
getUsername()
Returns the
username attribute. |
void |
setCharset(String charset)
Sets the
charset attribute. |
void |
setCoords(String coords)
Sets the
coords attribute. |
void |
setDataFld(String dataFld)
Sets the
dataFld attribute. |
void |
setDataFormatAs(String dataFormatAs)
Sets the
dataFormatAs attribute. |
void |
setDataSrc(String dataSrc)
Sets the
dataSrc attribute. |
void |
setDownload(String download)
Sets the
download attribute. |
void |
setHash(String hash)
Sets the hash portion of the link's URL (the portion following the '#').
|
void |
setHost(String host)
Sets the host portion of the link's URL (the '[hostname]:[port]' portion).
|
void |
setHostname(String hostname)
Sets the hostname portion of the link's URL.
|
void |
setHref(String href)
Sets the href property.
|
void |
setHreflang(String hreflang)
Sets the
hreflang attribute. |
void |
setMethods(String methods)
Sets the
Methods attribute. |
void |
setMimeType(String mimeType)
Sets the
mimeType attribute. |
void |
setName(String name)
Sets the name property.
|
void |
setPassword(String password)
Sets the
password attribute. |
void |
setPathname(String pathname)
Sets the pathname portion of the link's URL.
|
void |
setPing(String ping)
Sets the
ping attribute. |
void |
setPort(String port)
Sets the port portion of the link's URL.
|
void |
setProtocol(String protocol)
Sets the protocol portion of the link's URL.
|
void |
setRel(String rel)
Sets the rel property.
|
void |
setRev(String rel)
Sets the rev property.
|
void |
setSearch(String search)
Sets the search portion of the link's URL (the portion starting with '?'
|
void |
setSearchParams(URLSearchParams searchParams)
Sets the
searchParams attribute. |
void |
setShape(String shape)
Sets the
shape attribute. |
void |
setTarget(String target)
Sets the target property of this link.
|
void |
setText(String text)
Sets the text attribute.
|
void |
setType(String type)
Sets the
type attribute. |
void |
setUrn(String urn)
Sets the
urn attribute. |
void |
setUsername(String username)
Sets the
username attribute. |
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createTextRange, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getContentEditable, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, getIsContentEditable, getJavaEnabled, getLang, getLanguage, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnchange, getOnsubmit, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getScopeName, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSpellcheck, getSystemLanguage, getTabIndex, getTagUrn, getTitle, getUniqueID, getUserLanguage, getVAlign, getWidth, getWidthOrHeight, getWithFallback, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, querySelector, querySelectorAll, readAttributes, releaseCapture, removeAttributeNode, removeBehavior, removeExpression, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setExpression, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setOnchange, setOnsubmit, setOuterHTML, setScrollLeft, setScrollTop, setSpellcheck, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setWidthOrHeight, startDownload, toStringcreateAttributesObject, createEventHandler, getAttribute, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getCurrentStyle, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getPreviousElementSibling, getRuntimeStyle, getStyle, getTagName, hasAttributeNS, removeAttribute, removeAttributeNS, selectNodes, selectSingleNode, setAttributeNode, setAttributeNS, setDefaultsfireEvent, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnpropertychange, getOnresize, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnpropertychange, setOnresizeappendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, getBaseName, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValueaddEventListener, clearEventListenersContainer, dispatchEvent, executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerPropclone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setHtmlElement, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic void setHref(String href)
href - the href property valuepublic String getHref()
public void setName(String name)
name - name attribute valuepublic String getName()
public void setTarget(String target)
target - target attribute valuepublic String getTarget()
public void setRel(String rel)
rel - rel attribute valuepublic String getRel()
public void setRev(String rel)
rel - rev attribute valuepublic String getRev()
public String getSearch() throws Exception
Exception - if an error occurspublic void setSearch(String search) throws Exception
search - the new search portion of the link's URLException - if an error occurspublic String getHash() throws Exception
Exception - if an error occurspublic void setHash(String hash) throws Exception
hash - the new hash portion of the link's URLException - if an error occurspublic String getHost() throws Exception
Exception - if an error occurspublic void setHost(String host) throws Exception
host - the new host portion of the link's URLException - if an error occurspublic String getHostname() throws Exception
Exception - if an error occurspublic void setHostname(String hostname) throws Exception
hostname - the new hostname portion of the link's URLException - if an error occurspublic String getPathname() throws Exception
Exception - if an error occurspublic void setPathname(String pathname) throws Exception
pathname - the new pathname portion of the link's URLException - if an error occurspublic String getPort() throws Exception
Exception - if an error occurspublic void setPort(String port) throws Exception
port - the new port portion of the link's URLException - if an error occurspublic String getProtocol() throws Exception
Exception - if an error occurspublic void setProtocol(String protocol) throws Exception
protocol - the new protocol portion of the link's URLException - if an error occurspublic Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - the type hintSimpleScriptable.getDefaultValue(java.lang.Class)public String getText()
public void setText(String text)
text - the text attributepublic String getTypeOf()
getTypeOf in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectpublic String getCharset()
charset attribute.charset attributepublic void setCharset(String charset)
charset attribute.charset - the charset attributepublic String getCoords()
coords attribute.coords attributepublic void setCoords(String coords)
coords attribute.coords - coords attributepublic String getHreflang()
hreflang attribute.hreflang attributepublic void setHreflang(String hreflang)
hreflang attribute.hreflang - hreflang attributepublic String getOrigin()
origin attribute.origin attributepublic String getUsername()
username attribute.username attributepublic void setUsername(String username)
username attribute.username - username attributepublic String getPassword()
password attribute.password attributepublic void setPassword(String password)
password attribute.password - password attributepublic String getDownload()
download attribute.download attributepublic void setDownload(String download)
download attribute.download - download attributepublic String getPing()
ping attribute.ping attributepublic void setPing(String ping)
ping attribute.ping - ping attributepublic String getShape()
shape attribute.shape attributepublic void setShape(String shape)
shape attribute.shape - shape attributepublic String getType()
type attribute.type attributepublic void setType(String type)
type attribute.type - type attributepublic DOMTokenList getRelList()
relList attribute.relList attributepublic String getSearchParams()
searchParams attribute.searchParams attributepublic void setSearchParams(URLSearchParams searchParams)
searchParams attribute.searchParams - searchParams attributepublic String getProtocolLong()
protocolLong attribute.protocolLong attributepublic String getMethods()
Methods attribute.Methods attributepublic void setMethods(String methods)
Methods attribute.methods - Methods attributepublic String getMimeType()
mimeType attribute.mimeType attributepublic void setMimeType(String mimeType)
mimeType attribute.mimeType - mimeType attributepublic String getNameProp()
nameProp attribute.nameProp attributepublic String getUrn()
urn attribute.urn attributepublic void setUrn(String urn)
urn attribute.urn - urn attributepublic String getDataFld()
dataFld attribute.dataFld attributepublic void setDataFld(String dataFld)
dataFld attribute.dataFld - dataFld attributepublic String getDataFormatAs()
dataFormatAs attribute.dataFormatAs attributepublic void setDataFormatAs(String dataFormatAs)
dataFormatAs attribute.dataFormatAs - dataFormatAs attributepublic String getDataSrc()
dataSrc attribute.dataSrc attributepublic void setDataSrc(String dataSrc)
dataSrc attribute.dataSrc - dataSrc attributeCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.