Java Doc for DocumentImpl.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » xml » 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 » Database DBMS » Ozone 1.1 » org.ozoneDB.xml.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ozoneDB.OzoneObject
      org.ozoneDB.xml.dom.NodeImpl
         org.ozoneDB.xml.dom.DocumentImpl

All known Subclasses:   org.ozoneDB.xml.dom.DocumentTypeImpl,  org.ozoneDB.xml.dom.html.HTMLDocumentImpl,  org.ozoneDB.xml.XMLDocument,
DocumentImpl
public class DocumentImpl extends NodeImpl implements DocumentProxy(Code)
Implements an XML document, and also derived to implement an HTML document. Provides access to the top level element in the document ( DocumentImpl.getDocumentElement ), to the DTD if one exists ( DocumentImpl.getDoctype , and to all node operations.

Several methods create new nodes of all basic types (comment, text, element, etc.). These methods create new nodes but do not place them in the document tree. The nodes may be placed in the document tree using org.w3c.dom.Node.appendChild or org.w3c.dom.Node.insertBefore , or they may be placed in some other document tree.

Notes:

  1. Node type is org.w3c.dom.Node.DOCUMENT_NODE
  2. Node supports childern
  3. Node name is always "#document"
  4. Node does not have a value
  5. Node may not be added to other nodes
This class contains some extensions beyond the DOM API definition. For a list of all extensions, see org.openxml.XMLDocument .
version:
   $Revision: 1.2 $ $Date: 2002/07/21 19:02:02 $
author:
   Assaf Arkin
See Also:   org.w3c.dom.Document
See Also:   NodeImpl
See Also:   org.w3c.dom.DOMImplementation


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  DocumentImpl()
    
protected  DocumentImpl(String rootElement)
    

Method Summary
public  voidacquire(long lockTimeout)
     Called to acquire access to a possible locked resource.
public  voidassignDoctype(DocumentTypeProxy docType)
    
public  voidclearDocument()
     Deletes all child Nodes from this Document to provide a fresh and empty Document.
public  Objectclone()
    
public synchronized  voidcloneInto(NodeProxy into, boolean deep)
    
public  NodecloneNode(boolean deep)
    
final public  AttrcreateAttribute(String name)
    
final public  AttrcreateAttribute(String name, String defValue)
     Creates an attribute with the default value specified in the DTD.
public  AttrcreateAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
    
final public  CDATASectioncreateCDATASection(String data)
    
final public  CommentcreateComment(String data)
    
public  DocumentcreateDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype)
    
final public  DocumentFragmentcreateDocumentFragment()
    
public  DocumentTypecreateDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
    
public  ElementcreateElement(String tagName)
    
public  ElementcreateElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
    
final public  EntityReferencecreateEntityReference(String name)
    
final public  ProcessingInstructioncreateProcessingInstruction(String target, String data)
    
final public  TextcreateTextNode(String data)
    
public synchronized  booleanequals(Object other)
    
public  XMLContainerHelpergetContainer()
     Get the container of this document.
final public  DocumentTypegetDoctype()
    
public  ElementgetDocumentElement()
    
public  ElementgetElementById(java.lang.String elementId)
    
final public  NodeListgetElementsByTagName(String tagName)
     Creates a document type with the specified name (the name follows the !DOCTYPE entity) and associates it with the document. If the document is HTML or already has a DTD associated with it, throws an exception.
public  NodeListgetElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
    
final public  DOMImplementationgetImplementation()
    
public  shortgetNodeType()
    
public  booleanhasFeature(String feature, String version)
     Return true if certain feature for specific DOM version supported by this implementation.
public  NodeimportNode(Node importedNode, boolean deep)
    
public  voidlock()
     Obtains a lock, preventing other threads from gaining access to the locked resource.
public  voidonDelete()
    
public  voidreadExternal(ObjectInput in)
    
public  voidregisterElement(String tagName, Class elementClass)
     Register an application-defined element type.
public  voidsetContainer(XMLContainerHelper _container)
     Set the container of this document.
final public  voidsetDoctype(DocumentType docType)
    
public  voidsetElementTypes(Hashtable elementTypes)
    
final public  voidsetNodeValue(String value)
    
final protected  booleansupportsChildern()
    
public  StringtoString()
    
public  voidunlock()
     Releases a lock, so other thread may gain access to the resource.
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
DocumentImpl
public DocumentImpl()(Code)



DocumentImpl
protected DocumentImpl(String rootElement)(Code)




Method Detail
acquire
public void acquire(long lockTimeout) throws RuntimeException(Code)
Called to acquire access to a possible locked resource. If the resource was locked by the current thread, the method will return immediately. If the resource was locked by some other thread, the method will block until the resource is unlocked, or the block has timed out.
See Also:   DocumentImpl.lock
See Also:   DocumentImpl.unlock



assignDoctype
public void assignDoctype(DocumentTypeProxy docType)(Code)



clearDocument
public void clearDocument() throws Exception(Code)
Deletes all child Nodes from this Document to provide a fresh and empty Document. Attention: This methods permanently removes the existing content!



clone
public Object clone()(Code)



cloneInto
public synchronized void cloneInto(NodeProxy into, boolean deep)(Code)



cloneNode
public Node cloneNode(boolean deep)(Code)



createAttribute
final public Attr createAttribute(String name) throws DOMException(Code)



createAttribute
final public Attr createAttribute(String name, String defValue) throws DOMException(Code)
Creates an attribute with the default value specified in the DTD. This method is not defined in the DOM but is used by the parser.
Parameters:
  name - The name of the attribute
Parameters:
  defValue - The default value of the attribute



createAttributeNS
public Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException(Code)



createCDATASection
final public CDATASection createCDATASection(String data) throws DOMException(Code)



createComment
final public Comment createComment(String data)(Code)



createDocument
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype) throws DOMException(Code)



createDocumentFragment
final public DocumentFragment createDocumentFragment()(Code)



createDocumentType
public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId) throws DOMException(Code)



createElement
public Element createElement(String tagName) throws DOMException(Code)



createElementNS
public Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws DOMException(Code)



createEntityReference
final public EntityReference createEntityReference(String name) throws DOMException(Code)



createProcessingInstruction
final public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException(Code)



createTextNode
final public Text createTextNode(String data)(Code)



equals
public synchronized boolean equals(Object other)(Code)



getContainer
public XMLContainerHelper getContainer()(Code)
Get the container of this document. This is needed to find the container that is responsible for a given Node.



getDoctype
final public DocumentType getDoctype()(Code)



getDocumentElement
public Element getDocumentElement()(Code)



getElementById
public Element getElementById(java.lang.String elementId)(Code)



getElementsByTagName
final public NodeList getElementsByTagName(String tagName)(Code)
Creates a document type with the specified name (the name follows the !DOCTYPE entity) and associates it with the document. If the document is HTML or already has a DTD associated with it, throws an exception. This method is not defined in the DOM but is used by the parser.
Parameters:
  name - The name of the document type
Parameters:
  name - The public identifier, if exists
Parameters:
  name - The system identifier, if exists
throws:
  org.w3c.dom.DOMException - NOT_SUPPORTED_ERRDocument is HTML or already has a DTD



getElementsByTagNameNS
public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)(Code)



getImplementation
final public DOMImplementation getImplementation()(Code)



getNodeType
public short getNodeType()(Code)



hasFeature
public boolean hasFeature(String feature, String version)(Code)
Return true if certain feature for specific DOM version supported by this implementation.
Parameters:
  feature - Name of feature to check
Parameters:
  version - Optional version number True if supported



importNode
public Node importNode(Node importedNode, boolean deep) throws DOMException(Code)



lock
public void lock() throws RuntimeException(Code)
Obtains a lock, preventing other threads from gaining access to the locked resource. The lock is retained across multiple calls, until DocumentImpl.unlock is called. Attempts to call DocumentImpl.acquire from another thread will be blocked.

If the resource is already locked by another thread, the method will block until the lock is released or until the block has timedout.

DocumentImpl.lock may be called any number of times, and DocumentImpl.unlock must be called that number of times to release the lock.
See Also:   DocumentImpl.unlock




onDelete
public void onDelete() throws Exception(Code)



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



registerElement
public void registerElement(String tagName, Class elementClass)(Code)
Register an application-defined element type. The element's tag name and class are specified. When a so named element is created with DocumentImpl.createElement , an object of the specified class is created and returned. This allows applications to define classes for specific element types.
Parameters:
  tagName - The name of the element tag
Parameters:
  elementClass - Class derived from org.openxml.XMLElement,used to construct the element



setContainer
public void setContainer(XMLContainerHelper _container)(Code)
Set the container of this document. This is needed to find the container that is responsible for a given Node.



setDoctype
final public void setDoctype(DocumentType docType)(Code)



setElementTypes
public void setElementTypes(Hashtable elementTypes)(Code)



setNodeValue
final public void setNodeValue(String value)(Code)



supportsChildern
final protected boolean supportsChildern()(Code)



toString
public String toString()(Code)



unlock
public void unlock()(Code)
Releases a lock, so other thread may gain access to the resource. DocumentImpl.unlock must be called as many times as DocumentImpl.lock was called to release the lock. DocumentImpl.unlock may be called an additional number of times, if so required by the implementation (e.g. to assure that a lock is released at the end of a thread).
See Also:   DocumentImpl.lock



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Fields inherited from org.ozoneDB.xml.dom.NodeImpl
final public static short ATTLIST_DECL_NODE(Code)(Java Doc)
final public static short ELEMENT_DECL_NODE(Code)(Java Doc)
final public static short PARAM_ENTITY_NODE(Code)(Java Doc)
NodeProxy _nextNode(Code)(Java Doc)
DocumentProxy _ownerDocument(Code)(Java Doc)
NodeProxy _parent(Code)(Java Doc)
NodeProxy _prevNode(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.ozoneDB.xml.dom.NodeImpl
final public synchronized Node appendChild(Node newChild)(Code)(Java Doc)
protected Node castNewChild(Node newChild) throws DOMException(Code)(Java Doc)
final protected Node castOldChild(Node oldChild) throws DOMException(Code)(Java Doc)
public synchronized void cloneInto(NodeProxy into, boolean deep)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
final public synchronized Node getChild(int index)(Code)(Java Doc)
final public int getChildCount()(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
final public Node getFirstChild()(Code)(Java Doc)
final public Node getLastChild()(Code)(Java Doc)
public java.lang.String getLocalName()(Code)(Java Doc)
public java.lang.String getNamespaceURI()(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
final public String getNodeName()(Code)(Java Doc)
abstract public short getNodeType()(Code)(Java Doc)
final public String getNodeValue()(Code)(Java Doc)
final public Document getOwnerDocument()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public java.lang.String getPrefix()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
final public boolean hasChildNodes()(Code)(Java Doc)
final public void init(DocumentProxy owner, String name, String value, boolean checkName) throws DOMException(Code)(Java Doc)
final public synchronized Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
final public boolean isReadOnly()(Code)(Java Doc)
public boolean isSupported(String s, String s1)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
protected void notifyIterators(Node removedChild)(Code)(Java Doc)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc)
final public synchronized Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc)
final public synchronized Node replaceChild(Node newChild, Node oldChild) throws DOMException(Code)(Java Doc)
public void setNextSibling(Node nextNode)(Code)(Java Doc)
final public void setNodeName(String nodeName)(Code)(Java Doc)
public void setNodeValue(String value)(Code)(Java Doc)
public synchronized void setOwnerDocument(Document owner)(Code)(Java Doc)
public void setParentNode(Node newParent)(Code)(Java Doc)
public void setPrefix(java.lang.String prefix) throws DOMException(Code)(Java Doc)
public void setPreviousSibling(Node prevNode)(Code)(Java Doc)
final public synchronized void setReadOnly()(Code)(Java Doc)
public boolean supports(java.lang.String feature, java.lang.String version)(Code)(Java Doc)
boolean supportsChildern()(Code)(Java Doc)
public void writeExternal(ObjectOutput out) throws IOException(Code)(Java Doc)

Methods inherited from org.ozoneDB.OzoneObject
public ObjectContainer container()(Code)(Java Doc)
public OzoneInterface database()(Code)(Java Doc)
public void deleteRecursive()(Code)(Java Doc)
public ObjectID getObjectID()(Code)(Java Doc)
public String handle()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void onCreate() throws Exception(Code)(Java Doc)
public void onDelete() throws Exception(Code)(Java Doc)
public OzoneProxy self()(Code)(Java Doc)
public synchronized void setContainer(ObjectContainer _container)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public boolean toXML(ContentHandler ch) throws SAXException(Code)(Java Doc)

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.