java.lang.Object
com.aoapps.taglib.GlobalAttributesUtils
Utilities for working with global attributes.
- Author:
- AO Industries, Inc.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addDynamicAttribute
(String uri, String localName, Object value, List<String> expectedPatterns, MutableGlobalAttributes global) Adds thedata-*
anddataset
static void
appendGlobalAttributes
(GlobalAttributes global, Appendable out) static void
copy
(GlobalAttributes from, GlobalBufferedAttributes to) Copies all global attributes.static <G extends GlobalAttributes<?>>
GdoGlobalAttributes
(GlobalAttributes from, G to) static void
writeGlobalAttributes
(GlobalAttributes global, Writer out)
-
Field Details
-
DATASET_ATTRIBUTE_PREFIX
The prefix fordataset.*
dynamic attributes.- See Also:
-
-
Method Details
-
addDynamicAttribute
public static boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns, MutableGlobalAttributes global) throws JspTagException - Returns:
true
when added, orfalse
when attribute not expected and has not been added.- Throws:
JspTagException
- See Also:
-
copy
Copies all global attributes. -
doGlobalAttributes
public static <G extends GlobalAttributes<?>> G doGlobalAttributes(GlobalAttributes from, G to) throws IOException - Throws:
IOException
-
writeGlobalAttributes
- Throws:
IOException
-
appendGlobalAttributes
public static void appendGlobalAttributes(GlobalAttributes global, Appendable out) throws IOException - Throws:
IOException
-