owltools.gaf.rules
Class AbstractAnnotationRule

java.lang.Object
  extended by owltools.gaf.rules.AbstractAnnotationRule
All Implemented Interfaces:
AnnotationRule
Direct Known Subclasses:
AnnotationRegularExpressionFromXMLRule, AnnotationTaxonRule, BasicChecksRule, GenericReasonerValidationCheck, GoClassReferenceAnnotationRule

public abstract class AbstractAnnotationRule
extends Object
implements AnnotationRule


Constructor Summary
AbstractAnnotationRule()
           
 
Method Summary
 String getRuleId()
          Get the ruleId.
 Set<AnnotationRuleViolation> getRuleViolations(GafDocument gafDoc)
          Given a whole GafDocument , find the set of violations using the rule
abstract  Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a)
          Given an annotation, find the set of violations using the rule
 boolean isDocumentLevel()
           
 void setRuleId(String ruleId)
          Set the rule id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationRule

public AbstractAnnotationRule()
Method Detail

getRuleViolations

public abstract Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a)
Description copied from interface: AnnotationRule
Given an annotation, find the set of violations using the rule

Specified by:
getRuleViolations in interface AnnotationRule
Parameters:
a - annotation
Returns:
set of violations

getRuleViolations

public Set<AnnotationRuleViolation> getRuleViolations(GafDocument gafDoc)
Description copied from interface: AnnotationRule
Given a whole GafDocument , find the set of violations using the rule

Specified by:
getRuleViolations in interface AnnotationRule
Returns:
set of violations

setRuleId

public void setRuleId(String ruleId)
Description copied from interface: AnnotationRule
Set the rule id

Specified by:
setRuleId in interface AnnotationRule

getRuleId

public String getRuleId()
Description copied from interface: AnnotationRule
Get the ruleId.

Specified by:
getRuleId in interface AnnotationRule
Returns:
ruleId

isDocumentLevel

public boolean isDocumentLevel()
Specified by:
isDocumentLevel in interface AnnotationRule
Returns:
true if the rule has to be applied to the whole GA document.


Copyright © 2010-2012. All Rights Reserved.