Java Doc for XSDHandler.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » xs » traversers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.impl.xs.traversers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.impl.xs.traversers.XSDHandler

XSDHandler
public class XSDHandler (Code)
The purpose of this class is to co-ordinate the construction of a grammar object corresponding to a schema. To do this, it must be prepared to parse several schema documents (for instance if the schema document originally referred to contains or information items). If any of the schemas imports a schema, other grammars may be constructed as a side-effect.
author:
   Neil Graham, IBM
author:
   Pavani Mukthipudi, Sun Microsystems
version:
   $Id: XSDHandler.java 449487 2006-09-24 21:11:28Z mrglavas $


Field Summary
final protected static  StringALLOW_JAVA_ENCODINGS
    
final static  intATTRIBUTEGROUP_TYPE
    
final static  intATTRIBUTE_TYPE
    
final protected static  StringCONTINUE_AFTER_FATAL_ERROR
    
final protected static  booleanDEBUG_NODE_POOL
    
final protected static  StringDISALLOW_DOCTYPE
    
final static  intELEMENT_TYPE
    
final protected static  StringENTITY_MANAGER
     Property identifier: entity manager.
final public static  StringENTITY_RESOLVER
     Property identifier: entity resolver.
final protected static  StringERROR_HANDLER
     Property identifier: error handler.
final public static  StringERROR_REPORTER
     Property identifier: error reporter.
final protected static  StringGENERATE_SYNTHETIC_ANNOTATIONS
    
final static  intGROUP_TYPE
    
final protected static  StringHONOUR_ALL_SCHEMALOCATIONS
    
final static  intIDENTITYCONSTRAINT_TYPE
    
final protected static  StringJAXP_SCHEMA_SOURCE
     Property identifier: JAXP schema source.
final static  intNOTATION_TYPE
    
final public static  StringREDEF_IDENTIFIER
    
final protected static  StringSECURITY_MANAGER
     Property identifier: security manager.
final protected static  StringSTANDARD_URI_CONFORMANT_FEATURE
    
final protected static  StringSTRING_INTERNING
     Feature identifier: string interning.
final public static  StringSYMBOL_TABLE
     Property identifier: symbol table.
final static  intTYPEDECL_TYPE
    
final protected static  StringVALIDATE_ANNOTATIONS
     Feature identifier: validate annotations.
final protected static  StringVALIDATION
     Feature identifier: validation.
final public static  StringXMLGRAMMAR_POOL
     Property identifier: grammar pool.
final protected static  StringXMLSCHEMA_VALIDATION
    
 XML11ConfigurationfAnnotationValidator
    
 XSDAttributeGroupTraverserfAttributeGroupTraverser
    
 XSDAttributeTraverserfAttributeTraverser
    
 XSDComplexTypeTraverserfComplexTypeTraverser
    
protected  XSDeclarationPoolfDeclPool
    
 XSDElementTraverserfElementTraverser
    
 XSAnnotationGrammarPoolfGrammarBucketAdapter
    
 XSDGroupTraverserfGroupTraverser
    
 HashtablefHiddenNodes
    
 XSDKeyrefTraverserfKeyrefTraverser
    
protected  HashtablefNotationRegistry
    
 XSDNotationTraverserfNotationTraverser
    
 SchemaDOMParserfSchemaParser
    
 XSDSimpleTypeTraverserfSimpleTypeTraverser
    
 XSDUniqueOrKeyTraverserfUniqueOrKeyTraverser
    
 XSDWildcardTraverserfWildCardTraverser
    
 SchemaContentHandlerfXSContentHandler
    

Constructor Summary
public  XSDHandler()
    
public  XSDHandler(XSGrammarBucket gBucket)
    

Method Summary
protected  voidbuildGlobalNameRegistries()
    
 voidcheckForDuplicateNames(String qName, Hashtable registry, Hashtable registry_sub, Element currComp, XSDocumentInfo currSchema)
     This method makes sure that if this component is being redefined that it lives in the right schema.
protected  XSDocumentInfoconstructTrees(Element schemaRoot, String locationHint, XSDDescription desc)
    
public  SimpleLocatorelement2Locator(Element e)
     Extract location information from an Element node, and create a new SimpleLocator object from such information.
public  booleanelement2Locator(Element e, SimpleLocator l)
     Extract location information from an Element node, store such information in the passed-in SimpleLocator object, then return true.
 voidfillInLocalElemInfo(Element elmDecl, XSDocumentInfo schemaDoc, int allContextFlags, XSObject parent, XSParticleDecl particle)
    
protected  SchemaGrammarfindGrammar(XSDDescription desc)
     First try to find a grammar in the bucket, if failed, consult the grammar pool.
protected  ObjectgetGlobalDecl(XSDocumentInfo currSchema, int declType, QName declToTraverse, Element elmNode)
    
 SchemaGrammargetGrammar(String tns)
    
 ObjectgetGrpOrAttrGrpRedefinedByRestriction(int type, QName name, XSDocumentInfo currSchema, Element elmNode)
    
protected  HashtablegetIDRegistry()
    
protected  HashtablegetIDRegistry_sub()
    
public  SchemaGrammarparseSchema(XMLInputSource is, XSDDescription desc, Hashtable locationPairs)
     This method initiates the parse of a schema.
 voidprepareForParse()
    
 voidprepareForTraverse()
    
 voidreportSchemaError(String key, Object[] args, Element ele)
    
 voidreportSchemaWarning(String key, Object[] args, Element ele)
    
public  voidreset(XMLComponentManager componentManager)
    
protected  voidresolveKeyRefs()
    
public  voidsetDeclPool(XSDeclarationPool declPool)
    
public  voidsetGenerateSyntheticAnnotations(boolean state)
    
protected  voidstoreKeyRef(Element keyrefToStore, XSDocumentInfo schemaDoc, XSElementDecl currElemDecl)
    
 voidtraverseLocalElements()
     Traverse all the deferred local elements.
protected  voidtraverseSchemas(ArrayList annotationInfo)
    

Field Detail
ALLOW_JAVA_ENCODINGS
final protected static String ALLOW_JAVA_ENCODINGS(Code)
Feature identifier: allow java encodings



ATTRIBUTEGROUP_TYPE
final static int ATTRIBUTEGROUP_TYPE(Code)



ATTRIBUTE_TYPE
final static int ATTRIBUTE_TYPE(Code)



CONTINUE_AFTER_FATAL_ERROR
final protected static String CONTINUE_AFTER_FATAL_ERROR(Code)
Feature identifier: continue after fatal error



DEBUG_NODE_POOL
final protected static boolean DEBUG_NODE_POOL(Code)



DISALLOW_DOCTYPE
final protected static String DISALLOW_DOCTYPE(Code)
Feature: disallow doctype



ELEMENT_TYPE
final static int ELEMENT_TYPE(Code)



ENTITY_MANAGER
final protected static String ENTITY_MANAGER(Code)
Property identifier: entity manager.



ENTITY_RESOLVER
final public static String ENTITY_RESOLVER(Code)
Property identifier: entity resolver.



ERROR_HANDLER
final protected static String ERROR_HANDLER(Code)
Property identifier: error handler.



ERROR_REPORTER
final public static String ERROR_REPORTER(Code)
Property identifier: error reporter.



GENERATE_SYNTHETIC_ANNOTATIONS
final protected static String GENERATE_SYNTHETIC_ANNOTATIONS(Code)
Feature: generate synthetic annotations



GROUP_TYPE
final static int GROUP_TYPE(Code)



HONOUR_ALL_SCHEMALOCATIONS
final protected static String HONOUR_ALL_SCHEMALOCATIONS(Code)
Feature identifier: honour all schemaLocations



IDENTITYCONSTRAINT_TYPE
final static int IDENTITYCONSTRAINT_TYPE(Code)



JAXP_SCHEMA_SOURCE
final protected static String JAXP_SCHEMA_SOURCE(Code)
Property identifier: JAXP schema source.



NOTATION_TYPE
final static int NOTATION_TYPE(Code)



REDEF_IDENTIFIER
final public static String REDEF_IDENTIFIER(Code)



SECURITY_MANAGER
final protected static String SECURITY_MANAGER(Code)
Property identifier: security manager.



STANDARD_URI_CONFORMANT_FEATURE
final protected static String STANDARD_URI_CONFORMANT_FEATURE(Code)
Feature identifier: allow java encodings



STRING_INTERNING
final protected static String STRING_INTERNING(Code)
Feature identifier: string interning.



SYMBOL_TABLE
final public static String SYMBOL_TABLE(Code)
Property identifier: symbol table.



TYPEDECL_TYPE
final static int TYPEDECL_TYPE(Code)



VALIDATE_ANNOTATIONS
final protected static String VALIDATE_ANNOTATIONS(Code)
Feature identifier: validate annotations.



VALIDATION
final protected static String VALIDATION(Code)
Feature identifier: validation.



XMLGRAMMAR_POOL
final public static String XMLGRAMMAR_POOL(Code)
Property identifier: grammar pool.



XMLSCHEMA_VALIDATION
final protected static String XMLSCHEMA_VALIDATION(Code)
feature identifier: XML Schema validation



fAnnotationValidator
XML11Configuration fAnnotationValidator(Code)



fAttributeGroupTraverser
XSDAttributeGroupTraverser fAttributeGroupTraverser(Code)



fAttributeTraverser
XSDAttributeTraverser fAttributeTraverser(Code)



fComplexTypeTraverser
XSDComplexTypeTraverser fComplexTypeTraverser(Code)



fDeclPool
protected XSDeclarationPool fDeclPool(Code)



fElementTraverser
XSDElementTraverser fElementTraverser(Code)



fGrammarBucketAdapter
XSAnnotationGrammarPool fGrammarBucketAdapter(Code)



fGroupTraverser
XSDGroupTraverser fGroupTraverser(Code)



fHiddenNodes
Hashtable fHiddenNodes(Code)



fKeyrefTraverser
XSDKeyrefTraverser fKeyrefTraverser(Code)



fNotationRegistry
protected Hashtable fNotationRegistry(Code)



fNotationTraverser
XSDNotationTraverser fNotationTraverser(Code)



fSchemaParser
SchemaDOMParser fSchemaParser(Code)



fSimpleTypeTraverser
XSDSimpleTypeTraverser fSimpleTypeTraverser(Code)



fUniqueOrKeyTraverser
XSDUniqueOrKeyTraverser fUniqueOrKeyTraverser(Code)



fWildCardTraverser
XSDWildcardTraverser fWildCardTraverser(Code)



fXSContentHandler
SchemaContentHandler fXSContentHandler(Code)




Constructor Detail
XSDHandler
public XSDHandler()(Code)



XSDHandler
public XSDHandler(XSGrammarBucket gBucket)(Code)




Method Detail
buildGlobalNameRegistries
protected void buildGlobalNameRegistries()(Code)



checkForDuplicateNames
void checkForDuplicateNames(String qName, Hashtable registry, Hashtable registry_sub, Element currComp, XSDocumentInfo currSchema)(Code)
This method makes sure that if this component is being redefined that it lives in the right schema. It then renames the component correctly. If it detects a collision--a duplicate definition--then it complains. Note that redefines must be handled carefully: if there is a collision, it may be because we're redefining something we know about or because we've found the thing we're redefining.



constructTrees
protected XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc)(Code)



element2Locator
public SimpleLocator element2Locator(Element e)(Code)
Extract location information from an Element node, and create a new SimpleLocator object from such information. Returning null means no information can be retrieved from the element.



element2Locator
public boolean element2Locator(Element e, SimpleLocator l)(Code)
Extract location information from an Element node, store such information in the passed-in SimpleLocator object, then return true. Returning false means can't extract or store such information.



fillInLocalElemInfo
void fillInLocalElemInfo(Element elmDecl, XSDocumentInfo schemaDoc, int allContextFlags, XSObject parent, XSParticleDecl particle)(Code)



findGrammar
protected SchemaGrammar findGrammar(XSDDescription desc)(Code)
First try to find a grammar in the bucket, if failed, consult the grammar pool. If a grammar is found in the pool, then add it (and all imported ones) into the bucket.



getGlobalDecl
protected Object getGlobalDecl(XSDocumentInfo currSchema, int declType, QName declToTraverse, Element elmNode)(Code)



getGrammar
SchemaGrammar getGrammar(String tns)(Code)
Pull the grammar out of the bucket simply using its TNS as a key



getGrpOrAttrGrpRedefinedByRestriction
Object getGrpOrAttrGrpRedefinedByRestriction(int type, QName name, XSDocumentInfo currSchema, Element elmNode)(Code)



getIDRegistry
protected Hashtable getIDRegistry()(Code)



getIDRegistry_sub
protected Hashtable getIDRegistry_sub()(Code)



parseSchema
public SchemaGrammar parseSchema(XMLInputSource is, XSDDescription desc, Hashtable locationPairs) throws IOException(Code)
This method initiates the parse of a schema. It will likely be called from the Validator and it will make the resulting grammar available; it returns a reference to this object just in case. A reset(XMLComponentManager) must be called before this methods is called.
Parameters:
  is -
Parameters:
  desc -
Parameters:
  locationPairs - the SchemaGrammar
throws:
  IOException -



prepareForParse
void prepareForParse()(Code)



prepareForTraverse
void prepareForTraverse()(Code)



reportSchemaError
void reportSchemaError(String key, Object[] args, Element ele)(Code)



reportSchemaWarning
void reportSchemaWarning(String key, Object[] args, Element ele)(Code)



reset
public void reset(XMLComponentManager componentManager)(Code)



resolveKeyRefs
protected void resolveKeyRefs()(Code)



setDeclPool
public void setDeclPool(XSDeclarationPool declPool)(Code)



setGenerateSyntheticAnnotations
public void setGenerateSyntheticAnnotations(boolean state)(Code)

Parameters:
  state -



storeKeyRef
protected void storeKeyRef(Element keyrefToStore, XSDocumentInfo schemaDoc, XSElementDecl currElemDecl)(Code)



traverseLocalElements
void traverseLocalElements()(Code)
Traverse all the deferred local elements. This method should be called by traverseSchemas after we've done with all the global declarations.



traverseSchemas
protected void traverseSchemas(ArrayList annotationInfo)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.