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


org.ozoneDB.xml.dom.NodeImpl
   org.ozoneDB.xml.dom.ElementImpl
      org.ozoneDB.xml.XMLElement

XMLElement
public class XMLElement extends ElementImpl implements XMLElementProxy(Code)
Base class for user XML elements. XMLDocument is designed to create elements of classes derived from XMLElement . In addition to several API extensions, user XML elements can be used to map XML documents directly into application data structures.

XMLElement extends the DOM Element with the following methods:

In order to support user elements, a document class must extend XMLDocument . It then registers tag name to element class associations using XMLDocument.registerElement , or uses an external element factory with XMLDocument.useElementFactory .

The user elements will be returns whenever XMLDocument.createElement is called on the document, or when a document of this type is parsed.

A user element derived from XMLElement must pass the owner document and tag name to its constructor. The class and its constructor must be declared public and the constructor must have the same signature as the XMLElement constructor. The last three requirements may be relaxed if an external element factory is used.
version:
   $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
author:
   Assaf Arkin
See Also:   org.w3c.dom.Element
See Also:   XMLDocument.registerElement
See Also:   XMLElementFactory



Field Summary
protected  Object_userObject
     Holds a user object.

Constructor Summary
public  XMLElement(Document owner, String tagName)
     Constructor requires owner document and element tag name.
public  XMLElement()
    

Method Summary
public  StringgetID()
     Returns the identifier of this element.
public  ObjectgetUserObject()
     Returns the user object associated with this element.
public  voidsetUserObject(Object userObject)
     Associates this element with a user object.

Field Detail
_userObject
protected Object _userObject(Code)
Holds a user object. Any object can be associated with this element using the appropriate set/get methods.




Constructor Detail
XMLElement
public XMLElement(Document owner, String tagName)(Code)
Constructor requires owner document and element tag name. This will be provided when an element of this or a derived class is being constructed by an XMLDocument . The arguments must pass to this constructor unaffected. Derived classes must implement at least one constructor with the exact same signature to support element class registration; this requirement is relaxed if an external element factory is used.
Parameters:
  owner - The owner document
Parameters:
  tagName - The element's tag name



XMLElement
public XMLElement()(Code)




Method Detail
getID
public String getID()(Code)
Returns the identifier of this element. Unless specifies otherwise in the DTD, this would be the value of the id attribute. It may be a textual value or null. The identifier of this element



getUserObject
public Object getUserObject()(Code)
Returns the user object associated with this element. There is no limit on what the user object may hold. The user object



setUserObject
public void setUserObject(Object userObject)(Code)
Associates this element with a user object. There is no limit on what the user object may hold.
Parameters:
  userObject - The user object



Methods inherited from org.ozoneDB.xml.dom.ElementImpl
final public synchronized AttrProxy appendAttr(AttrProxy newAttr)(Code)(Java Doc)
final public Object clone()(Code)(Java Doc)
public synchronized void cloneInto(NodeProxy into, boolean deep)(Code)(Java Doc)
final public Node cloneNode(boolean deep)(Code)(Java Doc)
final public Enumeration elements()(Code)(Java Doc)
public synchronized boolean equals(Object other)(Code)(Java Doc)
final public synchronized String getAttribute(String name)(Code)(Java Doc)
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc)
final public Attr getAttributeNode(String name)(Code)(Java Doc)
public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc)
final public NamedNodeMap getAttributes()(Code)(Java Doc)
final public synchronized NodeList getElementsByTagName(String tagName)(Code)(Java Doc)
public NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc)
public int getLength()(Code)(Java Doc)
final public synchronized Attr getNamedAttr(String name)(Code)(Java Doc)
final public synchronized Node getNamedItem(String name)(Code)(Java Doc)
public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)(Code)(Java Doc)
final public short getNodeType()(Code)(Java Doc)
final public String getTagName()(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttributeNS(String namespaceURI, String localname)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public void init(NodeProxy owner, Dictionary dictionary)(Code)(Java Doc)
final public synchronized Node item(int index)(Code)(Java Doc)
final public synchronized void normalize()(Code)(Java Doc)
public void onDelete() throws Exception(Code)(Java Doc)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)(Java Doc)
final public synchronized AttrProxy removeAttr(AttrProxy oldAttr) throws DOMException(Code)(Java Doc)
final public synchronized void removeAttribute(String name)(Code)(Java Doc)
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)(Java Doc)
final public synchronized Attr removeAttributeNode(Attr oldAttr)(Code)(Java Doc)
final public synchronized Node removeNamedItem(String name) throws DOMException(Code)(Java Doc)
public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)(Java Doc)
public void setAttrCount(int count)(Code)(Java Doc)
final public synchronized void setAttribute(String name, String value) throws DOMException(Code)(Java Doc)
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws DOMException(Code)(Java Doc)
final public synchronized Attr setAttributeNode(Attr newAttr) throws DOMException(Code)(Java Doc)
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException(Code)(Java Doc)
public void setFirstAttr(Attr attribute)(Code)(Java Doc)
public void setLastAttr(Attr attribute)(Code)(Java Doc)
final public Node setNamedItem(Node arg) throws DOMException(Code)(Java Doc)
public Node setNamedItemNS(Node arg) throws DOMException(Code)(Java Doc)
final public void setNodeValue(String value)(Code)(Java Doc)
protected boolean supportsChildern()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void writeExternal(ObjectOutput out) throws IOException(Code)(Java Doc)

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)

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)
public void writeExternal(ObjectOutput out) throws IOException(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.