public class PatternRuleHandler extends XMLRuleHandler
Modifier and Type | Field and Description |
---|---|
protected Category |
category |
protected String |
categoryIssueType |
protected String |
filterArgs |
protected String |
filterClassName |
protected String |
name |
protected String |
ruleGroupIssueType |
protected String |
ruleIssueType |
protected String |
sourceFile |
static String |
TYPE |
AND, andGroupCounter, ANTIPATTERN, antiPatternExample, antipatternExamples, antiPatternForRuleGroupExample, antipatternForRuleGroupsExamples, CASE_SENSITIVE, caseSensitive, categoryTags, categoryToneTags, chunkTag, CHUNKTAG, CHUNKTAG_REGEXP, correctExample, correctExamples, DEFAULT, DISTANCETOKENS, elements, endPositionCorrection, equivalenceFeatures, errorTriggerExample, errorTriggeringExamples, EXAMPLE, exampleCorrection, EXCEPTION, exceptionLevelCaseSensitive, exceptionLevelCaseSet, exceptionPosNegation, exceptionPosRegExp, exceptionPosToken, exceptions, exceptionSet, exceptionSpaceBefore, exceptionSpaceBeforeSet, exceptionStringInflected, exceptionStringNegation, exceptionStringRegExp, exceptionValidNext, exceptionValidPrev, FALSE, FEATURE, GOAL_SPECIFIC, id, ID, IGNORE, inAndGroup, inAntiPatternExample, inAntiPatternForRuleGroupExample, incorrectExample, inCorrectExample, incorrectExamples, inErrorTriggerExample, inException, INFLECTED, inIncorrectExample, inMarker, inMatch, inMessage, inOrGroup, inPattern, inPhrases, inRegex, inRuleGroup, inShortMessage, inShortMessageForRuleGroup, inSuggestion, inToken, inUnification, inUnificationDef, inUnificationNeutral, inUrl, inUrlForRuleGroup, isGoalSpecific, isGoalSpecificCategoryAttribute, isGoalSpecificRuleGroupAttribute, isPremiumRule, language, lastPhrase, MARK, MARKER, match, MATCH, MAX, maxOccurrence, message, MESSAGE, messages, MIN, minOccurrence, MINPREVMATCHES, NAME, NEGATE, NEGATE_POS, NO, OFF, ON, OR, orGroupCounter, PATTERN, patternToken, patternTokens, phraseId, phraseIdRef, phraseMap, phrasePatternTokens, PHRASES, pLocator, posNegation, posRegExp, POSTAG, POSTAG_REGEXP, posToken, PREMIUM, premiumCategoryAttribute, premiumFileAttribute, premiumRuleGroupAttribute, regex, regexCaseSensitive, regexMode, REGEXP, regexpMark, regExpression, RULE, RULEGROUP, ruleGroupId, ruleGroupTags, ruleGroupToneTags, rules, RULES, ruleTags, ruleToneTags, SCOPE, shortMessage, shortMessageForRuleGroup, SKIP, skipPos, SPACEBEFORE, startPositionCorrection, SUGGESTION, suggestionMatches, suggestionMatchesOutMsg, suggestionsOutMsg, TABNAME, TEMP_OFF, TOKEN, tokenCounter, tokenInflected, tokenLevelCaseSensitive, tokenLevelCaseSet, tokenNegated, tokenReference, tokenSpaceBefore, tokenSpaceBeforeSet, TRUE, uFeature, UNIFICATION, UNIFY, UNIFY_IGNORE, uniNegation, url, urlForRuleGroup, uType, uTypeList, xmlLineNumber, xmlLineNumberAntiPattern, YES
Constructor and Description |
---|
PatternRuleHandler() |
PatternRuleHandler(String sourceFile) |
PatternRuleHandler(String filename,
Language lang) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endElement(String namespaceURI,
String sName,
String qName) |
protected void |
prepareRule(AbstractPatternRule rule) |
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs) |
addLegacyMatches, error, finalizeExceptions, finalizePhrase, finalizeTokens, getRules, internString, preparePhrase, processElement, resetException, resetToken, setDocumentLocator, setExceptions, setMatchElement, setRuleFilter, setToken, startPattern, warning
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
public static final String TYPE
protected final String sourceFile
protected Category category
protected String categoryIssueType
protected String ruleGroupIssueType
protected String ruleIssueType
protected String name
protected String filterClassName
protected String filterArgs
public PatternRuleHandler()
public PatternRuleHandler(String sourceFile)
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
IOException
SAXException
public void startElement(String namespaceURI, String lName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
protected void prepareRule(AbstractPatternRule rule)
public void characters(char[] buf, int offset, int len)
characters
in interface ContentHandler
characters
in class DefaultHandler