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 owltools.gaf.rules.AbstractAnnotationRule |
getDate, getDescription, getGrandFatheringDate, getName, getPredictedAnnotations, getRuleId, getRuleViolations, getRuleViolations, getStatus, hasGrandFathering, isAnnotationLevel, isDocumentLevel, isInferringAnnotations, isOwlDocumentLevel, setDate, setDescription, setGrandFatheringDate, setName, setRuleId, setStatus |
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
- See Also:
AnnotationRule.isAnnotationLevel()
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-2014. All Rights Reserved.