public class HTMLLinkContext extends LinkContext
LinkContext.SimpleLinkContext
Modifier and Type | Field and Description |
---|---|
static HTMLLinkContext |
A_HREF |
static HTMLLinkContext |
IMG_SRC |
static HTMLLinkContext |
META |
static HTMLLinkContext |
META_HREF |
static HTMLLinkContext |
SCRIPT_SRC |
EMBED_MISC, INFERRED_MISC, JS_MISC, NAVLINK_MISC, PREREQ_MISC, SPECULATIVE_MISC
Modifier | Constructor and Description |
---|---|
protected |
HTMLLinkContext(CharSequence element,
CharSequence attribute) |
protected |
HTMLLinkContext(String path)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static HTMLLinkContext |
get(CharSequence el,
CharSequence attr)
return an instance of HTMLLinkContext for attribute
attr in
element el . |
static HTMLLinkContext |
get(String path)
return an instance of HTMLLinkContext for path
path . |
String |
toString() |
equals, hashCode
public static final HTMLLinkContext META
public static final HTMLLinkContext A_HREF
public static final HTMLLinkContext IMG_SRC
public static final HTMLLinkContext SCRIPT_SRC
public static final HTMLLinkContext META_HREF
protected HTMLLinkContext(String path)
path
- an XPath-like context, eg "A\@HREF"protected HTMLLinkContext(CharSequence element, CharSequence attribute)
public static HTMLLinkContext get(CharSequence el, CharSequence attr)
attr
in
element el
. returns pre-allocated shared instance for common case,
or new instance for others.el
- element nameattr
- attribute namepublic static HTMLLinkContext get(String path)
path
.
returns pre-allocated shared instance for common case, or new instance for others.
TODO: most code calling this method builds path by concatenating element name
and attribute name. consider changing such code to call get(CharSequence, CharSequence)
instead.
path
- element and attribute in XLink-like path notationCopyright © 2003-2014 Internet Archive. All Rights Reserved.