public class SyntaxCheckerDescriptionSchemaParser extends AbstractSchemaParser
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this class
|
lexer, monitor, parser
Constructor and Description |
---|
SyntaxCheckerDescriptionSchemaParser()
Creates a schema parser instance.
|
Modifier and Type | Method and Description |
---|---|
SyntaxCheckerDescription |
parse(String schemaDescription)
Parses a SyntaxChecker description
|
SyntaxCheckerDescription |
parseSyntaxCheckerDescription(String syntaxCheckerDescription)
Parses a syntax checker description:
|
isQuirksMode, reset, setParserMonitor, setQuirksMode, updateSchemaName
protected static final org.slf4j.Logger LOG
public SyntaxCheckerDescriptionSchemaParser()
public SyntaxCheckerDescription parseSyntaxCheckerDescription(String syntaxCheckerDescription) throws ParseException
SyntaxCheckerDescription = LPAREN WSP numericoid ; object identifier [ SP "DESC" SP qdstring ] ; description SP "FQCN" SP fqcn ; fully qualified class name [ SP "BYTECODE" SP base64 ] ; optional base64 encoded bytecode extensions WSP RPAREN ; extensions base64 = *(4base64-char) base64-char = ALPHA / DIGIT / "+" / "/" fqcn = fqcnComponent 1*( DOT fqcnComponent ) fqcnComponent = ??? extensions = *( SP xstring SP qdstrings ) xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE )
syntaxCheckerDescription
- the syntax checker description to be parsedParseException
- if there are any recognition errors (bad syntax)public SyntaxCheckerDescription parse(String schemaDescription) throws ParseException
parse
in class AbstractSchemaParser
schemaDescription
- The SyntaxChecker description to parseParseException
- If the parsing failedCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.