|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.ow2.jonas.generators.wsgen.finder.WebServicesXmlFinder
public class WebServicesXmlFinder
WebServicesXmlFinder
finds out if there is any
webservices.xml
within the given J2EEArchive
.
Constructor Summary | |
---|---|
WebServicesXmlFinder(J2EEArchive archive)
Constructs a WebServicesXmlFinder that will
explore the given J2EEArchive . |
Method Summary | |
---|---|
boolean |
find()
|
void |
init(SAXParser parser)
Explore the archive and find a webservices.xml. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the start of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebServicesXmlFinder(J2EEArchive archive)
WebServicesXmlFinder
that will
explore the given J2EEArchive
.
archive
- archive to explore.Method Detail |
---|
public boolean find()
find
in interface J2EEWebServicesFinder
true
if webservices have been found.J2EEWebServicesFinder.find()
public void init(SAXParser parser)
parser
- SAX Parserpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qName
- The qualified name (with prefix), or the
empty string if qualified names are not available.attributes
- The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |