agonism.dovetail.taglibs
Class Util
java.lang.Object
|
+--agonism.dovetail.taglibs.Util
- public class Util
- extends java.lang.Object
This class includes several utility functions used by various input
tags. Functionality common to several classes is located here on
the relatively renegade premise that building variability into a design
is better than using even single inheritance. (For example, the interfaces
to all utility functions is clearly outlined here , and the utility
functions don't have access to private members of the "interesting"
classes.) I'll defend that this is more straightforward than a base
class that includes these any day.
- Version:
- 0.90
- Author:
- Shawn Bayern
Constructor Summary |
Util()
|
Method Summary |
static void |
printAttributes(java.io.Writer out,
java.util.Map attributes)
Print out any HTML tag attributes we might have been passed. |
static void |
quote(java.io.Writer writer,
java.lang.String str)
Quote metacharacters in HTML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
printAttributes
public static void printAttributes(java.io.Writer out,
java.util.Map attributes)
throws javax.servlet.jsp.JspTagException,
java.io.IOException
- Print out any HTML tag attributes we might have been passed.
quote
public static void quote(java.io.Writer writer,
java.lang.String str)
throws java.io.IOException
- Quote metacharacters in HTML.