|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.taglibs.mailer2.JSP20to12
Class JSP20to12 will convert JSP 2.0 tags to a JSP 1.1.
This programme will:
| Constructor Summary | |
JSP20to12()
|
|
| Method Summary | |
boolean |
checkInterface(Class clazz,
String interfaceName)
Check whether a class or one of its superclasses implements an interface. |
String |
createBodyCode(Class tagClass)
Creates Java code to evaluate EL in BodyContent. |
String |
createELCode(String name,
Class type)
Creates the Java code to evaluate an EL expression. |
String |
createSetterCode(String name)
Creates the Java code for a setter method. |
String |
getChildValue(Node parent,
String nodeName)
Returns the text nodeValue() of a child element. |
Method |
getSetter(Class tagClass,
String name)
Gets the setter method in a class. |
static void |
main(String[] args)
Main entry point. |
void |
process(String[] args)
Process the command line arguments and run the conversion. |
void |
processJAR(String name)
Process a JAR file from the command line. |
void |
processTag(Node tag)
Process a <tag> within a TLD. |
void |
processTLD(String name,
InputStream in)
Process a single TLD within a JAR. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSP20to12()
| Method Detail |
public static void main(String[] args)
args - Command line argumentspublic void process(String[] args)
args - Command line arguments
public void processJAR(String name)
throws IOException
name - The name of the JAR file
IOException - Upon error
public void processTLD(String name,
InputStream in)
throws IOException
name - The name of the TLDin - The inputstream to read the TLD from
IOException - Upon errorpublic void processTag(Node tag)
tag - The Node in the DOM document that represents this tag
public Method getSetter(Class tagClass,
String name)
tagClass - The tag classname - The name of the setter method, e.g. "setName"
public String createSetterCode(String name)
name - The name of the attribute, e.g. "name"
public String createELCode(String name,
Class type)
name - The name of the attribute, e.g. "name"type - The type of the attribute, e.g. java.lang.String.class
public String createBodyCode(Class tagClass)
tagClass - The tag class
public boolean checkInterface(Class clazz,
String interfaceName)
clazz - The class to checkinterfaceName - The name of the interface to check
public String getChildValue(Node parent,
String nodeName)
parent - The parent nodenodeName - The name of the child element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||