1 package net.sf.tacos.markup;
2
3 import org.apache.tapestry.IMarkupWriter;
4
5 /**
6 * An {@link org.apache.tapestry.IMarkupWriter} that takes advantage
7 * of Java 1.5 features.
8 *
9 * @author Andreas Andreou
10 */
11 public interface IExtendedMarkupWriter extends IMarkupWriter {
12 /**
13 * Starts an element that will not later be matched with an end() call
14 * ( this is useful for elements that do not need closing tags ) and appends
15 * the given attributes and values.
16 * @see org.apache.tapestry.IMarkupWriter#beginEmpty(String)
17 * @param tag The html tag to generate.
18 * @param attributes An alterating list of attributes and values.
19 * @return
20 */
21 IExtendedMarkupWriter createEmpty(String tag, String... attributes);
22
23 /**
24 * Starts a new element and appends
25 * the given attributes and values.
26 * @see org.apache.tapestry.IMarkupWriter#begin(String)
27 * @param tag
28 * @param attributes
29 * @return
30 */
31 IExtendedMarkupWriter create(String tag, String... attributes);
32 }