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 |
static String |
TYPE |
AND, andGroupCounter, ANTIPATTERN, CASE_SENSITIVE, caseSensitive, chunkTag, CHUNKTAG, correctExample, correctExamples, DEFAULT, elements, endPositionCorrection, equivalenceFeatures, EXAMPLE, exampleCorrection, EXCEPTION, exceptionLevelCaseSensitive, exceptionLevelCaseSet, exceptionPosNegation, exceptionPosRegExp, exceptionPosToken, exceptions, exceptionSet, exceptionSpaceBefore, exceptionSpaceBeforeSet, exceptionStringInflected, exceptionStringNegation, exceptionStringRegExp, exceptionValidNext, exceptionValidPrev, FEATURE, id, ID, IGNORE, inAndGroup, incorrectExample, inCorrectExample, incorrectExamples, inException, INFLECTED, inIncorrectExample, inMarker, inMatch, inMessage, inOrGroup, inPattern, inPhrases, inRuleGroup, inShortMessage, inShortMessageForRuleGroup, inSuggestion, inToken, inUnification, inUnificationDef, inUnificationNeutral, inUrl, inUrlForRuleGroup, language, lastPhrase, MARKER, match, MATCH, MAX, maxOccurrence, message, MESSAGE, MIN, minOccurrence, NAME, NEGATE, NEGATE_POS, NO, OFF, ON, OR, orGroupCounter, PATTERN, patternToken, patternTokens, phraseId, phraseIdRef, phraseMap, phrasePatternTokens, PHRASES, pLocator, posNegation, posRegExp, POSTAG, POSTAG_REGEXP, posToken, REGEXP, regExpression, RULE, RULEGROUP, ruleGroupId, rules, RULES, SCOPE, shortMessage, shortMessageForRuleGroup, SKIP, skipPos, SPACEBEFORE, startPositionCorrection, SUGGESTION, suggestionMatches, suggestionMatchesOutMsg, suggestionsOutMsg, TOKEN, tokenCounter, tokenInflected, tokenLevelCaseSensitive, tokenLevelCaseSet, tokenNegated, tokenReference, tokenSpaceBefore, tokenSpaceBeforeSet, uFeature, UNIFICATION, UNIFY, UNIFY_IGNORE, uniNegation, url, urlForRuleGroup, uType, uTypeList, YES| Constructor and Description |
|---|
PatternRuleHandler() |
| 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(PatternRule rule) |
void |
startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs) |
addLegacyMatches, error, finalizeExceptions, finalizePhrase, finalizeTokens, getRules, phraseElementInit, preparePhrase, processElement, resetException, resetToken, setDocumentLocator, setExceptions, setMatchElement, setToken, startPattern, warningendDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic static final String TYPE
protected Category category
protected String categoryIssueType
protected String ruleGroupIssueType
protected String ruleIssueType
protected String name
protected String filterClassName
protected String filterArgs
public void startElement(String namespaceURI, String lName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected void prepareRule(PatternRule rule)
public void characters(char[] buf,
int offset,
int len)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandler