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


java.lang.Object
   org.apache.xerces.dom.ASModelImpl

ASModelImpl
public class ASModelImpl implements ASModel(Code)
To begin with, an abstract schema is a generic structure that could contain both internal and external subsets. An ASModel is an abstract object that could map to a DTD , an XML Schema , a database schema, etc. An ASModel could represent either an internal or an external subset; hence an abstract schema could be composed of an ASModel representing the internal subset and an ASModel representing the external subset. Note that the ASModel representing the external subset could consult the ASModel representing the internal subset. Furthermore, the ASModel representing the internal subset could be set to null by the setInternalAS method as a mechanism for "removal". In addition, only one ASModel representing the external subset can be specified as "active" and it is possible that none are "active". Finally, the ASModel contains the factory methods needed to create a various types of ASObjects like ASElementDeclaration, ASAttributeDeclaration, etc.

See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.
author:
   Pavani Mukthipudi
author:
   Neil Graham
version:
   $Id: ASModelImpl.java 447266 2006-09-18 05:57:49Z mrglavas $



Field Summary
protected  VectorfASModels
    
protected  SchemaGrammarfGrammar
    
 booleanfNamespaceAware
    

Constructor Summary
public  ASModelImpl()
    
public  ASModelImpl(boolean isNamespaceAware)
    

Method Summary
public  voidaddASModel(ASModel abstractSchema)
     This method will allow the nesting or "importation" of ASModels.
public  ASObjectcloneASObject(boolean deep)
     Creates a copy of this ASObject.
public  ASAttributeDeclarationcreateASAttributeDeclaration(String namespaceURI, String name)
     Creates an attribute declaration.
Parameters:
  namespaceURI - The namespace URI of the attribute being declared.
Parameters:
  name - The name of the attribute.
public  ASContentModelcreateASContentModel(int minOccurs, int maxOccurs, short operator)
     Creates an object which describes part of an ASElementDeclaration's content model.
public  ASElementDeclarationcreateASElementDeclaration(String namespaceURI, String name)
     Creates an element declaration for the element type specified.
Parameters:
  namespaceURI - The namespace URI of the element type being declared.
public  ASEntityDeclarationcreateASEntityDeclaration(String name)
     Creates an ASEntityDeclaration.
public  ASNotationDeclarationcreateASNotationDeclaration(String namespaceURI, String name, String systemId, String publicId)
     Creates a new notation declaration.
public  ASObjectListgetASModels()
     To retrieve a list of nested ASModels without reference to names.
public  StringgetAsHint()
     The hint to locating an ASModel.
public  StringgetAsLocation()
     The URI reference.
public  shortgetAsNodeType()
     A code representing the underlying object as defined above.
public  ASNamedObjectMapgetAttributeDeclarations()
     Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" attribute declarations.
public  booleangetContainer()
     If usage is EXTERNAL_SUBSET or NOT_USED, and the ASModel is simply a container of other ASModels.
public  ASNamedObjectMapgetContentModelDeclarations()
     Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global content model declarations.
public  ASNamedObjectMapgetElementDeclarations()
     Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" element declarations.
public  ASNamedObjectMapgetEntityDeclarations()
     Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" entity declarations.
public  SchemaGrammargetGrammar()
    
public  VectorgetInternalASModels()
    
public  booleangetIsNamespaceAware()
     true if this ASModel defines the document structure in terms of namespaces and local names ; false if the document structure is defined only in terms of QNames.
public  StringgetLocalName()
     Returns the local part of the qualified name of this ASObject.
public  StringgetNamespaceURI()
     The namespace URI of this node, or null if it is unspecified.
public  StringgetNodeName()
     The name of this ASObject depending on the ASObject type.
public  ASNamedObjectMapgetNotationDeclarations()
     Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" notation declarations.
public  ASModelgetOwnerASModel()
     The ASModel object associated with this ASObject.
public  StringgetPrefix()
     The namespace prefix of this node, or null if it is unspecified.
public  shortgetUsageLocation()
     0 if used internally, 1 if used externally, 2 if not all.
public  voidimportASObject(ASObject asobject)
     Imports ASObject into ASModel.
public  voidinsertASObject(ASObject asobject)
     Inserts ASObject into ASModel.
public  voidremoveAS(ASModel as)
     Removes only the specified ASModel from the list of ASModels.
public  voidsetAsHint(String asHint)
     The hint to locating an ASModel.
public  voidsetAsLocation(String asLocation)
     The URI reference.
public  voidsetGrammar(SchemaGrammar grammar)
    
public  voidsetLocalName(String localName)
     Returns the local part of the qualified name of this ASObject.
public  voidsetNamespaceURI(String namespaceURI)
     The namespace URI of this node, or null if it is unspecified.
public  voidsetNodeName(String nodeName)
     The name of this ASObject depending on the ASObject type.
public  voidsetOwnerASModel(ASModel ownerASModel)
     The ASModel object associated with this ASObject.
public  voidsetPrefix(String prefix)
     The namespace prefix of this node, or null if it is unspecified.
public  booleanvalidate()
     Determines if an ASModel itself is valid, i.e., confirming that it's well-formed and valid per its own formal grammar.

Field Detail
fASModels
protected Vector fASModels(Code)



fGrammar
protected SchemaGrammar fGrammar(Code)



fNamespaceAware
boolean fNamespaceAware(Code)




Constructor Detail
ASModelImpl
public ASModelImpl()(Code)



ASModelImpl
public ASModelImpl(boolean isNamespaceAware)(Code)




Method Detail
addASModel
public void addASModel(ASModel abstractSchema)(Code)
This method will allow the nesting or "importation" of ASModels.
Parameters:
  abstractSchema - ASModel to be set. Subsequent calls will nest the ASModels within the specified ownerASModel.



cloneASObject
public ASObject cloneASObject(boolean deep)(Code)
Creates a copy of this ASObject. See text for cloneNode off of Node but substitute AS functionality.
Parameters:
  deep - Setting the deep flag on, causes the whole subtree to be duplicated. Setting it to false only duplicates its immediate child nodes. Cloned ASObject.



createASAttributeDeclaration
public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI, String name) throws DOMException(Code)
Creates an attribute declaration.
Parameters:
  namespaceURI - The namespace URI of the attribute being declared.
Parameters:
  name - The name of the attribute. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent. A new ASAttributeDeclaration object with appropriate attributes set by input parameters.
exception:
  DOMException - INVALID_CHARACTER_ERR: Raised if the input name parameter contains an illegal character.



createASContentModel
public ASContentModel createASContentModel(int minOccurs, int maxOccurs, short operator) throws DOMASException(Code)
Creates an object which describes part of an ASElementDeclaration's content model.
Parameters:
  minOccurs - The minimum occurrence for the subModels of this ASContentModel.
Parameters:
  maxOccurs - The maximum occurrence for the subModels of this ASContentModel.
Parameters:
  operator - operator of type AS_CHOICE, AS_SEQUENCE, AS_ALL or AS_NONE. A new ASContentModel object.
exception:
  DOMASException - A DOMASException, e.g., minOccurs > maxOccurs.



createASElementDeclaration
public ASElementDeclaration createASElementDeclaration(String namespaceURI, String name) throws DOMException(Code)
Creates an element declaration for the element type specified.
Parameters:
  namespaceURI - The namespace URI of the element type being declared.
Parameters:
  name - The name of the element. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent. A new ASElementDeclaration object with name attribute set to tagname and namespaceURI set to systemId. Other attributes of the element declaration are set through ASElementDeclaration interface methods.
exception:
  DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.



createASEntityDeclaration
public ASEntityDeclaration createASEntityDeclaration(String name) throws DOMException(Code)
Creates an ASEntityDeclaration.
Parameters:
  name - The name of the entity being declared. A new ASEntityDeclaration object with entityName attribute set to name.
exception:
  DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.



createASNotationDeclaration
public ASNotationDeclaration createASNotationDeclaration(String namespaceURI, String name, String systemId, String publicId) throws DOMException(Code)
Creates a new notation declaration.
Parameters:
  namespaceURI - The namespace URI of the notation being declared.
Parameters:
  name - The name of the notation. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent.
Parameters:
  systemId - The system identifier for the notation declaration.
Parameters:
  publicId - The public identifier for the notation declaration. A new ASNotationDeclaration object with notationName attribute set to name and publicId and systemId set to the corresponding fields.
exception:
  DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.



getASModels
public ASObjectList getASModels()(Code)
To retrieve a list of nested ASModels without reference to names. A list of ASModels.



getAsHint
public String getAsHint()(Code)
The hint to locating an ASModel.



getAsLocation
public String getAsLocation()(Code)
The URI reference.



getAsNodeType
public short getAsNodeType()(Code)
A code representing the underlying object as defined above.



getAttributeDeclarations
public ASNamedObjectMap getAttributeDeclarations()(Code)
Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" attribute declarations. If one attempts to add, set, or remove a node type other than the intended one, a hierarchy exception (or equivalent is thrown).



getContainer
public boolean getContainer()(Code)
If usage is EXTERNAL_SUBSET or NOT_USED, and the ASModel is simply a container of other ASModels.



getContentModelDeclarations
public ASNamedObjectMap getContentModelDeclarations()(Code)
Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global content model declarations. If one attempts to add, set, or remove a node type other than the intended one, a hierarchy exception (or equivalent is thrown).



getElementDeclarations
public ASNamedObjectMap getElementDeclarations()(Code)
Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" element declarations. If one attempts to add, set, or remove a node type other than the intended one, a hierarchy exception (or equivalent is thrown).



getEntityDeclarations
public ASNamedObjectMap getEntityDeclarations()(Code)
Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" entity declarations. If one attempts to add, set, or remove a node type other than the intended one, a hierarchy exception (or equivalent is thrown).



getGrammar
public SchemaGrammar getGrammar()(Code)



getInternalASModels
public Vector getInternalASModels()(Code)



getIsNamespaceAware
public boolean getIsNamespaceAware()(Code)
true if this ASModel defines the document structure in terms of namespaces and local names ; false if the document structure is defined only in terms of QNames.



getLocalName
public String getLocalName()(Code)
Returns the local part of the qualified name of this ASObject.



getNamespaceURI
public String getNamespaceURI()(Code)
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.



getNodeName
public String getNodeName()(Code)
The name of this ASObject depending on the ASObject type.



getNotationDeclarations
public ASNamedObjectMap getNotationDeclarations()(Code)
Instead of returning an all-in-one ASObject with ASModel methods, have discernible top-level/"global" notation declarations. If one attempts to add, set, or remove a node type other than the intended one, a hierarchy exception (or equivalent is thrown).



getOwnerASModel
public ASModel getOwnerASModel()(Code)
The ASModel object associated with this ASObject. For a node of type AS_MODEL, this is null.



getPrefix
public String getPrefix()(Code)
The namespace prefix of this node, or null if it is unspecified.



getUsageLocation
public short getUsageLocation()(Code)
0 if used internally, 1 if used externally, 2 if not all. An exception will be raised if it is incompatibly shared or in use as an internal subset.



importASObject
public void importASObject(ASObject asobject)(Code)
Imports ASObject into ASModel.
Parameters:
  asobject - ASObject to be imported.



insertASObject
public void insertASObject(ASObject asobject)(Code)
Inserts ASObject into ASModel.
Parameters:
  asobject - ASObject to be inserted.



removeAS
public void removeAS(ASModel as)(Code)
Removes only the specified ASModel from the list of ASModels.
Parameters:
  as - AS to be removed.



setAsHint
public void setAsHint(String asHint)(Code)
The hint to locating an ASModel.



setAsLocation
public void setAsLocation(String asLocation)(Code)
The URI reference.



setGrammar
public void setGrammar(SchemaGrammar grammar)(Code)



setLocalName
public void setLocalName(String localName)(Code)
Returns the local part of the qualified name of this ASObject.



setNamespaceURI
public void setNamespaceURI(String namespaceURI)(Code)
The namespace URI of this node, or null if it is unspecified. defines how a namespace URI is attached to schema components.



setNodeName
public void setNodeName(String nodeName)(Code)
The name of this ASObject depending on the ASObject type.



setOwnerASModel
public void setOwnerASModel(ASModel ownerASModel)(Code)
The ASModel object associated with this ASObject. For a node of type AS_MODEL, this is null.



setPrefix
public void setPrefix(String prefix)(Code)
The namespace prefix of this node, or null if it is unspecified.



validate
public boolean validate()(Code)
Determines if an ASModel itself is valid, i.e., confirming that it's well-formed and valid per its own formal grammar. true if the ASModel is valid, false otherwise.



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.