Public Member Functions | |
Hashtable | getFiles () |
String | getPublicId () |
String | getEjbName () |
void | startDocument () throws SAXException |
void | startElement (String uri, String localname, String qname, Attributes attrs) throws SAXException |
void | endElement (String uri, String localname, String qname) throws SAXException |
void | characters (char[] ch, int start, int length) throws SAXException |
Protected Attributes | |
String | currentElement = null |
String | currentText = null |
Hashtable | ejbFiles = null |
String | ejbName = null |
Definition at line 79 of file DescriptorHandler.java.
|
SAX parser call-back method invoked whenever characters are located within an element. currentAttribute (modified by startElement and endElement) tells us whether we are in an interesting element (one of the up to four classes of an EJB). If so then converts the classname from the format org.apache.tools.ant.Parser to the convention for storing such a class, org/apache/tools/ant/Parser.class. This is then resolved into a file object under the srcdir which is stored in a Hashtable.
Definition at line 390 of file DescriptorHandler.java. References org.objectweb.jonas.ant.DescriptorHandler.currentText. |
|
SAX parser call-back method that is invoked when an element is exited. Used to blank out (set to the empty string, not nullify) the name of the currentAttribute. A better method would be to use a stack as an instance variable, however since we are only interested in leaf-node data this is a simpler and workable solution.
Definition at line 348 of file DescriptorHandler.java. References org.objectweb.jonas.ant.DescriptorHandler.currentText. |
|
Getter method that returns the value of the <ejb-name> element. Definition at line 280 of file DescriptorHandler.java. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.getJarBaseName(). |
|
Getter method that returns the set of files to include in the EJB jar. Definition at line 266 of file DescriptorHandler.java. References org.objectweb.jonas.ant.DescriptorHandler.ejbFiles. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.parseEjbFiles(). |
|
Get the publicId of the DTD Definition at line 273 of file DescriptorHandler.java. Referenced by org.objectweb.jonas.ant.GenericDeploymentTool.getPublicId(). |
|
SAX parser call-back method that is used to initialize the values of some instance variables to ensure safe operation. Definition at line 288 of file DescriptorHandler.java. |
|
SAX parser call-back method that is invoked when a new element is entered into. Used to store the context (attribute name) in the currentAttribute instance variable.
Definition at line 304 of file DescriptorHandler.java. References org.objectweb.jonas.ant.DescriptorHandler.currentText. |
|
Instance variable used to store the name of the current element being processed by the SAX parser. Accessed by the SAX parser call-back methods startElement() and endElement(). Definition at line 143 of file DescriptorHandler.java. |
|
The text of the current element Definition at line 148 of file DescriptorHandler.java. Referenced by org.objectweb.jonas.ant.DescriptorHandler.characters(), org.objectweb.jonas.ant.DescriptorHandler.endElement(), and org.objectweb.jonas.ant.DescriptorHandler.startElement(). |
|
Instance variable that stores the names of the files as they will be put into the jar file, mapped to File objects Accessed by the SAX parser call-back method characters(). Definition at line 155 of file DescriptorHandler.java. Referenced by org.objectweb.jonas.ant.DescriptorHandler.getFiles(). |
|
Instance variable that stores the value found in the <ejb-name> element Definition at line 160 of file DescriptorHandler.java. |