owltools.gaf.rules
Class AnnotationRegularExpressionFromXMLRule

java.lang.Object
  extended by owltools.gaf.rules.AbstractAnnotationRule
      extended by owltools.gaf.rules.AnnotationRegularExpressionFromXMLRule
All Implemented Interfaces:
AnnotationRule

public class AnnotationRegularExpressionFromXMLRule
extends AbstractAnnotationRule

This class implements execution of the regular expression rules. All the regular expression rules are run by the single instance of this class.

Author:
Shahid Manzoor

Constructor Summary
AnnotationRegularExpressionFromXMLRule()
           
 
Method Summary
 String getErrorMessage()
           
 Pattern getPattern()
           
 String getRegex()
           
 Set<AnnotationRuleViolation> getRuleViolations(GeneAnnotation a)
          Given an annotation, find the set of violations using the rule
 void setErrorMessage(String errorMessage)
           
 void setPattern(Pattern pattern)
           
 void setRegex(String regex)
           
 
Methods inherited from class owltools.gaf.rules.AbstractAnnotationRule
getRuleId, setRuleId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationRegularExpressionFromXMLRule

public AnnotationRegularExpressionFromXMLRule()
Method Detail

getRuleViolations

public 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
Specified by:
getRuleViolations in class AbstractAnnotationRule
Parameters:
a - annotation
Returns:
set of violations

getRegex

public String getRegex()

getPattern

public Pattern getPattern()

getErrorMessage

public String getErrorMessage()

setRegex

public void setRegex(String regex)

setPattern

public void setPattern(Pattern pattern)

setErrorMessage

public void setErrorMessage(String errorMessage)


Copyright © 2010-2012. All Rights Reserved.