gov.usda.gdpc
Class AbstractPhenotypeOntologyGroup

java.lang.Object
  extended bygov.usda.gdpc.AbstractGroup
      extended bygov.usda.gdpc.AbstractDBElementGroup
          extended bygov.usda.gdpc.AbstractPhenotypeOntologyGroup
All Implemented Interfaces:
java.util.Collection, DBElementGroup, Group, java.util.List, PhenotypeOntologyGroup
Direct Known Subclasses:
DefaultPhenotypeOntologyGroup

public abstract class AbstractPhenotypeOntologyGroup
extends AbstractDBElementGroup
implements PhenotypeOntologyGroup

This class provides a skeletal implementation of the PhenotypeOntologyGroup interface to minimize the effort required to implement this interface.

Author:
terryc

Field Summary
 
Fields inherited from class gov.usda.gdpc.AbstractDBElementGroup
myIndex
 
Constructor Summary
AbstractPhenotypeOntologyGroup()
          AbstractPhenotypeOntologyGroup constructor.
AbstractPhenotypeOntologyGroup(java.util.List list)
          AbstractPhenotypeOntologyGroup constructor.
AbstractPhenotypeOntologyGroup(PhenotypeOntology[] ontology)
          AbstractPhenotypeOntologyGroup constructor.
AbstractPhenotypeOntologyGroup(PhenotypeOntologyGroup[] groups)
          AbstractPhenotypeOntologyGroup constructor.
 
Method Summary
 PhenotypeOntology getPhenotypeOntology(java.lang.String dataSource, Identifier id)
          This returns the phenotype ontology instance from this group that matches the specified id and source.
 PhenotypeOntologyGroup getPhenotypeOntologyGroup(PhenotypeOntologyFilter filter)
          Get the phenotype ontology group matching the given filter from this phenotype ontology group.
 java.lang.String getType()
          Get type of this group.
 
Methods inherited from class gov.usda.gdpc.AbstractDBElementGroup
getDBElementGroup, getDBElements, getDefinedProperties, getDistinctProperties, index, toString
 
Methods inherited from class gov.usda.gdpc.AbstractGroup
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.usda.gdpc.DBElementGroup
getDBElements, getDefinedProperties, getDistinctProperties, index
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

AbstractPhenotypeOntologyGroup

public AbstractPhenotypeOntologyGroup(PhenotypeOntology[] ontology)
AbstractPhenotypeOntologyGroup constructor.

Parameters:
ontology - list of phenotype ontology to be a part of this group.

AbstractPhenotypeOntologyGroup

public AbstractPhenotypeOntologyGroup()
AbstractPhenotypeOntologyGroup constructor. Creates an empty group.


AbstractPhenotypeOntologyGroup

public AbstractPhenotypeOntologyGroup(java.util.List list)
AbstractPhenotypeOntologyGroup constructor.

Parameters:
list - list of objects to be a part of this group. Any null in the list will be discarded.

AbstractPhenotypeOntologyGroup

public AbstractPhenotypeOntologyGroup(PhenotypeOntologyGroup[] groups)
AbstractPhenotypeOntologyGroup constructor.

Parameters:
groups - groups to include in this new group.
Method Detail

getPhenotypeOntologyGroup

public PhenotypeOntologyGroup getPhenotypeOntologyGroup(PhenotypeOntologyFilter filter)
Get the phenotype ontology group matching the given filter from this phenotype ontology group.

Specified by:
getPhenotypeOntologyGroup in interface PhenotypeOntologyGroup
Parameters:
filter - filter
Returns:
phenotype ontology group

getPhenotypeOntology

public PhenotypeOntology getPhenotypeOntology(java.lang.String dataSource,
                                              Identifier id)
This returns the phenotype ontology instance from this group that matches the specified id and source. Null will be returned if its not in this group.

Specified by:
getPhenotypeOntology in interface PhenotypeOntologyGroup
Parameters:
dataSource - data source
id - identifier
Returns:
phenotype ontology or null if not in this group.

getType

public java.lang.String getType()
Get type of this group.

Specified by:
getType in interface DBElementGroup
Returns:
type