public class HTMLLinkContext extends LinkContext
LinkContext.SimpleLinkContext
Modifier and Type | Field and Description |
---|---|
static HTMLLinkContext |
A_HREF |
static HTMLLinkContext |
IMG_DATA_ORIGINAL |
static HTMLLinkContext |
IMG_DATA_ORIGINAL_SET |
static HTMLLinkContext |
IMG_DATA_SRC |
static HTMLLinkContext |
IMG_DATA_SRCSET |
static HTMLLinkContext |
IMG_SRC |
static HTMLLinkContext |
IMG_SRCSET |
static HTMLLinkContext |
META |
static HTMLLinkContext |
META_HREF |
static HTMLLinkContext |
SCRIPT_SRC |
static HTMLLinkContext |
SOURCE_DATA_ORIGINAL_SET |
static HTMLLinkContext |
SOURCE_SRCSET |
EMBED_MISC, INFERRED_MISC, JS_MISC, MANIFEST_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 IMG_SRCSET
public static final HTMLLinkContext SOURCE_SRCSET
public static final HTMLLinkContext IMG_DATA_SRC
public static final HTMLLinkContext IMG_DATA_SRCSET
public static final HTMLLinkContext IMG_DATA_ORIGINAL
public static final HTMLLinkContext IMG_DATA_ORIGINAL_SET
public static final HTMLLinkContext SOURCE_DATA_ORIGINAL_SET
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–2022 Internet Archive. All rights reserved.