org.apache.uima.lucas.indexer.mapping
Class MappingFileReader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
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)
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
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
MappingFileReader
public MappingFileReader(SAXParser parser,
Map<String,ElementMapper<?>> elementMappers)
throws IOException
- Throws:
IOException
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.