- All Implemented Interfaces:
ClassAttribute
,DataAttribute
,DirAttribute
,GlobalAttributes
,GlobalBufferedAttributes
,HrefAttribute
,HreflangAttribute
,IdAttribute
,OnerrorAttribute
,OnloadAttribute
,ParamsAttribute
,RelAttribute
,StyleAttribute
,TitleAttribute
,TypeAttribute
,DynamicAttributes
,JspTag
,SimpleTag
- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.taglib.ElementNullTag
global
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Adds a dynamic attribute.void
Adds a parameter.protected void
void
setAbsolute
(boolean absolute) void
setAddLastModified
(String addLastModified) void
setCanonical
(boolean canonical) void
void
setHreflang
(Object hreflang) void
Copies all values from the provided link.void
void
setNoscript
(boolean noscript) void
setOnerror
(Object onerror) void
void
void
void
Methods inherited from class com.aoapps.taglib.ElementNullTag
addData, getClazz, getData, getDir, getId, getStyle, setClazz, setData, setDir, setDynamicAttribute, setId, setStyle
Methods inherited from class com.aoapps.encoding.taglib.EncodingNullTag
doTag, invoke, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoapps.taglib.ParamsAttribute
addParam
-
Constructor Details
-
LinkTag
public LinkTag()
-
-
Method Details
-
getOutputType
- Specified by:
getOutputType
in classEncodingNullTag
-
setLink
Copies all values from the provided link. -
setNoscript
public void setNoscript(boolean noscript) -
setHref
- Specified by:
setHref
in interfaceHrefAttribute
-
addParam
Description copied from interface:ParamsAttribute
Adds a parameter.The conversion to string may be deferred, or the value may be streamed instead of being converted to a string. It is incorrect to change the state of the provided value; doing so may or may not affect the value of the resulting parameter.
When the value is an
Enum
, the parameter value is obtained fromEnum.name()
instead ofEnum.toString()
. This is to intuitively use enums as parameters whenEnum.toString()
is overridden.Default method is for backward compatibility only. Implementations should override this version.
- Specified by:
addParam
in interfaceParamsAttribute
-
setAbsolute
public void setAbsolute(boolean absolute) -
setCanonical
public void setCanonical(boolean canonical) -
setAddLastModified
-
setHreflang
- Specified by:
setHreflang
in interfaceHreflangAttribute
-
setRel
- Specified by:
setRel
in interfaceRelAttribute
-
setType
- Specified by:
setType
in interfaceTypeAttribute
-
setMedia
-
setTitle
- Specified by:
setTitle
in interfaceTitleAttribute
-
setOnerror
- Specified by:
setOnerror
in interfaceOnerrorAttribute
-
setOnload
- Specified by:
setOnload
in interfaceOnloadAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException Adds a dynamic attribute.- Overrides:
addDynamicAttribute
in classElementNullTag
- Returns:
true
when added, orfalse
when attribute not expected and has not been added.- Throws:
JspTagException
- See Also:
-
doTag
- Overrides:
doTag
in classEncodingNullTag
- Throws:
JspException
IOException
-