|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.message.NodeImpl org.apache.axis.message.SOAPElementImpl
An implemenation of the abstract SOAPElement.
This class should not expose functionality that is not part ofSOAPElement
. Client code should use SOAPElement
whenever possible.
Field Summary |
Fields inherited from class org.apache.axis.message.NodeImpl |
domNode, soapParent |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
SOAPElementImpl(javax.xml.soap.Name name)
Constructor used by the SOAPElementFactory |
|
SOAPElementImpl(String localPart)
Constructor used by the SOAPElementFactory |
|
SOAPElementImpl(String localPart,
String prefix,
String namespace)
Constructor used by the SOAPElementFactory |
Method Summary | |
javax.xml.soap.SOAPElement |
addAttribute(javax.xml.soap.Name name,
String value)
Adds an attribute with the specified name and value to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.Name name)
Creates a new SOAPElement object initialized with the given Name object and adds the new element to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.SOAPElement child)
Add a SOAPElement as a child of this SOAPElement instance. |
javax.xml.soap.SOAPElement |
addChildElement(String name)
Creates a new SOAPElement object initialized with the specified local name and adds the new element to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addChildElement(String localName,
String prefix)
Creates a new SOAPElement object initialized with the specified local name and prefix and adds the new element to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addChildElement(String localName,
String prefix,
String uri)
Creates a new SOAPElement object initialized with the specified local name, prefix, and URI and adds the new element to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addNamespaceDeclaration(String prefix,
String uri)
Adds a namespace declaration with the specified prefix and URI to this SOAPElement object. |
javax.xml.soap.SOAPElement |
addTextNode(String value)
Creates a new Text object initialized with the given String and adds it to this SOAPElement object. |
Iterator |
getAllAttributes()
Returns an Iterator over all of the attribute Name objects in this SOAPElement object. |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
String |
getAttributeValue(javax.xml.soap.Name name)
Returns the value of the attribute with the specified name. |
Iterator |
getChildElements()
Returns an Iterator over all the immediate child Nodes of this element. |
Iterator |
getChildElements(javax.xml.soap.Name name)
Returns an Iterator over all the immediate child Nodes of this element with the specified name. |
javax.xml.soap.Name |
getElementName()
Returns the name of this SOAPElement object. |
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
String |
getEncodingStyle()
Returns the encoding style for this SOAPElement object. |
Iterator |
getNamespacePrefixes()
Returns an Iterator over the namespace prefix Strings declared by this element. |
String |
getNamespaceURI(String prefix)
Returns the URI of the namespace that has the given prefix. |
String |
getTagName()
|
Iterator |
getVisibleNamespacePrefixes()
Returns an Iterator over the namespace prefix Strings visible to this element. |
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String namespaceURI,
String localName)
|
boolean |
removeAttribute(javax.xml.soap.Name name)
Removes the attribute with the specified name. |
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String namespaceURI,
String localName)
|
void |
removeContents()
Detaches all children of this SOAPElement. |
boolean |
removeNamespaceDeclaration(String prefix)
Removes the namespace declaration corresponding to the given prefix. |
void |
setAttribute(String name,
String value)
|
Attr |
setAttributeNode(Attr newAttr)
|
Attr |
setAttributeNodeNS(Attr newAttr)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
void |
setEncodingStyle(String encodingStyle)
Sets the encoding style for this SOAPElement object to one specified. |
Methods inherited from class org.apache.axis.message.NodeImpl |
appendChild, cloneNode, detachNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getValue, hasAttributes, hasChildNodes, hashCode, insertBefore, isSupported, normalize, recycleNode, removeChild, replaceChild, setNodeValue, setParentElement, setPrefix, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.soap.Node |
detachNode, getParentElement, getValue, recycleNode, setParentElement, setValue |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public SOAPElementImpl(String localPart)
SOAPElementFactory
public SOAPElementImpl(String localPart, String prefix, String namespace)
SOAPElementFactory
public SOAPElementImpl(javax.xml.soap.Name name)
SOAPElementFactory
Method Detail |
public javax.xml.soap.SOAPElement addAttribute(javax.xml.soap.Name name, String value) throws javax.xml.soap.SOAPException
addAttribute
in interface javax.xml.soap.SOAPElement
name
- a Name object with the name of the attributevalue
- a String giving the value of the attribute
javax.xml.soap.SOAPException
- if there is an error in creating the Attributepublic javax.xml.soap.SOAPElement addChildElement(String name) throws javax.xml.soap.SOAPException
addChildElement
in interface javax.xml.soap.SOAPElement
name
- a String giving the local name for the element
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement objectpublic javax.xml.soap.SOAPElement addChildElement(String localName, String prefix) throws javax.xml.soap.SOAPException
addChildElement
in interface javax.xml.soap.SOAPElement
localName
- a String giving the local name for the new elementprefix
- a String giving the namespace prefix for the new element
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement objectpublic javax.xml.soap.SOAPElement addChildElement(String localName, String prefix, String uri) throws javax.xml.soap.SOAPException
addChildElement
in interface javax.xml.soap.SOAPElement
localName
- a String giving the local name for the new elementprefix
- a String giving the namespace prefix for the new elementuri
- a String giving the URI of the namespace to which the new element belongs
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement objectpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name) throws javax.xml.soap.SOAPException
addChildElement
in interface javax.xml.soap.SOAPElement
name
- a Name object with the XML name for the new element
javax.xml.soap.SOAPException
- if there is an error in creating the SOAPElement objectpublic javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement child) throws javax.xml.soap.SOAPException
addChildElement
in interface javax.xml.soap.SOAPElement
child
- the SOAPElement to be added as a new child
javax.xml.soap.SOAPException
- if there was an error in adding this element as a childpublic javax.xml.soap.SOAPElement addNamespaceDeclaration(String prefix, String uri) throws javax.xml.soap.SOAPException
addNamespaceDeclaration
in interface javax.xml.soap.SOAPElement
prefix
- a String giving the prefix of the namespaceuri
- a String giving the uri of the namespace
javax.xml.soap.SOAPException
- if there is an error in creating the namespacepublic javax.xml.soap.SOAPElement addTextNode(String value) throws javax.xml.soap.SOAPException
addTextNode
in interface javax.xml.soap.SOAPElement
value
- a String object with the textual content to be added
javax.xml.soap.SOAPException
- if there is an error in creating the new Text objectpublic Iterator getAllAttributes()
getAllAttributes
in interface javax.xml.soap.SOAPElement
public String getAttributeValue(javax.xml.soap.Name name)
getAttributeValue
in interface javax.xml.soap.SOAPElement
name
- a Name object with the name of the attribute
public Iterator getChildElements()
getChildElements
in interface javax.xml.soap.SOAPElement
public Iterator getChildElements(javax.xml.soap.Name name)
getChildElements
in interface javax.xml.soap.SOAPElement
name
- a Name object with the name of the child elements to be returned
public javax.xml.soap.Name getElementName()
getElementName
in interface javax.xml.soap.SOAPElement
public String getEncodingStyle()
getEncodingStyle
in interface javax.xml.soap.SOAPElement
public Iterator getNamespacePrefixes()
getNamespacePrefixes
in interface javax.xml.soap.SOAPElement
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface javax.xml.soap.SOAPElement
prefix
- a String giving the prefix of the namespace for which to search
public Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes
in interface javax.xml.soap.SOAPElement
public boolean removeAttribute(javax.xml.soap.Name name)
removeAttribute
in interface javax.xml.soap.SOAPElement
name
- the Name object with the name of the attribute to be removed
public void removeContents()
removeContents
in interface javax.xml.soap.SOAPElement
public boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration
in interface javax.xml.soap.SOAPElement
prefix
- a String giving the prefix for which to search
public void setEncodingStyle(String encodingStyle) throws javax.xml.soap.SOAPException
setEncodingStyle
in interface javax.xml.soap.SOAPElement
encodingStyle
- a String giving the encoding style
javax.xml.soap.SOAPException
- if there was a problem in the encoding style being set.public String getTagName()
getTagName
in interface Element
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public String getAttribute(String name)
getAttribute
in interface Element
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS
in interface Element
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Element
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |