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, warningendDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic 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 EntityResolverresolveEntity in class DefaultHandlerIOExceptionSAXExceptionpublic void startElement(String namespaceURI, String lName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionprotected void prepareRule(AbstractPatternRule rule)
public void characters(char[] buf,
int offset,
int len)
characters in interface ContentHandlercharacters in class DefaultHandler