schema2template
Class OutputFileListHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by schema2template.OutputFileListHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class OutputFileListHandler
extends DefaultHandler

If a template should be used multiple times (e.g. for every element of the schema), For every file we create a line will be created. This class parses this list of the output files to be created.


Method Summary
 void endElement(String uri, String localName, String qName)
           
static List<OutputFileListEntry> readFileListFile(File flf)
           
 void setDocumentLocator(Locator locator)
          With the DocumentLocator line numbers will be received during errors
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDocumentLocator

public void setDocumentLocator(Locator locator)
With the DocumentLocator line numbers will be received during errors

Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class DefaultHandler

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

endElement

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

readFileListFile

public static List<OutputFileListEntry> readFileListFile(File flf)
                                                  throws Exception
Throws:
Exception


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.