All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.csiro.ontology.importer.BaseImporter Maven / Gradle / Ivy

/**
 * Copyright CSIRO Australian e-Health Research Centre (http://aehrc.com).
 * All rights reserved. Use is subject to license terms and conditions.
 */
package au.csiro.ontology.importer;

import java.util.Map;
import java.util.Set;

import au.csiro.ontology.input.Input;

/**
 * @author Alejandro Metke
 *
 */
public abstract class BaseImporter implements IImporter {
    
    protected class Module {
        private final String moduleId;
        private final String moduleVersion;
        
        public Module(String moduleId, String moduleVersion) {
            super();
            this.moduleId = moduleId;
            this.moduleVersion = moduleVersion;
        }
        
        public String getModuleId() {
            return moduleId;
        }
        
        public String getModuleVersion() {
            return moduleVersion;
        }
        
    }
    
    protected class ImportEntry {
        private final String rootModuleId;
        private final String rootModuleVersion;
        private final Map metadata;
        private final Set modules;
        private final Input input;
        
        public ImportEntry(String rootModuleId, String rootModuleVersion,
                Map metadata, Set modules, Input input) {
            this.rootModuleId = rootModuleId;
            this.rootModuleVersion = rootModuleVersion;
            this.metadata = metadata;
            this.modules = modules;
            this.input = input;
        }
        
        public String getRootModuleId() {
            return rootModuleId;
        }
        
        public String getRootModuleVersion() {
            return rootModuleVersion;
        }
        
        public Map getMetadata() {
            return metadata;
        }
        
        public Set getModules() {
            return modules;
        }

        public Input getInput() {
            return input;
        }
        
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy