owltools.gaf.rules
Class AnnotationRulesFactoryImpl

java.lang.Object
  extended by owltools.gaf.rules.AnnotationRulesFactoryImpl
All Implemented Interfaces:
AnnotationRulesFactory
Direct Known Subclasses:
GoAnnotationRulesFactoryImpl

public class AnnotationRulesFactoryImpl
extends Object
implements AnnotationRulesFactory

This class reads the annotation_qc.xml file and builds AnnotationRule objects from the qc file.

Author:
shahidmanzoor

Constructor Summary
protected AnnotationRulesFactoryImpl(String path)
           
 
Method Summary
protected  AnnotationRule getClassForName(String className)
           
 List<AnnotationRule> getGafRules()
          Get the list of rules, which require a global view of the GAF (GafDocument).
 List<AnnotationRule> getGeneAnnotationRules()
          Get the list of rules to be applied for each GeneAnnotation
 void init()
          Initialize the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationRulesFactoryImpl

protected AnnotationRulesFactoryImpl(String path)
Parameters:
path - location of the annotation_qc.xml file
Method Detail

init

public void init()
Description copied from interface: AnnotationRulesFactory
Initialize the factory.

Specified by:
init in interface AnnotationRulesFactory

getClassForName

protected AnnotationRule getClassForName(String className)
                                  throws Exception
Parameters:
className -
Returns:
annotation rule (never null)
Throws:
Exception

getGeneAnnotationRules

public List<AnnotationRule> getGeneAnnotationRules()
Description copied from interface: AnnotationRulesFactory
Get the list of rules to be applied for each GeneAnnotation

Specified by:
getGeneAnnotationRules in interface AnnotationRulesFactory
Returns:
rules

getGafRules

public List<AnnotationRule> getGafRules()
Description copied from interface: AnnotationRulesFactory
Get the list of rules, which require a global view of the GAF (GafDocument).

Specified by:
getGafRules in interface AnnotationRulesFactory
Returns:
rules


Copyright © 2010-2012. All Rights Reserved.