org.ow2.jonas.generators.wsgen.finder
Class ServiceRefFinder

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.ow2.jonas.generators.wsgen.finder.ServiceRefFinder
All Implemented Interfaces:
J2EEWebServicesFinder, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ServiceRefFinder
extends DefaultHandler
implements J2EEWebServicesFinder

Specialized Finder for XML files. If one contains some service-ref elements, it will be marked has WS enabled.

Author:
Guillaume Sauthier

Constructor Summary
ServiceRefFinder()
           
 
Method Summary
 boolean find()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
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

ServiceRefFinder

public ServiceRefFinder()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException
See Also:
DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

find

public boolean find()
Specified by:
find in interface J2EEWebServicesFinder
Returns:
Returns true if webservices have been found.
See Also:
J2EEWebServicesFinder.find()


Copyright © 2010 OW2 Consortium. All Rights Reserved.