Java Doc for SOAPElementImpl.java in  » Web-Services-AXIS2 » saaj » org » apache » axis2 » saaj » 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 » Web Services AXIS2 » saaj » org.apache.axis2.saaj 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.axis2.saaj.NodeImplEx
   org.apache.axis2.saaj.SOAPElementImpl

All known Subclasses:   org.apache.axis2.saaj.SOAPFaultElementImpl,  org.apache.axis2.saaj.DetailEntryImpl,  org.apache.axis2.saaj.SOAPEnvelopeImpl,  org.apache.axis2.saaj.SOAPHeaderElementImpl,  org.apache.axis2.saaj.SOAPBodyElementImpl,  org.apache.axis2.saaj.SOAPHeaderImpl,  org.apache.axis2.saaj.SOAPBodyImpl,
SOAPElementImpl
public class SOAPElementImpl extends NodeImplEx implements SOAPElement(Code)


Field Summary
protected  ElementImplelement
    

Constructor Summary
public  SOAPElementImpl(ElementImpl element)
    

Method Summary
public  SOAPElementaddAttribute(Name name, String value)
     Adds an attribute with the specified name and value to this SOAPElement object.
public  SOAPElementaddAttribute(QName qname, String value)
    
public  SOAPElementaddChildElement(Name name)
    
public  SOAPElementaddChildElement(SOAPElement soapElement)
    
public  SOAPElementaddChildElement(String localName, String prefix, String uri)
    
public  SOAPElementaddChildElement(String localName, String prefix)
    
public  SOAPElementaddChildElement(String localName)
    
public  SOAPElementaddChildElement(QName qname)
    
public  SOAPElementaddNamespaceDeclaration(String prefix, String uri)
    
public  SOAPElementaddTextNode(String text)
     Creates a new Text object initialized with the given String and adds it to this SOAPElement object.
public  QNamecreateQName(String localName, String prefix)
     Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the context of this SOAPElement.
public  OMNodedetach()
    
public  voiddetachNode()
    
public  voiddiscard()
    
public  IteratorgetAllAttributes()
     Returns an iterator over all of the attribute names in this SOAPElement object.
public  IteratorgetAllAttributesAsQNames()
    
public  StringgetAttribute(String name)
    
public  StringgetAttributeNS(String namespaceURI, String localName)
    
public  AttrgetAttributeNode(String name)
    
public  AttrgetAttributeNodeNS(String namespaceURI, String localName)
    
public  StringgetAttributeValue(Name name)
    
public  StringgetAttributeValue(QName qname)
    
public  NamedNodeMapgetAttributes()
     Returns the collection of attributes associated with this node, or null if none.
public  IteratorgetChildElements()
     Returns an iterator over all the immediate content of this element.
public  IteratorgetChildElements(Name name)
    
public  IteratorgetChildElements(QName qname)
    
public  NodeListgetChildNodes()
    
public  ElementImplgetElement()
    
public  NamegetElementName()
    
public  QNamegetElementQName()
    
public  NodeListgetElementsByTagName(String name)
    
public  NodeListgetElementsByTagNameNS(String namespaceURI, String localName)
    
public  StringgetEncodingStyle()
    
public  org.w3c.dom.NodegetFirstChild()
    
public  org.w3c.dom.NodegetLastChild()
    
public  StringgetLocalName()
    
public  IteratorgetNamespacePrefixes()
    
public  StringgetNamespaceURI()
    
public  StringgetNamespaceURI(String prefix)
    
public  org.w3c.dom.NodegetNextSibling()
    
public  StringgetNodeName()
    
public  shortgetNodeType()
    
public  DocumentgetOwnerDocument()
     Find the Document that this Node belongs to (the document in whose context the Node was created).
public  SOAPElementgetParentElement()
     Returns the parent element of this Node object.
public  NodegetParentNode()
    
public  StringgetPrefix()
    
public  NodegetPreviousSibling()
    
public  StringgetTagName()
    
public  StringgetValue()
     Returns the the value of the immediate child of this Node object if a child exists and its value is text.
public  IteratorgetVisibleNamespacePrefixes()
    
public  booleanhasAttribute(String name)
    
public  booleanhasAttributeNS(String namespaceURI, String localName)
    
public  booleanhasChildNodes()
    
public  voidinternalSerialize(javax.xml.stream.XMLStreamWriter writer)
    
public  voidinternalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
    
public  booleanremoveAttribute(QName qname)
    
public  booleanremoveAttribute(Name name)
    
public  voidremoveAttribute(String name)
    
public  voidremoveAttributeNS(String namespaceURI, String localName)
    
public  AttrremoveAttributeNode(Attr attr)
    
public  voidremoveContents()
    
public  booleanremoveNamespaceDeclaration(String prefix)
    
public  voidsetAttribute(String name, String value)
    
public  voidsetAttributeNS(String namespaceURI, String qualifiedName, String value)
    
public  AttrsetAttributeNode(Attr attr)
    
public  AttrsetAttributeNodeNS(Attr attr)
    
public  SOAPElementsetElementQName(QName newName)
    
public  voidsetEncodingStyle(String encodingStyle)
     Sets the encoding style for this SOAPElement object to one specified.
Parameters:
  encodingStyle - - a String giving the encoding style
throws:
  IllegalArgumentException - - if there was a problem in the encoding style being set.
public  voidsetParent(OMContainer parentElement)
    
public  voidsetParentElement(SOAPElement parent)
    
public  voidsetValue(String value)
     If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.

Field Detail
element
protected ElementImpl element(Code)
Using a delegate because we can't extend from org.apache.axiom.om.impl.dom.ElementImpl since this class must extend SNodeImpl




Constructor Detail
SOAPElementImpl
public SOAPElementImpl(ElementImpl element)(Code)




Method Detail
addAttribute
public SOAPElement addAttribute(Name name, String value) throws SOAPException(Code)
Adds an attribute with the specified name and value to this SOAPElement object.


Parameters:
  name - a Name object with the name of the attribute
Parameters:
  value - a String giving the value of the attribute the SOAPElement object into which the attribute was inserted
throws:
  SOAPException - if there is an error in creating the Attribute




addAttribute
public SOAPElement addAttribute(QName qname, String value) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(Name name) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(SOAPElement soapElement) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(String localName, String prefix) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(String localName) throws SOAPException(Code)



addChildElement
public SOAPElement addChildElement(QName qname) throws SOAPException(Code)



addNamespaceDeclaration
public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException(Code)



addTextNode
public SOAPElement addTextNode(String text) throws SOAPException(Code)
Creates a new Text object initialized with the given String and adds it to this SOAPElement object.
Parameters:
  text - a String object with the textual content to be added the SOAPElement object into which the new Text object wasinserted
throws:
  SOAPException - if there is an error in creating the new Text object



createQName
public QName createQName(String localName, String prefix) throws SOAPException(Code)
Creates a QName whose namespace URI is the one associated with the parameter, prefix, in the context of this SOAPElement. The remaining elements of the new QName are taken directly from the parameters, localName and prefix.
Parameters:
  localName - - a String containing the local part of the name. prefix - a Stringcontaining the prefix for the name. a QName with the specified localName and prefix, and with a namespace that isassociated with the prefix in the context of this SOAPElement. This namespace will bethe same as the one that would be returned by getNamespaceURI(String) if it weregiven prefix as its parameter.
throws:
  SOAPException - - if the QName cannot be created.
since:
   SAAJ 1.3



detach
public OMNode detach()(Code)



detachNode
public void detachNode()(Code)



discard
public void discard() throws OMException(Code)



getAllAttributes
public Iterator getAllAttributes()(Code)
Returns an iterator over all of the attribute names in this SOAPElement object. The iterator can be used to get the attribute names, which can then be passed to the method getAttributeValue to retrieve the value of each attribute. an iterator over the names of the attributes



getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()(Code)



getAttribute
public String getAttribute(String name)(Code)



getAttributeNS
public String getAttributeNS(String namespaceURI, String localName)(Code)



getAttributeNode
public Attr getAttributeNode(String name)(Code)



getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI, String localName)(Code)



getAttributeValue
public String getAttributeValue(Name name)(Code)



getAttributeValue
public String getAttributeValue(QName qname)(Code)



getAttributes
public NamedNodeMap getAttributes()(Code)
Returns the collection of attributes associated with this node, or null if none. At this writing, Element is the only type of node which will ever have attributes.
See Also:   org.apache.axiom.om.impl.dom.ElementImpl



getChildElements
public Iterator getChildElements()(Code)
Returns an iterator over all the immediate content of this element. This includes Text objects as well as SOAPElement objects. an iterator over Text and SOAPElement contained within thisSOAPElement object



getChildElements
public Iterator getChildElements(Name name)(Code)



getChildElements
public Iterator getChildElements(QName qname)(Code)



getChildNodes
public NodeList getChildNodes()(Code)



getElement
public ElementImpl getElement()(Code)



getElementName
public Name getElementName()(Code)



getElementQName
public QName getElementQName()(Code)



getElementsByTagName
public NodeList getElementsByTagName(String name)(Code)



getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)(Code)



getEncodingStyle
public String getEncodingStyle()(Code)



getFirstChild
public org.w3c.dom.Node getFirstChild()(Code)



getLastChild
public org.w3c.dom.Node getLastChild()(Code)
Method getLastChild
See Also:   org.w3c.dom.Node.getLastChild



getLocalName
public String getLocalName()(Code)



getNamespacePrefixes
public Iterator getNamespacePrefixes()(Code)



getNamespaceURI
public String getNamespaceURI()(Code)



getNamespaceURI
public String getNamespaceURI(String prefix)(Code)



getNextSibling
public org.w3c.dom.Node getNextSibling()(Code)
dom Node method



getNodeName
public String getNodeName()(Code)



getNodeType
public short getNodeType()(Code)



getOwnerDocument
public Document getOwnerDocument()(Code)
Find the Document that this Node belongs to (the document in whose context the Node was created). The Node may or may not



getParentElement
public SOAPElement getParentElement()(Code)
Returns the parent element of this Node object. This method can throw an UnsupportedOperationException if the tree is not kept in memory. the SOAPElement object that is the parent of this Nodeobject or null if this Node object is root
throws:
  UnsupportedOperationException - if the whole tree is not kept in memory
See Also:   SOAPElementImpl.setParentElement(javax.xml.soap.SOAPElement)
See Also:    setParentElement(javax.xml.soap.SOAPElement)



getParentNode
public Node getParentNode()(Code)



getPrefix
public String getPrefix()(Code)



getPreviousSibling
public Node getPreviousSibling()(Code)



getTagName
public String getTagName()(Code)



getValue
public String getValue()(Code)
Returns the the value of the immediate child of this Node object if a child exists and its value is text. a String with the text of the immediate child of this Nodeobject if (1) there is a child and (2) the child is a Text object;null otherwise



getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()(Code)



hasAttribute
public boolean hasAttribute(String name)(Code)



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



hasChildNodes
public boolean hasChildNodes()(Code)



internalSerialize
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws XMLStreamException(Code)



internalSerializeAndConsume
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer) throws XMLStreamException(Code)



removeAttribute
public boolean removeAttribute(QName qname)(Code)



removeAttribute
public boolean removeAttribute(Name name)(Code)



removeAttribute
public void removeAttribute(String name) throws DOMException(Code)



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



removeAttributeNode
public Attr removeAttributeNode(Attr attr) throws DOMException(Code)



removeContents
public void removeContents()(Code)



removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String prefix)(Code)



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



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



setAttributeNode
public Attr setAttributeNode(Attr attr) throws DOMException(Code)



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



setElementQName
public SOAPElement setElementQName(QName newName) throws SOAPException(Code)



setEncodingStyle
public void setEncodingStyle(String encodingStyle) throws SOAPException(Code)
Sets the encoding style for this SOAPElement object to one specified.
Parameters:
  encodingStyle - - a String giving the encoding style
throws:
  IllegalArgumentException - - if there was a problem in the encoding style being set. SOAPException - if settingthe encodingStyle is invalid for this SOAPElement.



setParent
public void setParent(OMContainer parentElement)(Code)



setParentElement
public void setParentElement(SOAPElement parent) throws SOAPException(Code)



setValue
public void setValue(String value)(Code)
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. The value of the immediate child of this node can be set only if, there is one child node and that node is a Text node, or if there are no children in which case a child Text node will be created.
Parameters:
  value - the text to set
throws:
  IllegalStateException - if the node is not a Text node and either has more than onechild node or has a child node that is not a Text node



Fields inherited from org.apache.axis2.saaj.NodeImplEx
final static String SAAJ_NODE(Code)(Java Doc)
protected SOAPElement parentElement(Code)(Java Doc)

Methods inherited from org.apache.axis2.saaj.NodeImplEx
public OMNode detach()(Code)(Java Doc)
public void detachNode()(Code)(Java Doc)
public OMContainer getParent()(Code)(Java Doc)
public SOAPElement getParentElement()(Code)(Java Doc)
public TypeInfo getSchemaTypeInfo()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public void recycleNode()(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 idAttr, boolean isId) throws DOMException(Code)(Java Doc)
public void setParentElement(SOAPElement parent) throws SOAPException(Code)(Java Doc)
public void setType(int nodeType) throws OMException(Code)(Java Doc)
javax.xml.soap.Node toSAAJNode(org.w3c.dom.Node domNode)(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.