owltools.gaf.rules
Class AnnotationRegularExpressionFromXMLRule
java.lang.Object
owltools.gaf.rules.AbstractAnnotationRule
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationRegularExpressionFromXMLRule
public AnnotationRegularExpressionFromXMLRule()
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.