com.atlassian.confluence.importexport.xmlimport.parser
Class DefaultFragmentParser<T>

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.atlassian.confluence.importexport.xmlimport.parser.DefaultFragmentParser<T>
All Implemented Interfaces:
FragmentParser<T>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
CollectionPropertyParser, ComponentParser, CompositeIdParser, EnumPropertyParser, ImportedObjectParser, PrimitiveIdParser, PrimitivePropertyParser, ReferencePropertyParser

public abstract class DefaultFragmentParser<T>
extends DefaultHandler
implements FragmentParser<T>


Constructor Summary
DefaultFragmentParser(String elementName)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
protected abstract  void delegateDone()
           
 void endElement(String uri, String localName, String qName)
           
protected  FragmentParser<?> getDelegate()
           
protected  void handleCharacters(char[] ch, int start, int length)
           
protected abstract  void initialise(Attributes attributes)
           
 boolean isDone()
           
protected abstract  FragmentParser<?> newDelegate(String uri, String localName, String qName, Attributes attributes)
           
protected  void setDelegate(FragmentParser<?> delegate)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, 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
 
Methods inherited from interface com.atlassian.confluence.importexport.xmlimport.parser.FragmentParser
build
 
Methods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 

Constructor Detail

DefaultFragmentParser

public DefaultFragmentParser(String elementName)
Method Detail

startElement

public final 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

characters

public final void characters(char[] ch,
                             int start,
                             int length)
                      throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

endElement

public final void endElement(String uri,
                             String localName,
                             String qName)
                      throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

handleCharacters

protected void handleCharacters(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Throws:
SAXException

getDelegate

protected FragmentParser<?> getDelegate()

setDelegate

protected void setDelegate(FragmentParser<?> delegate)

initialise

protected abstract void initialise(Attributes attributes)

newDelegate

protected abstract FragmentParser<?> newDelegate(String uri,
                                                 String localName,
                                                 String qName,
                                                 Attributes attributes)
                                          throws SAXException
Throws:
SAXException

delegateDone

protected abstract void delegateDone()

isDone

public boolean isDone()
Specified by:
isDone in interface FragmentParser<T>


Copyright © 2003-2010 Atlassian. All Rights Reserved.