I started out with a simple interface.
HTMLTagTemplate.java
package net.yw.html;
import java.util.Map;
/**
* @author KWang
*
*/
public interface HTMLTagTemplate {
public String doStart(Map<String, Object> propertyMap) throws HTMLTagException;
public String doEnd();
}
HTMLTagException.java
package net.yw.html;
/**
* @author KWang
*
*/
public class HTMLTagException extends Exception {
/**
*
*/
private static final long serialVersionUID = -1L;
/**
*
*/
public HTMLTagException() {
}
/**
* @param message
*/
public HTMLTagException(String message) {
super(message);
}
/**
* @param cause
*/
public HTMLTagException(Throwable cause) {
super(cause);
}
/**
* @param message
* @param cause
*/
public HTMLTagException(String message, Throwable cause) {
super(message, cause);
}
}
In my next post, I'll talk about how to implement HTMLTagTemplate for general form tag use.
No comments:
Post a Comment