Java Doc for SchemaGrammar.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » xs » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.impl.xs.SchemaGrammar

SchemaGrammar
public class SchemaGrammar implements XSGrammar,XSNamespaceItem(Code)
This class is to hold all schema component declaration that are declared within one namespace. The Grammar class this class extends contains what little commonality there is between XML Schema and DTD grammars. It's useful to distinguish grammar objects from other kinds of object when they exist in pools or caches.
author:
   Sandy Gao, IBM
author:
   Elena Litani, IBM
version:
   $Id: SchemaGrammar.java 446734 2006-09-15 20:51:23Z mrglavas $

Inner Class :public static class BuiltinSchemaGrammar extends SchemaGrammar
Inner Class :final public static class Schema4Annotations extends SchemaGrammar

Field Summary
final public static  Schema4AnnotationsSG_Schema4Annotations
    
final public static  BuiltinSchemaGrammarSG_SchemaNS
    
final public static  BuiltinSchemaGrammarSG_XSI
    
 XSAnnotationImpl[]fAnnotations
    
final public static  XSSimpleTypefAnySimpleType
    
final public static  XSComplexTypeDeclfAnyType
    
 booleanfFullChecked
    
 SymbolHashfGlobalAttrDecls
    
 SymbolHashfGlobalAttrGrpDecls
    
 SymbolHashfGlobalElemDecls
    
 SymbolHashfGlobalGroupDecls
    
 SymbolHashfGlobalIDConstraintDecls
    
 SymbolHashfGlobalNotationDecls
    
 SymbolHashfGlobalTypeDecls
    
 XSDDescriptionfGrammarDescription
    
 VectorfImported
    
 intfNumAnnotations
    
 StringfTargetNamespace
    

Constructor Summary
protected  SchemaGrammar()
    
public  SchemaGrammar(String targetNamespace, XSDDescription grammarDesc, SymbolTable symbolTable)
     Default constructor.

Method Summary
public  voidaddAnnotation(XSAnnotationImpl annotation)
    
public  voidaddComplexTypeDecl(XSComplexTypeDecl decl, SimpleLocator locator)
    
public synchronized  voidaddDocument(Object document, String location)
    
public  voidaddGlobalAttributeDecl(XSAttributeDecl decl)
    
public  voidaddGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)
    
public  voidaddGlobalElementDecl(XSElementDecl decl)
    
public  voidaddGlobalGroupDecl(XSGroupDecl decl)
    
public  voidaddGlobalNotationDecl(XSNotationDecl decl)
    
public  voidaddGlobalTypeDecl(XSTypeDefinition decl)
    
final public  voidaddIDConstraintDecl(XSElementDecl elmDecl, IdentityConstraint decl)
    
public  voidaddRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator)
    
public  XSObjectListgetAnnotations()
    
public  XSAttributeDeclarationgetAttributeDeclaration(String name)
     Convenience method.
public  XSAttributeGroupDefinitiongetAttributeGroup(String name)
     Convenience method.
public synchronized  XSNamedMapgetComponents(short objectType)
     [schema components]: a list of top-level components, i.e.
synchronized  DOMParsergetDOMParser()
    
public  StringListgetDocumentLocations()
    
public  XSElementDeclarationgetElementDeclaration(String name)
     Convenience method.
final public  XSAttributeDeclgetGlobalAttributeDecl(String declName)
    
final public  XSAttributeGroupDeclgetGlobalAttributeGroupDecl(String declName)
    
final public  XSElementDeclgetGlobalElementDecl(String declName)
    
final public  XSGroupDeclgetGlobalGroupDecl(String declName)
    
final public  XSNotationDeclgetGlobalNotationDecl(String declName)
    
final public  XSTypeDefinitiongetGlobalTypeDecl(String declName)
    
public  XMLGrammarDescriptiongetGrammarDescription()
    
final public  IdentityConstraintgetIDConstraintDecl(String declName)
    
public  VectorgetImportedGrammars()
    
public  XSModelGroupDefinitiongetModelGroupDefinition(String name)
     Convenience method.
public  XSNotationDeclarationgetNotationDeclaration(String name)
     Convenience method.
final  SimpleLocator[]getRGLocators()
    
final  XSGroupDecl[]getRedefinedGroupDecls()
    
synchronized  SAXParsergetSAXParser()
    
public  StringgetSchemaNamespace()
    
final  XSElementDecl[]getSubstitutionGroups()
    
final public  StringgetTargetNamespace()
     Returns this grammar's target namespace.
public  XSTypeDefinitiongetTypeDefinition(String name)
     Convenience method.
final  SimpleLocator[]getUncheckedCTLocators()
    
final  XSComplexTypeDecl[]getUncheckedComplexTypeDecls()
    
final public  booleanhasIDConstraints()
    
public  booleanisNamespaceAware()
    
final static  XSComplexTypeDecl[]resize(XSComplexTypeDecl[] oldArray, int newSize)
    
final static  XSGroupDecl[]resize(XSGroupDecl[] oldArray, int newSize)
    
final static  XSElementDecl[]resize(XSElementDecl[] oldArray, int newSize)
    
final static  SimpleLocator[]resize(SimpleLocator[] oldArray, int newSize)
    
public  voidsetImportedGrammars(Vector importedGrammars)
    
final  voidsetUncheckedTypeNum(int newSize)
     after the first-round checking, some types don't need to be checked against UPA again.
public  XSModeltoXSModel()
     Return an XSModel that represents components in this schema grammar.
public  XSModeltoXSModel(XSGrammar[] grammars)
    

Field Detail
SG_Schema4Annotations
final public static Schema4Annotations SG_Schema4Annotations(Code)



SG_SchemaNS
final public static BuiltinSchemaGrammar SG_SchemaNS(Code)



SG_XSI
final public static BuiltinSchemaGrammar SG_XSI(Code)



fAnnotations
XSAnnotationImpl[] fAnnotations(Code)



fAnySimpleType
final public static XSSimpleType fAnySimpleType(Code)



fAnyType
final public static XSComplexTypeDecl fAnyType(Code)



fFullChecked
boolean fFullChecked(Code)



fGlobalAttrDecls
SymbolHash fGlobalAttrDecls(Code)



fGlobalAttrGrpDecls
SymbolHash fGlobalAttrGrpDecls(Code)



fGlobalElemDecls
SymbolHash fGlobalElemDecls(Code)



fGlobalGroupDecls
SymbolHash fGlobalGroupDecls(Code)



fGlobalIDConstraintDecls
SymbolHash fGlobalIDConstraintDecls(Code)



fGlobalNotationDecls
SymbolHash fGlobalNotationDecls(Code)



fGlobalTypeDecls
SymbolHash fGlobalTypeDecls(Code)



fGrammarDescription
XSDDescription fGrammarDescription(Code)



fImported
Vector fImported(Code)



fNumAnnotations
int fNumAnnotations(Code)



fTargetNamespace
String fTargetNamespace(Code)




Constructor Detail
SchemaGrammar
protected SchemaGrammar()(Code)



SchemaGrammar
public SchemaGrammar(String targetNamespace, XSDDescription grammarDesc, SymbolTable symbolTable)(Code)
Default constructor.
Parameters:
  targetNamespace -
Parameters:
  grammarDesc - the XMLGrammarDescription corresponding to this objecat the least a systemId should always be known.
Parameters:
  symbolTable - needed for annotation support




Method Detail
addAnnotation
public void addAnnotation(XSAnnotationImpl annotation)(Code)



addComplexTypeDecl
public void addComplexTypeDecl(XSComplexTypeDecl decl, SimpleLocator locator)(Code)
add one complex type decl: for later constraint checking



addDocument
public synchronized void addDocument(Object document, String location)(Code)



addGlobalAttributeDecl
public void addGlobalAttributeDecl(XSAttributeDecl decl)(Code)
register one global attribute



addGlobalAttributeGroupDecl
public void addGlobalAttributeGroupDecl(XSAttributeGroupDecl decl)(Code)
register one global attribute group



addGlobalElementDecl
public void addGlobalElementDecl(XSElementDecl decl)(Code)
register one global element



addGlobalGroupDecl
public void addGlobalGroupDecl(XSGroupDecl decl)(Code)
register one global group



addGlobalNotationDecl
public void addGlobalNotationDecl(XSNotationDecl decl)(Code)
register one global notation



addGlobalTypeDecl
public void addGlobalTypeDecl(XSTypeDefinition decl)(Code)
register one global type



addIDConstraintDecl
final public void addIDConstraintDecl(XSElementDecl elmDecl, IdentityConstraint decl)(Code)
register one identity constraint



addRedefinedGroupDecl
public void addRedefinedGroupDecl(XSGroupDecl derived, XSGroupDecl base, SimpleLocator locator)(Code)
add a group redefined by restriction: for later constraint checking



getAnnotations
public XSObjectList getAnnotations()(Code)

See Also:   org.apache.xerces.xs.XSNamespaceItem.getAnnotations



getAttributeDeclaration
public XSAttributeDeclaration getAttributeDeclaration(String name)(Code)
Convenience method. Returns a top-level attribute declaration.
Parameters:
  name - The name of the declaration. A top-level attribute declaration or null if such declarationdoes not exist.



getAttributeGroup
public XSAttributeGroupDefinition getAttributeGroup(String name)(Code)
Convenience method. Returns a top-level attribute group definition.
Parameters:
  name - The name of the definition. A top-level attribute group definition or null if suchdefinition does not exist.



getComponents
public synchronized XSNamedMap getComponents(short objectType)(Code)
[schema components]: a list of top-level components, i.e. element declarations, attribute declarations, etc.
Parameters:
  objectType - The type of the declaration, i.e. ELEMENT_DECLARATION. Note that XSTypeDefinition.SIMPLE_TYPE and XSTypeDefinition.COMPLEX_TYPE can also be used as the objectType to retrieve only complex types or simple types, instead of all types. A list of top-level definition of the specified type in objectType or an empty XSNamedMap if no such definitions exist.



getDOMParser
synchronized DOMParser getDOMParser()(Code)



getDocumentLocations
public StringList getDocumentLocations()(Code)
[document location]
See Also:    [document location] a list of document information item



getElementDeclaration
public XSElementDeclaration getElementDeclaration(String name)(Code)
Convenience method. Returns a top-level element declaration.
Parameters:
  name - The name of the declaration. A top-level element declaration or null if such declarationdoes not exist.



getGlobalAttributeDecl
final public XSAttributeDecl getGlobalAttributeDecl(String declName)(Code)
get one global attribute



getGlobalAttributeGroupDecl
final public XSAttributeGroupDecl getGlobalAttributeGroupDecl(String declName)(Code)
get one global attribute group



getGlobalElementDecl
final public XSElementDecl getGlobalElementDecl(String declName)(Code)
get one global element



getGlobalGroupDecl
final public XSGroupDecl getGlobalGroupDecl(String declName)(Code)
get one global group



getGlobalNotationDecl
final public XSNotationDecl getGlobalNotationDecl(String declName)(Code)
get one global notation



getGlobalTypeDecl
final public XSTypeDefinition getGlobalTypeDecl(String declName)(Code)
get one global type



getGrammarDescription
public XMLGrammarDescription getGrammarDescription()(Code)



getIDConstraintDecl
final public IdentityConstraint getIDConstraintDecl(String declName)(Code)
get one identity constraint



getImportedGrammars
public Vector getImportedGrammars()(Code)



getModelGroupDefinition
public XSModelGroupDefinition getModelGroupDefinition(String name)(Code)
Convenience method. Returns a top-level model group definition.
Parameters:
  name - The name of the definition. A top-level model group definition definition or null if suchdefinition does not exist.



getNotationDeclaration
public XSNotationDeclaration getNotationDeclaration(String name)(Code)
Convenience method. Returns a top-level notation declaration.
Parameters:
  name - The name of the declaration. A top-level notation declaration or null if such declarationdoes not exist.



getRGLocators
final SimpleLocator[] getRGLocators()(Code)
get the error locator of all redefined groups



getRedefinedGroupDecls
final XSGroupDecl[] getRedefinedGroupDecls()(Code)
get all redefined groups: for later constraint checking



getSAXParser
synchronized SAXParser getSAXParser()(Code)



getSchemaNamespace
public String getSchemaNamespace()(Code)
[schema namespace]
See Also:    [schema namespace] The target namespace of this item.



getSubstitutionGroups
final XSElementDecl[] getSubstitutionGroups()(Code)
get all substitution group information: for the 3 constraint checking



getTargetNamespace
final public String getTargetNamespace()(Code)
Returns this grammar's target namespace.



getTypeDefinition
public XSTypeDefinition getTypeDefinition(String name)(Code)
Convenience method. Returns a top-level simple or complex type definition.
Parameters:
  name - The name of the definition. An XSTypeDefinition or null if such definitiondoes not exist.



getUncheckedCTLocators
final SimpleLocator[] getUncheckedCTLocators()(Code)
get the error locator of all complex type decls



getUncheckedComplexTypeDecls
final XSComplexTypeDecl[] getUncheckedComplexTypeDecls()(Code)
get all complex type decls: for later constraint checking



hasIDConstraints
final public boolean hasIDConstraints()(Code)
get one identity constraint



isNamespaceAware
public boolean isNamespaceAware()(Code)



resize
final static XSComplexTypeDecl[] resize(XSComplexTypeDecl[] oldArray, int newSize)(Code)



resize
final static XSGroupDecl[] resize(XSGroupDecl[] oldArray, int newSize)(Code)



resize
final static XSElementDecl[] resize(XSElementDecl[] oldArray, int newSize)(Code)



resize
final static SimpleLocator[] resize(SimpleLocator[] oldArray, int newSize)(Code)



setImportedGrammars
public void setImportedGrammars(Vector importedGrammars)(Code)



setUncheckedTypeNum
final void setUncheckedTypeNum(int newSize)(Code)
after the first-round checking, some types don't need to be checked against UPA again. here we trim the array to the proper size.



toXSModel
public XSModel toXSModel()(Code)
Return an XSModel that represents components in this schema grammar. an XSModel representing this schema grammar



toXSModel
public XSModel toXSModel(XSGrammar[] grammars)(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.