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() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string.
|
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 |
getName()
Returns the value of the name property of this link.
|
String |
getPathname()
Returns the pathname portion of the link's URL.
|
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 |
getRel()
Returns the value of the rel property.
|
String |
getRev()
Returns the value of the rev property.
|
String |
getSearch()
Returns the search portion of the link's URL (the portion starting with
'?' and up to but not including any '#').
|
String |
getTarget()
Returns the value of the target property of this link.
|
String |
getText()
Returns the text 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 |
setName(String name)
Sets the name property.
|
void |
setPathname(String pathname)
Sets the pathname portion of the link's URL.
|
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 '?'
and up to but not including any '#')..
|
void |
setTarget(String target)
Sets the target property of this link.
|
void |
setText(String text)
Sets the text attribute.
|
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, createEventHandler, createTextRange, dispatchEvent, doComponentRequest, doScroll, fixAttributeName, focus, get, getAccessKey, getAlign, getAll, getAttributeNode, getAttributeNodeNS, getAvailHeight, getAvailWidth, getBoundingClientRect, getBoxObject, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getDataset, getDefaultStyleDisplay, getDir, getDisabled, getDocument, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getFilters, getHeight, getId, getInnerHTML, getInnerText, 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, isAttributeName, isComponentInstalled, isEndTagForbidden, isHomePage, isLowerCaseInOuterHtml, mergeAttributes, navigateHomePage, parseHtmlSnippet, querySelector, querySelectorAll, readAttributes, removeAttributeNode, removeBehavior, removeExpression, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCh, setChOff, setClassName, setColorAttribute, 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, 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, setOnresizeaddEventListener, appendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, executeEvent, fireEvent, fireEvent, getBaseName, getChildNodes, getEventHandler, getEventHandlerProp, getFirstChild, getJavaScriptNode, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, getXml, hasChildNodes, hasEventHandlers, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, removeEventListener, replaceChild, setEventHandler, setEventHandlerProp, setNodeValueclone, defineFunctionProperties, defineProperty, equivalentValues, getBrowserVersion, getClassName, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, 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, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, 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, 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 attributeCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.