Java Doc for QElement.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » 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 » EJB Server resin 3.1.5 » resin » com.caucho.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.xml.QAbstractNode
      com.caucho.xml.QNode
         com.caucho.xml.QAttributedNode
            com.caucho.xml.QElement

QElement
public class QElement extends QAttributedNode implements CauchoElement(Code)
Resin's implementation of the DOM element.

Inner Class :static class TagPredicate implements QNodePredicate
Inner Class :static class NSTagPredicate implements QNodePredicate


Constructor Summary
public  QElement()
     Create a new element.
public  QElement(String name)
     Create a new named element.
public  QElement(String name, String namespace)
     Create a new named element.
public  QElement(QName name)
     Create a new named element.
protected  QElement(QDocument owner, QName name)
    
 QElement(QName name, HashMap attributes)
     Create a new named element with initial parameters.

Method Summary
 voidaddNamespace(QName name)
     Adds the name to the global namespace, if possible.
public  NodeappendChild(Node child)
     Appends a new node as the last child of the element.
Parameters:
  child - the new child.
public  booleanequals(Object arg)
    
public  booleanequals(Node arg, boolean deep)
    
public  StringgetCanonicalName()
     Returns the canonical name of the element.
public  NodeListgetElementsByTagName(String tagName)
     Returns a list of elements, given a tag name.
public  NodeListgetElementsByTagNameNS(String uri, String name)
     Returns a list of elements, given a namespace and a local name.
public  StringgetLocalName()
     Returns the local part of the element's name.
public  StringgetNamespace(String prefix)
     Given a prefix, returns the namespace in effect at this element.
Parameters:
  prefix - the prefix to test.
public  StringgetNamespaceURI()
     Returns the namespace of the element.
public  StringgetNodeName()
     Returns the element's qualified-name as the node name.
public  shortgetNodeType()
     Returns the DOM NodeType, ELEMENT_NODE.
public  StringgetPrefix()
     Returns the namespace prefix for the element.
public  QNamegetQName()
    
public  TypeInfogetSchemaTypeInfo()
     Returns the schema type.
public  StringgetTagName()
     Returns the element's qualified-name as the node name.
public  StringgetTextValue()
     Returns the text value of the element.
public  booleanhasContent()
    
public  voidnormalize()
     Normalize the element, i.e.
 voidprint(XmlPrinter out)
    
public  voidsetName(QName name)
     Assign a name to the element.
public  StringtoString()
    


Constructor Detail
QElement
public QElement()(Code)
Create a new element.



QElement
public QElement(String name)(Code)
Create a new named element.
Parameters:
  name - the element's name.



QElement
public QElement(String name, String namespace)(Code)
Create a new named element.
Parameters:
  name - the element's name.



QElement
public QElement(QName name)(Code)
Create a new named element.
Parameters:
  name - the element's name.



QElement
protected QElement(QDocument owner, QName name)(Code)



QElement
QElement(QName name, HashMap attributes)(Code)
Create a new named element with initial parameters.
Parameters:
  name - the element's name.
Parameters:
  attributes - the element's attributes.




Method Detail
addNamespace
void addNamespace(QName name)(Code)
Adds the name to the global namespace, if possible.



appendChild
public Node appendChild(Node child) throws DOMException(Code)
Appends a new node as the last child of the element.
Parameters:
  child - the new child. the child.



equals
public boolean equals(Object arg)(Code)



equals
public boolean equals(Node arg, boolean deep)(Code)



getCanonicalName
public String getCanonicalName()(Code)
Returns the canonical name of the element.



getElementsByTagName
public NodeList getElementsByTagName(String tagName)(Code)
Returns a list of elements, given a tag name.



getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String uri, String name)(Code)
Returns a list of elements, given a namespace and a local name.



getLocalName
public String getLocalName()(Code)
Returns the local part of the element's name.



getNamespace
public String getNamespace(String prefix)(Code)
Given a prefix, returns the namespace in effect at this element.
Parameters:
  prefix - the prefix to test. the namespace URL matching the prefix or null.



getNamespaceURI
public String getNamespaceURI()(Code)
Returns the namespace of the element.



getNodeName
public String getNodeName()(Code)
Returns the element's qualified-name as the node name.



getNodeType
public short getNodeType()(Code)
Returns the DOM NodeType, ELEMENT_NODE.



getPrefix
public String getPrefix()(Code)
Returns the namespace prefix for the element.



getQName
public QName getQName()(Code)
Returns the qname



getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()(Code)
Returns the schema type.



getTagName
public String getTagName()(Code)
Returns the element's qualified-name as the node name.



getTextValue
public String getTextValue()(Code)
Returns the text value of the element. For an element, the text value is the smashing together of all the child text nodes.



hasContent
public boolean hasContent()(Code)



normalize
public void normalize()(Code)
Normalize the element, i.e. smash all neighboring text nodes together.



print
void print(XmlPrinter out) throws IOException(Code)



setName
public void setName(QName name)(Code)
Assign a name to the element. Not normally called by external API.
Parameters:
  name - the element's name.



toString
public String toString()(Code)



Fields inherited from com.caucho.xml.QAttributedNode
QAttr _firstAttribute(Code)(Java Doc)

Methods inherited from com.caucho.xml.QAttributedNode
public String getAttribute(String name)(Code)(Java Doc)
public String getAttributeNS(String namespaceURI, String local)(Code)(Java Doc)
public Attr getAttributeNode(String name)(Code)(Java Doc)
public Attr getAttributeNodeNS(String uri, String local)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public Attr getFirstAttribute()(Code)(Java Doc)
public boolean hasAttribute(String name)(Code)(Java Doc)
public boolean hasAttributeNS(String uri, String local)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public void removeAttribute(String name)(Code)(Java Doc)
public void removeAttributeNS(String uri, String name)(Code)(Java Doc)
public Attr removeAttributeNode(Attr attr)(Code)(Java Doc)
public Attr removeAttributeNodeNS(Attr attr)(Code)(Java Doc)
public void setAttribute(String name, String value) throws DOMException(Code)(Java Doc)
void setAttribute(QName name, String value) throws DOMException(Code)(Java Doc)
public void setAttributeNS(String uri, String local, String value)(Code)(Java Doc)
public Attr setAttributeNode(Attr attr) throws DOMException(Code)(Java Doc)
public Attr setAttributeNodeNS(Attr attr) throws DOMException(Code)(Java Doc)
public void setIdAttribute(String name, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException(Code)(Java Doc)
public void setIdAttributeNode(Attr attr, boolean isId) throws DOMException(Code)(Java Doc)
QAttr unlink(String name)(Code)(Java Doc)
public QAttr unlink(String uri, String local)(Code)(Java Doc)

Fields inherited from com.caucho.xml.QNode
protected QAbstractNode _firstChild(Code)(Java Doc)
protected QAbstractNode _lastChild(Code)(Java Doc)

Methods inherited from com.caucho.xml.QNode
public Node appendChild(Node newNode) throws DOMException(Code)(Java Doc)
public boolean checkValid() throws Exception(Code)(Java Doc)
public boolean equals(Object arg)(Code)(Java Doc)
public boolean equals(Node arg, boolean deep)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public Node getFirstChild()(Code)(Java Doc)
public Node getLastChild()(Code)(Java Doc)
public QAbstractNode getNextPreorder()(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
public String getNodeValue()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
public Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc)
public Node replaceChild(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
public void setNodeValue(String value)(Code)(Java Doc)
public void setTextContent(String content)(Code)(Java Doc)

Fields inherited from com.caucho.xml.QAbstractNode
protected static L10N L(Code)(Java Doc)
String _filename(Code)(Java Doc)
int _line(Code)(Java Doc)
QAbstractNode _next(Code)(Java Doc)
QDocument _owner(Code)(Java Doc)
QNode _parent(Code)(Java Doc)
QAbstractNode _previous(Code)(Java Doc)
String _systemId(Code)(Java Doc)

Methods inherited from com.caucho.xml.QAbstractNode
public Node appendChild(Node newNode) throws DOMException(Code)(Java Doc)
public static String baseURI(Node node)(Code)(Java Doc)
public boolean checkValid() throws Exception(Code)(Java Doc)
public Node cloneNode(boolean deep)(Code)(Java Doc)
public short compareDocumentPosition(Node node)(Code)(Java Doc)
public short compareTreePosition(Node other)(Code)(Java Doc)
public boolean equals(Node arg, boolean deep)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public String getBaseURI()(Code)(Java Doc)
public String getCanonicalName()(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public int getColumn()(Code)(Java Doc)
public ArrayList<Depend> getDependencyList()(Code)(Java Doc)
public Object getFeature(String feature, String version)(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public Node getFirstChild()(Code)(Java Doc)
public Node getInterface(String feature)(Code)(Java Doc)
public Node getLastChild()(Code)(Java Doc)
public int getLine()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public QAbstractNode getNextContent()(Code)(Java Doc)
public QAbstractNode getNextPreorder()(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
public String getNodeValue()(Code)(Java Doc)
public Document getOwnerDocument()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public QAbstractNode getPreviousContent()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public QName getQName()(Code)(Java Doc)
public String getTextContent() throws DOMException(Code)(Java Doc)
public String getTextValue()(Code)(Java Doc)
public Object getUserData(String data)(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
public boolean hasContent()(Code)(Java Doc)
public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
public boolean isDefaultNamespace(String namespaceURI)(Code)(Java Doc)
public boolean isEqualNode(Node arg)(Code)(Java Doc)
boolean isNameValid(String name)(Code)(Java Doc)
public boolean isSameNode(Node other)(Code)(Java Doc)
public boolean isSupported(String feature, String version)(Code)(Java Doc)
public String lookupNamespacePrefix(String namespaceURI, boolean useDefault)(Code)(Java Doc)
public String lookupNamespaceURI(String prefix)(Code)(Java Doc)
public String lookupPrefix(String feature)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
void print(XmlPrinter out) throws IOException(Code)(Java Doc)
public void print(WriteStream out) throws IOException(Code)(Java Doc)
public void printHtml(WriteStream out) throws IOException(Code)(Java Doc)
public void printPretty(WriteStream out) throws IOException(Code)(Java Doc)
void remove()(Code)(Java Doc)
public Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc)
public Node replaceChild(Node newChild, Node refChild) throws DOMException(Code)(Java Doc)
public void setFeature(String feature, boolean value)(Code)(Java Doc)
public void setLocation(String systemId, String filename, int line, int column)(Code)(Java Doc)
public void setNodeValue(String value)(Code)(Java Doc)
public void setPrefix(String prefix)(Code)(Java Doc)
public void setTextContent(String textContent) throws DOMException(Code)(Java Doc)
public Object setUserData(String key, Object value, UserDataHandler userData)(Code)(Java Doc)
public boolean supports(String feature, String version)(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.