Java Doc for ElementImpl.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.ElementImpl

All known Subclasses:   org.ozoneDB.xml.dom.html.HTMLElementImpl,  org.ozoneDB.xml.XMLElement,
ElementImpl
public class ElementImpl extends NodeImpl implements ElementProxy,Externalizable(Code)
The most common node type, org.w3c.dom.Element inherits the generic Node interface and adds support for retrieving and setting attributes either as nodes or as strings.

Notes:

  1. Node type is org.w3c.dom.Node.ELEMENT_NODE
  2. Node supports childern
  3. Node has no value
  4. Node has attributes

To speed up implementation, all attributes are implemented as double-linked list implemented using NodeImpl._parent , NodeImpl._nextNode and NodeImpl._prevNode . This support is provided to through ElementImpl.getNamedAttr , ElementImpl.appendAttr and ElementImpl.removeAttr methods.
version:
   $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
author:
   Assaf Arkin
See Also:   org.w3c.dom.Element
See Also:   org.w3c.dom.Attr
See Also:   org.w3c.dom.NamedNodeMap
See Also:   AttrImpl



Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  ElementImpl(DocumentImpl owner, String name)
     Constructor requires only owner document and tag name of element.
public  ElementImpl()
    

Method Summary
final public synchronized  AttrProxyappendAttr(AttrProxy newAttr)
     Append newAttr as the last attribute of this element.
final public  Objectclone()
    
public synchronized  voidcloneInto(NodeProxy into, boolean deep)
    
final public  NodecloneNode(boolean deep)
    
final public  Enumerationelements()
    
public synchronized  booleanequals(Object other)
    
final public synchronized  StringgetAttribute(String name)
    
public  java.lang.StringgetAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
    
final public  AttrgetAttributeNode(String name)
    
public  AttrgetAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
    
final public  NamedNodeMapgetAttributes()
    
final public synchronized  NodeListgetElementsByTagName(String tagName)
     Returns a list of elements extracted based on their tag name (or all of them if the tag name is "*").
public  NodeListgetElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
    
public  intgetLength()
    
final public synchronized  AttrgetNamedAttr(String name)
     Returns the named attribute or null if attribute not found.
final public synchronized  NodegetNamedItem(String name)
    
public  NodegetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
    
final public  shortgetNodeType()
    
final public  StringgetTagName()
     Returns the name of the tag, same as calling ElementImpl.getNodeName . In XML documents, the return value preserves case.
public  booleanhasAttribute(String name)
    
public  booleanhasAttributeNS(String namespaceURI, String localname)
    
public  booleanhasAttributes()
    
public  voidinit(NodeProxy owner, Dictionary dictionary)
    
final public synchronized  Nodeitem(int index)
    
final public synchronized  voidnormalize()
    
public  voidonDelete()
    
public  voidreadExternal(ObjectInput in)
    
final public synchronized  AttrProxyremoveAttr(AttrProxy oldAttr)
     Remove oldAttr from this element.
final public synchronized  voidremoveAttribute(String name)
    
public  voidremoveAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
    
final public synchronized  AttrremoveAttributeNode(Attr oldAttr)
    
final public synchronized  NoderemoveNamedItem(String name)
    
public  NoderemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
    
public  voidsetAttrCount(int count)
    
final public synchronized  voidsetAttribute(String name, String value)
    
public  voidsetAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value)
    
final public synchronized  AttrsetAttributeNode(Attr newAttr)
    
public  AttrsetAttributeNodeNS(Attr newAttr)
    
public  voidsetFirstAttr(Attr attribute)
    
public  voidsetLastAttr(Attr attribute)
    
final public  NodesetNamedItem(Node arg)
    
public  NodesetNamedItemNS(Node arg)
    
final public  voidsetNodeValue(String value)
    
protected  booleansupportsChildern()
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
ElementImpl
public ElementImpl(DocumentImpl owner, String name)(Code)
Constructor requires only owner document and tag name of element. Tag name is case sensitive for XML, but converted to upper case for HTML documents.
Parameters:
  owner - Owner document of this element
Parameters:
  name - The tag name of the element



ElementImpl
public ElementImpl()(Code)




Method Detail
appendAttr
final public synchronized AttrProxy appendAttr(AttrProxy newAttr)(Code)
Append newAttr as the last attribute of this element. If newAttr is not an attribute of this DOM, or is already in use by some element, an exception is thrown.
Parameters:
  newAttr - The new attribute to add The newly added attribute
throws:
  org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERRNode is read-only and cannot be modified
throws:
  org.w3c.dom.DOMException - WRONG_DOCUMENT_ERRnewAttr is not an attribute in this DOM
throws:
  org.w3c.dom.DOMException - INUSE_ATTRIBUTE_ERRnewAttr is already in use by some other element



clone
final public Object clone()(Code)



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



cloneNode
final public Node cloneNode(boolean deep)(Code)



elements
final public Enumeration elements()(Code)



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



getAttribute
final public synchronized String getAttribute(String name)(Code)



getAttributeNS
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)



getAttributeNode
final public Attr getAttributeNode(String name)(Code)



getAttributeNodeNS
public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)(Code)



getAttributes
final public NamedNodeMap getAttributes()(Code)



getElementsByTagName
final public synchronized NodeList getElementsByTagName(String tagName)(Code)
Returns a list of elements extracted based on their tag name (or all of them if the tag name is "*"). The returned list is a snapshot of the element's contents at the time of calling. Subsequent updates to the element are not reflected in the list. This might result in inaccuracies when working from multiple threads.
Parameters:
  tagName - The element tag name to look for or "*" for all elements A snapshot of the named elements contained within this element



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



getLength
public int getLength()(Code)



getNamedAttr
final public synchronized Attr getNamedAttr(String name)(Code)
Returns the named attribute or null if attribute not found.
Parameters:
  name - The name of the attribute to return The named attribute or null



getNamedItem
final public synchronized Node getNamedItem(String name)(Code)



getNamedItemNS
public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)(Code)



getNodeType
final public short getNodeType()(Code)



getTagName
final public String getTagName()(Code)
Returns the name of the tag, same as calling ElementImpl.getNodeName . In XML documents, the return value preserves case. In HTML documents, the return value is always upper case regardless of the original value. Tag name



hasAttribute
public boolean hasAttribute(String name)(Code)



hasAttributeNS
public boolean hasAttributeNS(String namespaceURI, String localname)(Code)



hasAttributes
public boolean hasAttributes()(Code)



init
public void init(NodeProxy owner, Dictionary dictionary)(Code)



item
final public synchronized Node item(int index)(Code)



normalize
final public synchronized void normalize()(Code)



onDelete
public void onDelete() throws Exception(Code)



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



removeAttr
final public synchronized AttrProxy removeAttr(AttrProxy oldAttr) throws DOMException(Code)
Remove oldAttr from this element. If oldAttr is not an attribute of this element, an exception is thrown.
Parameters:
  oldAttr - The attribute to remove The removed attribute
throws:
  org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERRNode is read-only and cannot be modified
throws:
  org.w3c.dom.DOMException - NOT_FOUND_ERRoldAttr is not an attribute of this element



removeAttribute
final public synchronized void removeAttribute(String name)(Code)



removeAttributeNS
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)



removeAttributeNode
final public synchronized Attr removeAttributeNode(Attr oldAttr)(Code)



removeNamedItem
final public synchronized Node removeNamedItem(String name) throws DOMException(Code)



removeNamedItemNS
public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException(Code)



setAttrCount
public void setAttrCount(int count)(Code)



setAttribute
final public synchronized void setAttribute(String name, String value) throws DOMException(Code)



setAttributeNS
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws DOMException(Code)



setAttributeNode
final public synchronized Attr setAttributeNode(Attr newAttr) throws DOMException(Code)



setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException(Code)



setFirstAttr
public void setFirstAttr(Attr attribute)(Code)



setLastAttr
public void setLastAttr(Attr attribute)(Code)



setNamedItem
final public Node setNamedItem(Node arg) throws DOMException(Code)



setNamedItemNS
public Node setNamedItemNS(Node arg) throws DOMException(Code)



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



supportsChildern
protected boolean supportsChildern()(Code)



toString
public String toString()(Code)



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.