public class XSDHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ALLOW_JAVA_ENCODINGS
Feature identifier: allow java encodings
|
protected static String |
CONTINUE_AFTER_FATAL_ERROR
Feature identifier: continue after fatal error
|
protected static boolean |
DEBUG_NODE_POOL |
protected static String |
DISALLOW_DOCTYPE
Feature: disallow doctype
|
protected static String |
ENTITY_MANAGER
Property identifier: entity manager.
|
static String |
ENTITY_RESOLVER
Property identifier: entity resolver.
|
protected static String |
ERROR_HANDLER
Property identifier: error handler.
|
static String |
ERROR_REPORTER
Property identifier: error reporter.
|
protected XSDeclarationPool |
fDeclPool |
protected Hashtable |
fNotationRegistry |
protected static String |
GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations
|
protected static String |
HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations
|
protected static String |
JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source.
|
static String |
REDEF_IDENTIFIER |
protected static String |
SECURITY_MANAGER
Property identifier: security manager.
|
protected static String |
STANDARD_URI_CONFORMANT_FEATURE
Feature identifier: allow java encodings
|
protected static String |
STRING_INTERNING
Feature identifier: string interning.
|
static String |
SYMBOL_TABLE
Property identifier: symbol table.
|
protected static String |
VALIDATE_ANNOTATIONS
Feature identifier: validate annotations.
|
protected static String |
VALIDATION
Feature identifier: validation.
|
static String |
XMLGRAMMAR_POOL
Property identifier: grammar pool.
|
protected static 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(Element schemaRoot,
String locationHint,
XSDDescription desc) |
SimpleLocator |
element2Locator(Element e)
Extract location information from an Element node, and create a
new SimpleLocator object from such information.
|
boolean |
element2Locator(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)
First try to find a grammar in the bucket, if failed, consult the
grammar pool.
|
protected Object |
getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema,
int declType,
QName declToTraverse,
Element elmNode) |
protected Hashtable |
getIDRegistry_sub() |
protected Hashtable |
getIDRegistry() |
SchemaGrammar |
parseSchema(XMLInputSource is,
XSDDescription desc,
Hashtable locationPairs)
This method initiates the parse of a schema.
|
void |
reset(XMLComponentManager componentManager) |
protected void |
resolveKeyRefs() |
void |
setDeclPool(XSDeclarationPool declPool) |
void |
setGenerateSyntheticAnnotations(boolean state) |
protected void |
storeKeyRef(Element keyrefToStore,
org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc,
XSElementDecl currElemDecl) |
protected void |
traverseSchemas(ArrayList annotationInfo) |
protected static final String VALIDATION
protected static final String XMLSCHEMA_VALIDATION
protected static final String ALLOW_JAVA_ENCODINGS
protected static final String CONTINUE_AFTER_FATAL_ERROR
protected static final String STANDARD_URI_CONFORMANT_FEATURE
protected static final String DISALLOW_DOCTYPE
protected static final String GENERATE_SYNTHETIC_ANNOTATIONS
protected static final String VALIDATE_ANNOTATIONS
protected static final String HONOUR_ALL_SCHEMALOCATIONS
protected static final String STRING_INTERNING
protected static final String ERROR_HANDLER
protected static final String JAXP_SCHEMA_SOURCE
public static final String ENTITY_RESOLVER
protected static final String ENTITY_MANAGER
public static final String ERROR_REPORTER
public static final String XMLGRAMMAR_POOL
public static final String SYMBOL_TABLE
protected static final String SECURITY_MANAGER
protected static final boolean DEBUG_NODE_POOL
public static final String REDEF_IDENTIFIER
protected Hashtable fNotationRegistry
protected XSDeclarationPool fDeclPool
public XSDHandler()
public XSDHandler(XSGrammarBucket gBucket)
public SchemaGrammar parseSchema(XMLInputSource is, XSDDescription desc, Hashtable locationPairs) throws IOException
is
- desc
- locationPairs
- IOException
protected SchemaGrammar findGrammar(XSDDescription desc)
protected org.apache.xerces.impl.xs.traversers.XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc)
protected void buildGlobalNameRegistries()
protected void traverseSchemas(ArrayList annotationInfo)
protected Object getGlobalDecl(org.apache.xerces.impl.xs.traversers.XSDocumentInfo currSchema, int declType, QName declToTraverse, Element elmNode)
protected void resolveKeyRefs()
protected Hashtable getIDRegistry()
protected Hashtable getIDRegistry_sub()
protected void storeKeyRef(Element keyrefToStore, org.apache.xerces.impl.xs.traversers.XSDocumentInfo schemaDoc, XSElementDecl currElemDecl)
public void setDeclPool(XSDeclarationPool declPool)
public void reset(XMLComponentManager componentManager)
public SimpleLocator element2Locator(Element e)
public boolean element2Locator(Element e, SimpleLocator l)
public void setGenerateSyntheticAnnotations(boolean state)
state
- Copyright © 2018 JBoss by Red Hat. All rights reserved.