net.sundog.hoople
Class GoogleSiteMapParser

java.lang.Object
  extended bynet.sundog.hoople.BaseParser
      extended bynet.sundog.hoople.GoogleSiteMapParser

public class GoogleSiteMapParser
extends BaseParser

Checks for <search> tags to create site maps that Google understands.


Constructor Summary
GoogleSiteMapParser(java.lang.String urlBase)
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String elementText, java.io.File file, java.io.File documentRoot)
          Override this method with things to do when the URLConfigParser finds the end of an element and isActive() returns true.
protected  java.util.Collection getReturnObjects(java.lang.Class generatorClass, java.lang.String paramGeneratorMethod)
           
 org.w3c.dom.Document getSiteMap()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes, java.io.File urlConfigFile, java.io.File documentRoot)
          Override this method with things to do when the URLConfigParser finds the start of an element and isActive() returns true.
 
Methods inherited from class net.sundog.hoople.BaseParser
convertToAbsolutePath, getDocumentBuilder, getUrlConfigurationParser, isActive, setActive, setActive, setDocumentBuilder, setUrlConfigurationParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleSiteMapParser

public GoogleSiteMapParser(java.lang.String urlBase)
                    throws java.lang.Exception
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes,
                         java.io.File urlConfigFile,
                         java.io.File documentRoot)
                  throws org.xml.sax.SAXException,
                         java.io.IOException
Description copied from class: BaseParser
Override this method with things to do when the URLConfigParser finds the start of an element and isActive() returns true.

Specified by:
startElement in class BaseParser
Throws:
org.xml.sax.SAXException
java.io.IOException

getReturnObjects

protected java.util.Collection getReturnObjects(java.lang.Class generatorClass,
                                                java.lang.String paramGeneratorMethod)
                                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName,
                       java.lang.String elementText,
                       java.io.File file,
                       java.io.File documentRoot)
                throws org.xml.sax.SAXException
Description copied from class: BaseParser
Override this method with things to do when the URLConfigParser finds the end of an element and isActive() returns true.

Specified by:
endElement in class BaseParser
Throws:
org.xml.sax.SAXException

getSiteMap

public org.w3c.dom.Document getSiteMap()


Copyright © 2005 Sundog. All Rights Reserved.