info.sswap.http.representation
Class Imports

java.lang.Object
  extended by info.sswap.http.representation.Imports

public class Imports
extends java.lang.Object

Contains imports definitions

Author:
Blazej Bulka

Field Summary
private  java.util.List<java.lang.String> imports
          The list of imports (URIs)
 
Constructor Summary
Imports(java.util.Collection<java.lang.String> imports)
          Creates the new imports definition
 
Method Summary
 void addImport(java.lang.String importURI)
          Adds a new URI to the list of imports
 java.util.Collection<java.lang.String> getImports()
          Gets the currently defined imports
 void removeImport(java.lang.String importURI)
          Removes a URI from the list of imports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imports

private java.util.List<java.lang.String> imports
The list of imports (URIs)

Constructor Detail

Imports

public Imports(java.util.Collection<java.lang.String> imports)
Creates the new imports definition

Parameters:
imports - the URIs of ontologies to be imported
Method Detail

getImports

public java.util.Collection<java.lang.String> getImports()
Gets the currently defined imports

Returns:
a collection of ontology URIs

addImport

public void addImport(java.lang.String importURI)
Adds a new URI to the list of imports

Parameters:
importURI - the URI of an ontology to be added

removeImport

public void removeImport(java.lang.String importURI)
Removes a URI from the list of imports. If there is no such import in the list, this method does nothing.

Parameters:
importURI - the URI of the ontology to be removed from the list of imports


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.