Java Doc for XmlElement.java in  » Testing » htmlunit » com » gargoylesoftware » htmlunit » 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 » Testing » htmlunit » com.gargoylesoftware.htmlunit.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gargoylesoftware.htmlunit.html.DomNamespaceNode
   com.gargoylesoftware.htmlunit.xml.XmlElement

XmlElement
public class XmlElement extends DomNamespaceNode (Code)
An XML element.
version:
   $Revision: 2132 $
author:
   Ahmed Ashour


Field Summary
final public static  StringATTRIBUTE_NOT_DEFINED
     Constant meaning that the specified attribute was not defined.

Constructor Summary
protected  XmlElement(String namespaceURI, String qualifiedName, Page page, Map attributes)
     Create an instance of a DOM node that can have a namespace.

Method Summary
static  XmlAttraddAttributeToMap(XmlPage page, Map attributeMap, String namespaceURI, String qualifiedName, String value)
     Add an attribute to the attribute map.
static  MapcreateAttributeMap(int attributeCount)
     Create an attribute map as needed by HtmlElement.
final public  StringgetAttributeValue(String attributeName)
     Return the value of the specified attribute or an empty string.
public  MapgetAttributes()
     Returns the map holding the attributes, keyed by name.
public  StringgetNodeName()
    
public  shortgetNodeType()
    
public  StringgetTagName()
     Return the tag name of this element.
final public  voidremoveAttribute(String attributeName)
     Removes an attribute specified by name from this element.
final public  voidremoveAttributeNS(String namespaceURI, String localName)
     Removes an attribute specified by namespace and local name from this element.
final public  voidsetAttribute(String attributeName, String attributeValue)
     Set the value of the attribute specified by name.
final public  voidsetAttributeNS(String namespaceURI, String qualifiedName, String attributeValue)
     Set the value of the attribute specified by namespace and qualified name.
final public  voidsetAttributeValue(String attributeName, String attributeValue)
     Set the value of the specified attribute.
final public  voidsetAttributeValue(String namespaceURI, String qualifiedName, String attributeValue)
     Set the value of the specified attribute.

Field Detail
ATTRIBUTE_NOT_DEFINED
final public static String ATTRIBUTE_NOT_DEFINED(Code)
Constant meaning that the specified attribute was not defined.




Constructor Detail
XmlElement
protected XmlElement(String namespaceURI, String qualifiedName, Page page, Map attributes)(Code)
Create an instance of a DOM node that can have a namespace.
Parameters:
  namespaceURI - the URI that identifies an XML namespace.
Parameters:
  qualifiedName - The qualified name of the element type to instantiate.
Parameters:
  page - The page that contains this element.
Parameters:
  attributes - The attributes of this element.




Method Detail
addAttributeToMap
static XmlAttr addAttributeToMap(XmlPage page, Map attributeMap, String namespaceURI, String qualifiedName, String value)(Code)
Add an attribute to the attribute map. This is just used by the element factories.
Parameters:
  attributeMap - the attribute map where the attribute will be added.
Parameters:
  namespaceURI - the URI that identifies an XML namespace.
Parameters:
  qualifiedName - The qualified name of the attribute
Parameters:
  value - The value of the attribute



createAttributeMap
static Map createAttributeMap(int attributeCount)(Code)
Create an attribute map as needed by HtmlElement. This is just used by the element factories.
Parameters:
  attributeCount - the initial number of attributes to be added to the map. the attribute map.



getAttributeValue
final public String getAttributeValue(String attributeName)(Code)
Return the value of the specified attribute or an empty string. If the result is an empty string then it will be XmlElement.ATTRIBUTE_NOT_DEFINED
Parameters:
  attributeName - the name of the attribute The value of the attribute or XmlElement.ATTRIBUTE_NOT_DEFINED



getAttributes
public Map getAttributes()(Code)
Returns the map holding the attributes, keyed by name. the attributes map.



getNodeName
public String getNodeName()(Code)
The same value as returned by XmlElement.getTagName(),



getNodeType
public short getNodeType()(Code)



getTagName
public String getTagName()(Code)
Return the tag name of this element. the tag name of this element.



removeAttribute
final public void removeAttribute(String attributeName)(Code)
Removes an attribute specified by name from this element.
Parameters:
  attributeName - the attribute attributeName



removeAttributeNS
final public void removeAttributeNS(String namespaceURI, String localName)(Code)
Removes an attribute specified by namespace and local name from this element.
Parameters:
  namespaceURI - the URI that identifies an XML namespace.
Parameters:
  localName - The name within the namespace.



setAttribute
final public void setAttribute(String attributeName, String attributeValue)(Code)
Set the value of the attribute specified by name.
Parameters:
  attributeName - the name of the attribute
Parameters:
  attributeValue - The value of the attribute



setAttributeNS
final public void setAttributeNS(String namespaceURI, String qualifiedName, String attributeValue)(Code)
Set the value of the attribute specified by namespace and qualified name.
Parameters:
  namespaceURI - the URI that identifies an XML namespace.
Parameters:
  qualifiedName - The qualified name (prefix:local) of the attribute.
Parameters:
  attributeValue - The value of the attribute



setAttributeValue
final public void setAttributeValue(String attributeName, String attributeValue)(Code)
Set the value of the specified attribute.
Parameters:
  attributeName - the name of the attribute
Parameters:
  attributeValue - The value of the attribute



setAttributeValue
final public void setAttributeValue(String namespaceURI, String qualifiedName, String attributeValue)(Code)
Set the value of the specified attribute.
Parameters:
  namespaceURI - the URI that identifies an XML namespace.
Parameters:
  qualifiedName - The qualified name of the attribute
Parameters:
  attributeValue - The value of the attribute



Methods inherited from com.gargoylesoftware.htmlunit.html.DomNamespaceNode
public String getLocalName()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public String getQualifiedName()(Code)(Java Doc)
public void setPrefix(String prefix)(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.