java.lang.Object
com.aoapps.taglib.GlobalAttributesUtils
Utilities for working with global attributes.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns, MutableGlobalAttributes global) Adds thedata-*anddatasetstatic voidappendGlobalAttributes(GlobalAttributes global, Appendable out) static voidcopy(GlobalAttributes from, GlobalBufferedAttributes to) Copies all global attributes.static <G extends GlobalAttributes<?>>
GdoGlobalAttributes(GlobalAttributes from, G to) static voidwriteGlobalAttributes(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:
truewhen added, orfalsewhen 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
-
