Package org.apache.uima.lucas.indexer.mapping

Examples of org.apache.uima.lucas.indexer.mapping.MappingFileReader


  private void createFieldDescriptions()
      throws ResourceInitializationException {
    String mappingFilePath = (String) getContext().getConfigParameterValue(PARAM_MAPPINGFILE);

    try {
      MappingFileReader indexMappingFileReader = createMappingFileReader();
      File mappingFile = new File(mappingFilePath);
      fieldDescriptions = indexMappingFileReader
          .readFieldDescriptionsFromFile(mappingFile);
    } catch (IOException e) {
      throw new ResourceInitializationException(e);
    } catch (ParserConfigurationException e) {
                  throw new ResourceInitializationException(e);
View Full Code Here


      Map<String, ElementMapper<?>> elementMappers = new HashMap<String, ElementMapper<?>>();
      elementMappers.put(MappingFileReader.ANNOTATION, new AnnotationMapper());
      elementMappers.put(MappingFileReader.FILTER, new FilterMapper());
      elementMappers.put(MappingFileReader.FIELD, new FieldMapper());
      elementMappers.put(MappingFileReader.FEATURE, new FeatureMapper());     
      return new MappingFileReader(parser, elementMappers);
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.lucas.indexer.mapping.MappingFileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.