public class XSDHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ALLOW_JAVA_ENCODINGS
Feature identifier: allow java encodings
|
protected static java.lang.String |
CONTINUE_AFTER_FATAL_ERROR
Feature identifier: continue after fatal error
|
protected static boolean |
DEBUG_NODE_POOL |
protected static java.lang.String |
DISALLOW_DOCTYPE
Feature: disallow doctype
|
protected static java.lang.String |
ENTITY_MANAGER
Property identifier: entity manager.
|
static java.lang.String |
ENTITY_RESOLVER
Property identifier: entity resolver.
|
protected static java.lang.String |
ERROR_HANDLER
Property identifier: error handler.
|
static java.lang.String |
ERROR_REPORTER
Property identifier: error reporter.
|
protected XSDeclarationPool |
fDeclPool |
protected java.util.Hashtable |
fNotationRegistry |
protected static java.lang.String |
GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations
|
protected static java.lang.String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations
|
protected static java.lang.String |
JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source.
|
protected static java.lang.String |
LOCALE
Property identifier: locale.
|
protected static java.lang.String |
NAMESPACE_GROWTH
Feature identifier: namespace growth
|
static java.lang.String |
REDEF_IDENTIFIER |
protected static java.lang.String |
SECURITY_MANAGER
Property identifier: security manager.
|
protected static java.lang.String |
STANDARD_URI_CONFORMANT_FEATURE
Feature identifier: allow java encodings
|
protected static java.lang.String |
STRING_INTERNING
Feature identifier: string interning.
|
static java.lang.String |
SYMBOL_TABLE
Property identifier: symbol table.
|
protected static java.lang.String |
TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates
|
protected static java.lang.String |
VALIDATE_ANNOTATIONS
Feature identifier: validate annotations.
|
protected static java.lang.String |
VALIDATION
Feature identifier: validation.
|
static java.lang.String |
XMLGRAMMAR_POOL
Property identifier: grammar pool.
|
protected static java.lang.String |
XMLSCHEMA_VALIDATION
feature identifier: XML Schema validation
|
Constructor and Description |
---|
XSDHandler() |
XSDHandler(XSGrammarBucket gBucket) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildGlobalNameRegistries() |
protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo |
constructTrees(org.w3c.dom.Element schemaRoot,
java.lang.String locationHint,
XSDDescription desc,
boolean nsCollision) |
SimpleLocator |
element2Locator(org.w3c.dom.Element e)
Extract location information from an Element node, and create a
new SimpleLocator object from such information.
|
boolean |
element2Locator(org.w3c.dom.Element e,
SimpleLocator l)
Extract location information from an Element node, store such
information in the passed-in SimpleLocator object, then return
true.
|
protected SchemaGrammar |
findGrammar(XSDDescription desc,
boolean ignoreConflict)
First try to find a grammar in the bucket, if failed, consult the
grammar pool.
|
protected java.lang.Object |
getGlobalDecl(java.lang.String declKey,
int declType) |
protected java.lang.Object |
getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema,
int declType,
org.apache.xerces.xni.QName declToTraverse,
org.w3c.dom.Element elmNode) |
protected java.lang.Object |
getGlobalDeclFromGrammar(SchemaGrammar sGrammar,
int declType,
java.lang.String localpart) |
protected java.lang.Object |
getGlobalDeclFromGrammar(SchemaGrammar sGrammar,
int declType,
java.lang.String localpart,
java.lang.String schemaLoc) |
protected java.util.Hashtable |
getIDRegistry_sub() |
protected java.util.Hashtable |
getIDRegistry() |
SchemaGrammar |
parseSchema(org.apache.xerces.xni.parser.XMLInputSource is,
XSDDescription desc,
java.util.Hashtable locationPairs)
This method initiates the parse of a schema.
|
void |
reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager) |
protected void |
resolveKeyRefs() |
java.lang.String |
schemaDocument2SystemId(org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc) |
void |
setDeclPool(XSDeclarationPool declPool) |
void |
setDVFactory(SchemaDVFactory dvFactory) |
void |
setGenerateSyntheticAnnotations(boolean state) |
protected void |
storeKeyRef(org.w3c.dom.Element keyrefToStore,
org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc,
XSElementDecl currElemDecl) |
protected java.lang.Object |
traverseGlobalDecl(int declType,
org.w3c.dom.Element decl,
org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc,
SchemaGrammar grammar) |
protected void |
traverseSchemas(java.util.ArrayList annotationInfo) |
protected static final java.lang.String VALIDATION
protected static final java.lang.String XMLSCHEMA_VALIDATION
protected static final java.lang.String ALLOW_JAVA_ENCODINGS
protected static final java.lang.String CONTINUE_AFTER_FATAL_ERROR
protected static final java.lang.String STANDARD_URI_CONFORMANT_FEATURE
protected static final java.lang.String DISALLOW_DOCTYPE
protected static final java.lang.String GENERATE_SYNTHETIC_ANNOTATIONS
protected static final java.lang.String VALIDATE_ANNOTATIONS
protected static final java.lang.String HONOUR_ALL_SCHEMALOCATIONS
protected static final java.lang.String NAMESPACE_GROWTH
protected static final java.lang.String TOLERATE_DUPLICATES
protected static final java.lang.String STRING_INTERNING
protected static final java.lang.String ERROR_HANDLER
protected static final java.lang.String JAXP_SCHEMA_SOURCE
public static final java.lang.String ENTITY_RESOLVER
protected static final java.lang.String ENTITY_MANAGER
public static final java.lang.String ERROR_REPORTER
public static final java.lang.String XMLGRAMMAR_POOL
public static final java.lang.String SYMBOL_TABLE
protected static final java.lang.String SECURITY_MANAGER
protected static final java.lang.String LOCALE
protected static final boolean DEBUG_NODE_POOL
public static final java.lang.String REDEF_IDENTIFIER
protected java.util.Hashtable fNotationRegistry
protected XSDeclarationPool fDeclPool
public XSDHandler()
public XSDHandler(XSGrammarBucket gBucket)
public SchemaGrammar parseSchema(org.apache.xerces.xni.parser.XMLInputSource is, XSDDescription desc, java.util.Hashtable locationPairs) throws java.io.IOException
is
- desc
- locationPairs
- java.io.IOException
protected SchemaGrammar findGrammar(XSDDescription desc, boolean ignoreConflict)
protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo constructTrees(org.w3c.dom.Element schemaRoot, java.lang.String locationHint, XSDDescription desc, boolean nsCollision)
protected void buildGlobalNameRegistries()
protected void traverseSchemas(java.util.ArrayList annotationInfo)
protected java.lang.Object getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema, int declType, org.apache.xerces.xni.QName declToTraverse, org.w3c.dom.Element elmNode)
protected java.lang.Object getGlobalDecl(java.lang.String declKey, int declType)
protected java.lang.Object getGlobalDeclFromGrammar(SchemaGrammar sGrammar, int declType, java.lang.String localpart)
protected java.lang.Object getGlobalDeclFromGrammar(SchemaGrammar sGrammar, int declType, java.lang.String localpart, java.lang.String schemaLoc)
protected java.lang.Object traverseGlobalDecl(int declType, org.w3c.dom.Element decl, org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc, SchemaGrammar grammar)
public java.lang.String schemaDocument2SystemId(org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc)
protected void resolveKeyRefs()
protected java.util.Hashtable getIDRegistry()
protected java.util.Hashtable getIDRegistry_sub()
protected void storeKeyRef(org.w3c.dom.Element keyrefToStore, org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc, XSElementDecl currElemDecl)
public void setDeclPool(XSDeclarationPool declPool)
public void setDVFactory(SchemaDVFactory dvFactory)
public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
public SimpleLocator element2Locator(org.w3c.dom.Element e)
public boolean element2Locator(org.w3c.dom.Element e, SimpleLocator l)
public void setGenerateSyntheticAnnotations(boolean state)
state
- Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.