|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.axis.message.NodeImpl
org.jboss.axis.message.SOAPElementImpl
public class 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.jboss.axis.message.NodeImpl |
|---|
domNode, soapParent |
| 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. |
TypeInfo |
getSchemaTypeInfo()
|
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. |
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
|
| Methods inherited from class org.jboss.axis.message.NodeImpl |
|---|
appendChild, cloneNode, compareDocumentPosition, detachNode, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, getValue, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, recycleNode, removeChild, replaceChild, setNodeValue, setParentElement, setPrefix, setTextContent, setUserData, 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, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| 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.SOAPElementname - 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 Attribute
public javax.xml.soap.SOAPElement addChildElement(String name)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementname - a String giving the local name for the element
javax.xml.soap.SOAPException - if there is an error in creating the SOAPElement object
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementlocalName - 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 object
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix,
String uri)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementlocalName - 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 object
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementname - a Name object with the XML name for the new element
javax.xml.soap.SOAPException - if there is an error in creating the SOAPElement object
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement child)
throws javax.xml.soap.SOAPException
addChildElement in interface javax.xml.soap.SOAPElementchild - the SOAPElement to be added as a new child
javax.xml.soap.SOAPException - if there was an error in adding this element as a child
public javax.xml.soap.SOAPElement addNamespaceDeclaration(String prefix,
String uri)
throws javax.xml.soap.SOAPException
addNamespaceDeclaration in interface javax.xml.soap.SOAPElementprefix - 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 namespace
public javax.xml.soap.SOAPElement addTextNode(String value)
throws javax.xml.soap.SOAPException
addTextNode in interface javax.xml.soap.SOAPElementvalue - 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.SOAPElementpublic String getAttributeValue(javax.xml.soap.Name name)
getAttributeValue in interface javax.xml.soap.SOAPElementname - a Name object with the name of the attribute
public Iterator getChildElements()
getChildElements in interface javax.xml.soap.SOAPElementpublic Iterator getChildElements(javax.xml.soap.Name name)
getChildElements in interface javax.xml.soap.SOAPElementname - 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.SOAPElementpublic String getEncodingStyle()
getEncodingStyle in interface javax.xml.soap.SOAPElementpublic Iterator getNamespacePrefixes()
getNamespacePrefixes in interface javax.xml.soap.SOAPElementpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface javax.xml.soap.SOAPElementprefix - a String giving the prefix of the namespace for which to search
public Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes in interface javax.xml.soap.SOAPElementpublic boolean removeAttribute(javax.xml.soap.Name name)
removeAttribute in interface javax.xml.soap.SOAPElementname - the Name object with the name of the attribute to be removed
public void removeContents()
removeContents in interface javax.xml.soap.SOAPElementpublic boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration in interface javax.xml.soap.SOAPElementprefix - 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.SOAPElementencodingStyle - 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 ElementDOMExceptionpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic String getAttribute(String name)
getAttribute in interface Element
public void removeAttributeNS(String namespaceURI,
String localName)
throws DOMException
removeAttributeNS in interface ElementDOMException
public void setAttribute(String name,
String value)
throws DOMException
setAttribute in interface ElementDOMException
public boolean hasAttributeNS(String namespaceURI,
String localName)
hasAttributeNS in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Element
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
removeAttributeNode in interface ElementDOMException
public Attr setAttributeNode(Attr newAttr)
throws DOMException
setAttributeNode in interface ElementDOMException
public Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic 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 ElementDOMException
public Attr getAttributeNodeNS(String namespaceURI,
String localName)
getAttributeNodeNS in interface Element
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
getElementsByTagNameNS in interface Elementpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Element
public void setIdAttribute(String name,
boolean isId)
throws DOMException
setIdAttribute in interface ElementDOMException
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
setIdAttributeNS in interface ElementDOMException
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
setIdAttributeNode in interface ElementDOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||