com.thaiopensource.relaxng.parse.sax
Class SchemaParser
java.lang.Object
com.thaiopensource.relaxng.parse.sax.SchemaParser
- All Implemented Interfaces:
- ParsedPatternFuture
class SchemaParser
- extends Object
- implements ParsedPatternFuture
Method Summary |
private String |
checkNCName(String str)
|
private void |
checkUri(String s)
|
private void |
error(SAXParseException e)
|
private void |
error(String key)
|
private void |
error(String key,
Locator loc)
|
private void |
error(String key,
String arg)
|
private void |
error(String key,
String arg,
Locator loc)
|
(package private) void |
error(String key,
String arg1,
String arg2)
|
private void |
error(String key,
String arg1,
String arg2,
Locator loc)
|
private ParsedNameClass |
expandName(String name,
String ns,
Annotations anno)
|
private String |
findPrefix(String qName,
String uri)
|
private Context |
getContext()
|
ParsedPattern |
getParsedPattern()
|
private void |
initNameClassTable()
|
private void |
initPatternTable()
|
private Location |
makeLocation()
|
private String |
resolve(String systemId)
|
private void |
warning(SAXParseException e)
|
(package private) void |
warning(String key)
|
private void |
warning(String key,
Locator loc)
|
private void |
warning(String key,
String arg)
|
private void |
warning(String key,
String arg,
Locator loc)
|
private void |
warning(String key,
String arg1,
String arg2)
|
private void |
warning(String key,
String arg1,
String arg2,
Locator loc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
relaxngURIPrefix
private static final String relaxngURIPrefix
relaxng10URI
static final String relaxng10URI
- See Also:
- Constant Field Values
localizer
private static final Localizer localizer
relaxngURI
private String relaxngURI
xr
private final XMLReader xr
eh
private final ErrorHandler eh
schemaBuilder
private final SchemaBuilder schemaBuilder
startPattern
private ParsedPattern startPattern
locator
private Locator locator
xmlBaseHandler
private final XmlBaseHandler xmlBaseHandler
context
private final SchemaParser.ContextImpl context
hadError
private boolean hadError
patternTable
private Hashtable patternTable
nameClassTable
private Hashtable nameClassTable
INIT_CHILD_ALLOC
private static final int INIT_CHILD_ALLOC
- See Also:
- Constant Field Values
PATTERN_CONTEXT
private static final int PATTERN_CONTEXT
- See Also:
- Constant Field Values
ANY_NAME_CONTEXT
private static final int ANY_NAME_CONTEXT
- See Also:
- Constant Field Values
NS_NAME_CONTEXT
private static final int NS_NAME_CONTEXT
- See Also:
- Constant Field Values
SchemaParser
SchemaParser(XMLReader xr,
ErrorHandler eh,
EntityResolver er,
SchemaBuilder schemaBuilder,
IncludedGrammar grammar,
Scope scope)
throws SAXException
- Throws:
SAXException
initPatternTable
private void initPatternTable()
initNameClassTable
private void initNameClassTable()
getParsedPattern
public ParsedPattern getParsedPattern()
throws IllegalSchemaException
- Specified by:
getParsedPattern
in interface ParsedPatternFuture
- Throws:
IllegalSchemaException
error
private void error(String key)
throws SAXException
- Throws:
SAXException
error
private void error(String key,
String arg)
throws SAXException
- Throws:
SAXException
error
void error(String key,
String arg1,
String arg2)
throws SAXException
- Throws:
SAXException
error
private void error(String key,
Locator loc)
throws SAXException
- Throws:
SAXException
error
private void error(String key,
String arg,
Locator loc)
throws SAXException
- Throws:
SAXException
error
private void error(String key,
String arg1,
String arg2,
Locator loc)
throws SAXException
- Throws:
SAXException
error
private void error(SAXParseException e)
throws SAXException
- Throws:
SAXException
warning
void warning(String key)
throws SAXException
- Throws:
SAXException
warning
private void warning(String key,
String arg)
throws SAXException
- Throws:
SAXException
warning
private void warning(String key,
String arg1,
String arg2)
throws SAXException
- Throws:
SAXException
warning
private void warning(String key,
Locator loc)
throws SAXException
- Throws:
SAXException
warning
private void warning(String key,
String arg,
Locator loc)
throws SAXException
- Throws:
SAXException
warning
private void warning(String key,
String arg1,
String arg2,
Locator loc)
throws SAXException
- Throws:
SAXException
warning
private void warning(SAXParseException e)
throws SAXException
- Throws:
SAXException
getContext
private Context getContext()
expandName
private ParsedNameClass expandName(String name,
String ns,
Annotations anno)
throws SAXException
- Throws:
SAXException
findPrefix
private String findPrefix(String qName,
String uri)
checkNCName
private String checkNCName(String str)
throws SAXException
- Throws:
SAXException
resolve
private String resolve(String systemId)
throws SAXException
- Throws:
SAXException
makeLocation
private Location makeLocation()
checkUri
private void checkUri(String s)
throws SAXException
- Throws:
SAXException