Class ExtensionHandler
- java.lang.Object
- 
- org.xml.sax.helpers.DefaultHandler
- 
- crawlercommons.sitemaps.sax.extension.ExtensionHandler
 
 
- 
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
 - Direct Known Subclasses:
- ImageHandler,- LinksHandler,- MobileHandler,- NewsHandler,- VideoHandler
 
 public abstract class ExtensionHandler extends DefaultHandler Handler to be called for elements in the namespace of a sitemap extension. Parses the extension elements and creates extension-specific attributes to be assigned to aSiteMapURL.
- 
- 
Field SummaryFields Modifier and Type Field Description protected List<ExtensionMetadata>attributesprotected static PatterncommaSeparated
 - 
Constructor SummaryConstructors Constructor Description ExtensionHandler()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionHandlercreate(Extension extension)ExtensionMetadata[]getAttributes()protected static ZonedDateTimegetDateValue(String value)protected static FloatgetFloatValue(String value)protected static IntegergetIntegerValue(String value)protected static URLgetURLValue(String value)protected static BooleangetYesNoBooleanValue(String value, String elemName)voidreset()- 
Methods inherited from class org.xml.sax.helpers.DefaultHandlercharacters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
- 
 
- 
- 
- 
Field Detail- 
commaSeparatedprotected static Pattern commaSeparated 
 - 
attributesprotected List<ExtensionMetadata> attributes 
 
- 
 - 
Method Detail- 
createpublic static ExtensionHandler create(Extension extension) 
 - 
getAttributespublic ExtensionMetadata[] getAttributes() 
 - 
resetpublic void reset() 
 - 
getDateValueprotected static ZonedDateTime getDateValue(String value) 
 
- 
 
-