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

org.apache.oodt.opendapps.config.OpendapConfig Maven / Gradle / Ivy

Go to download

A generic, configurable Apache OODT profile server implementation that easily connects to OPeNDAP data sources. Connections are configured via an XML configuration file, providing information on how to extract and translate datasets from OPeNDAP and THREDDS into OODT profiles.

There is a newer version: 1.0
Show newest version
/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.oodt.opendapps.config;

//JDK imports
import java.util.List;
import java.util.Vector;

/**
 * 
 * The configuration object for the {@link OpendapProfileHandler}.
 * 
 */
public class OpendapConfig {

  private List roots;

  private List rewriteSpecs;

  private List constSpecs;

  private List datasetMetSpecs;
  
  private ProcessingInstructions processingInstructions;

  public OpendapConfig() {
    this.roots = new Vector();
    this.rewriteSpecs = new Vector();
    this.constSpecs = new Vector();
    this.datasetMetSpecs = new Vector();
    this.processingInstructions = new ProcessingInstructions();
  }

  /**
   * @return the roots
   */
  public List getRoots() {
    return roots;
  }

  /**
   * @param roots
   *          the roots to set
   */
  public void setRoots(List roots) {
    this.roots = roots;
  }

  /**
   * @return the rewriteSpecs
   */
  public List getRewriteSpecs() {
    return rewriteSpecs;
  }

  /**
   * @param rewriteSpecs
   *          the rewriteSpecs to set
   */
  public void setRewriteSpecs(List rewriteSpecs) {
    this.rewriteSpecs = rewriteSpecs;
  }

  /**
   * @return the constSpecs
   */
  public List getConstSpecs() {
    return constSpecs;
  }

  /**
   * @param constSpecs
   *          the constSpecs to set
   */
  public void setConstSpecs(List constSpecs) {
    this.constSpecs = constSpecs;
  }

  /**
   * @return the datasetMetSpecs
   */
  public List getDatasetMetSpecs() {
    return datasetMetSpecs;
  }

  /**
   * @param datasetMetSpecs
   *          the datasetMetSpecs to set
   */
  public void setDatasetMetSpecs(List datasetMetSpecs) {
    this.datasetMetSpecs = datasetMetSpecs;
  }
  
  /**
   * Returns all processing instructions.
   * 
   * @return the processingInstructions
   */
  public ProcessingInstructions getProcessingInstructions() {
  	return this.processingInstructions;
  }
  
  /**
   * Adds a processing instruction.
   * 
   * @param key
   * @param value
   */
  public void addProcessingInstruction(String key, String value) {
  	this.processingInstructions.addInstruction(key, value);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy