uk.ac.ebi.microarray.zooma.context
Class AggregatedContext

java.lang.Object
  extended by uk.ac.ebi.microarray.zooma.context.AggregatedContext
All Implemented Interfaces:
OntologyMappingContext

public class AggregatedContext
extends java.lang.Object
implements OntologyMappingContext

An ontology mapping context that is the aggregation of several contexts, normally asserting an identical mapping. This will return a Source.AGGREGATED_SOURCE as the source, but the individual contexts that were aggregated to produce this context are still accessible using getOriginalContexts().

Author:
Tony Burdett

Field Summary
 
Fields inherited from interface uk.ac.ebi.microarray.zooma.context.OntologyMappingContext
IRRELEVANT_VALUE, UNKNOWN_VALUE, USER_SUBMITTED
 
Constructor Summary
AggregatedContext(OntologyMappingContext... contexts)
           
 
Method Summary
 java.util.Set<OntologyMappingContext> getOriginalContexts()
           
 Source getSource()
          The "source" in which a mapping is asserted.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregatedContext

public AggregatedContext(OntologyMappingContext... contexts)
Method Detail

getOriginalContexts

public java.util.Set<OntologyMappingContext> getOriginalContexts()

getSource

public Source getSource()
Description copied from interface: OntologyMappingContext
The "source" in which a mapping is asserted. This will usually describe the name of the datasource in which a mapping is stated, or possibly the ontology in which a value exactly matches a class name.

Specified by:
getSource in interface OntologyMappingContext
Returns:
the source of a mapping assertion

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.