Class Anchor
java.lang.Object
io.john.amiscaray.stir.domain.elements.CacheableElement
io.john.amiscaray.stir.domain.elements.AbstractUIElement
io.john.amiscaray.stir.domain.elements.Anchor
public class Anchor extends AbstractUIElement
A pojo representing an HTML anchor tag
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Anchor.AnchorBuilder
Nested classes/interfaces inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
CacheableElement.CacheStatus
-
Field Summary
Fields Modifier and Type Field Description private String
download
The download attribute of the anchor tagprivate String
href
The href the anchor tag points toprivate String
hrefLang
The hrefLang attribute of the anchor tagprivate String
label
The inner content of the anchor tagprivate String
media
The media attribute of the anchor tagprivate String
ping
The ping attribute of the anchor tagprivate String
referrerPolicy
The referrerPolicy attribute of the anchor tagprivate String
rel
The rel attribute of the anchor tagprivate String
target
The target attribute of the anchor tagprivate String
type
The type attribute of the anchor tagFields inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
cssClasses, customAttributes, hidden, id, style
Fields inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
cacheDisabled, cacheStatus, propertyChangeSupport
-
Constructor Summary
Constructors Constructor Description Anchor(String label, String href)
Anchor(String label, String href, String download, String hrefLang, String ping, String referrerPolicy, String rel, String target, String type)
Deprecated.This constructor contains errors regarding the ping and media attributes.Anchor(String id, List<String> cssClasses, String style, String label, String href, String download, String hrefLang, String media, String ping, String referrerPolicy, String rel, String target, String type, boolean hidden, Map<String,String> customAttributes)
-
Method Summary
Modifier and Type Method Description static Anchor.AnchorBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getDownload()
String
getHref()
String
getHrefLang()
String
getLabel()
String
getMedia()
String
getPing()
String
getReferrerPolicy()
String
getRel()
String
getTarget()
String
getType()
int
hashCode()
void
setDownload(String download)
void
setHref(String href)
void
setHrefLang(String hrefLang)
void
setLabel(String label)
void
setMedia(String media)
void
setPing(String ping)
void
setReferrerPolicy(String referrerPolicy)
void
setRel(String rel)
void
setTarget(String target)
void
setType(String type)
String
toString()
Methods inherited from class io.john.amiscaray.stir.domain.elements.AbstractUIElement
addClass, getCssClasses, getCustomAttributes, getId, getStyle, isHidden, setCssClasses, setCustomAttributes, setHidden, setId, setStyle
Methods inherited from class io.john.amiscaray.stir.domain.elements.CacheableElement
addPropertyChangeListener, emptyCache, getCacheContents, getCacheStatus, isCacheDisabled, isHasChildren, setCacheContents, setCacheDisabled, setHasChildren
-
Field Details
-
label
The inner content of the anchor tag -
href
The href the anchor tag points to -
download
The download attribute of the anchor tag -
hrefLang
The hrefLang attribute of the anchor tag -
media
The media attribute of the anchor tag -
ping
The ping attribute of the anchor tag -
referrerPolicy
The referrerPolicy attribute of the anchor tag -
rel
The rel attribute of the anchor tag -
target
The target attribute of the anchor tag -
type
The type attribute of the anchor tag
-
-
Constructor Details
-
Anchor
-
Anchor
@Deprecated public Anchor(String label, String href, String download, String hrefLang, String ping, String referrerPolicy, String rel, String target, String type)Deprecated.This constructor contains errors regarding the ping and media attributes. Instantiate this class with a builder, the other constructors, or an element descriptor.- Parameters:
label
-href
-download
-hrefLang
-ping
-referrerPolicy
-rel
-target
-type
-
-
Anchor
-
-
Method Details
-
builder
-
getLabel
-
getHref
-
getDownload
-
getHrefLang
-
getMedia
-
getReferrerPolicy
-
getRel
-
getTarget
-
getType
-
getPing
-
setDownload
-
setHrefLang
-
setMedia
-
setReferrerPolicy
-
setRel
-
setTarget
-
setType
-
setLabel
-
setHref
-
setPing
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-