org.apache.uima.lucas.indexer.mapping
Class MappingFileReader

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.uima.lucas.indexer.mapping.MappingFileReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class MappingFileReader
extends DefaultHandler

Build Object out of the Index Mapping File (XML)


Field Summary
static String ANNOTATION
           
static String FEATURE
           
static String FIELD
           
static String FILTER
           
 
Constructor Summary
MappingFileReader(SAXParser parser, Map<String,ElementMapper<?>> elementMappers)
           
 
Method Summary
 Collection<FieldDescription> readFieldDescriptionsFromFile(File mappingFile)
           
 void setDocumentLocator(Locator locator)
           
 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, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD

public static final String FIELD
See Also:
Constant Field Values

FILTER

public static final String FILTER
See Also:
Constant Field Values

ANNOTATION

public static final String ANNOTATION
See Also:
Constant Field Values

FEATURE

public static final String FEATURE
See Also:
Constant Field Values
Constructor Detail

MappingFileReader

public MappingFileReader(SAXParser parser,
                         Map<String,ElementMapper<?>> elementMappers)
                  throws IOException
Throws:
IOException
Method Detail

readFieldDescriptionsFromFile

public Collection<FieldDescription> readFieldDescriptionsFromFile(File mappingFile)
                                                           throws IOException,
                                                                  SAXException
Throws:
IOException
SAXException

setDocumentLocator

public void setDocumentLocator(Locator locator)
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


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.