Package edu.uga.galileo.voci.importer

Examples of edu.uga.galileo.voci.importer.Importer


      ArrayList<Importer> importerCollection = new ArrayList<Importer>();
      String arrayElement;
      for (int m = 0; m < importerArray.length; m++) {
        arrayElement = importerArray[m].trim();
        if (arrayElement.length() > 0) {
          Importer importer = iman.getImporter(arrayElement, errors);
          importerCollection.add(importer);
        }
      }

      if (importerCollection.size() > 0) {
View Full Code Here


    int importCounter = 0;

    // the user's performing an import, so instantiate the
    // importer, query it for results, and attempt to import
    try {
      Importer importer = getImporter(importerName, errors);

      ArrayList<VociBusinessObject> results = importer.performQuery(
          query, ContentType.valueOf(Integer.parseInt(contentType)),
          (new ProjectManager()).getProjectID(project));

      Logger.debug("Got " + results.size() + " results from "
          + importer.getClass().getSimpleName());

      // TODO: parse through the results, and do the special char
      // replacements and validation
      VociBusinessObject vbo;
      ArrayList<MetadataElement> metadataElements;
View Full Code Here

   *         found or created.
   */
  public Importer getImporter(String importerName, ArrayList<String> errors) {
    Class c;
    Constructor constructor;
    Importer importer = null;

    try {
      c = Class.forName("edu.uga.galileo.voci.importer." + importerName);
      constructor = c.getConstructor((Class[]) null);
      importer = (Importer) constructor.newInstance((Object[]) null);
View Full Code Here

TOP

Related Classes of edu.uga.galileo.voci.importer.Importer

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.