|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.axis.message.NodeImpl (src)
org.jboss.axis.message.SOAPElementImpl
An implemenation of the abstract SOAPElement.
This class should not expose functionality that is not part ofSOAPElement
(src) . Client code should use SOAPElement
whenever possible.
Field Summary |
Fields inherited from class org.jboss.axis.message.NodeImpl (src) |
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(Name (src) name)
Constructor used by the SOAPElementFactory |
|
SOAPElementImpl(java.lang.String localPart)
Constructor used by the SOAPElementFactory |
|
SOAPElementImpl(java.lang.String localPart,
java.lang.String prefix,
java.lang.String namespace)
Constructor used by the SOAPElementFactory |
Method Summary | |
SOAPElement (src) |
addAttribute(Name (src) name,
java.lang.String value)
Adds an attribute with the specified name and value to this SOAPElement object. |
SOAPElement (src) |
addChildElement(Name (src) name)
Creates a new SOAPElement object initialized with the given Name object and adds the new element to this SOAPElement object. |
SOAPElement (src) |
addChildElement(SOAPElement (src) child)
Add a SOAPElement as a child of this SOAPElement instance. |
SOAPElement (src) |
addChildElement(java.lang.String name)
Creates a new SOAPElement object initialized with the specified local name and adds the new element to this SOAPElement object. |
SOAPElement (src) |
addChildElement(java.lang.String localName,
java.lang.String prefix)
Creates a new SOAPElement object initialized with the specified local name and prefix and adds the new element to this SOAPElement object. |
SOAPElement (src) |
addChildElement(java.lang.String localName,
java.lang.String prefix,
java.lang.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. |
SOAPElement (src) |
addNamespaceDeclaration(java.lang.String prefix,
java.lang.String uri)
Adds a namespace declaration with the specified prefix and URI to this SOAPElement object. |
SOAPElement (src) |
addTextNode(java.lang.String value)
Creates a new Text object initialized with the given String and adds it to this SOAPElement object. |
java.util.Iterator |
getAllAttributes()
Returns an Iterator over all of the attribute Name objects in this SOAPElement object. |
java.lang.String |
getAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeValue(Name (src) name)
Returns the value of the attribute with the specified name. |
java.util.Iterator |
getChildElements()
Returns an Iterator over all the immediate child Nodes of this element. |
java.util.Iterator |
getChildElements(Name (src) name)
Returns an Iterator over all the immediate child Nodes of this element with the specified name. |
Name (src) |
getElementName()
Returns the name of this SOAPElement object. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getEncodingStyle()
Returns the encoding style for this SOAPElement object. |
java.util.Iterator |
getNamespacePrefixes()
Returns an Iterator over the namespace prefix Strings declared by this element. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the URI of the namespace that has the given prefix. |
TypeInfo (src) |
getSchemaTypeInfo()
|
java.lang.String |
getTagName()
|
java.util.Iterator |
getVisibleNamespacePrefixes()
Returns an Iterator over the namespace prefix Strings visible to this element. |
boolean |
hasAttribute(java.lang.String name)
|
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
boolean |
removeAttribute(Name (src) name)
Removes the attribute with the specified name. |
void |
removeAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
|
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
void |
removeContents()
Detaches all children of this SOAPElement. |
boolean |
removeNamespaceDeclaration(java.lang.String prefix)
Removes the namespace declaration corresponding to the given prefix. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
|
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
|
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
|
void |
setEncodingStyle(java.lang.String encodingStyle)
Sets the encoding style for this SOAPElement object to one specified. |
void |
setIdAttribute(java.lang.String name,
boolean isId)
|
void |
setIdAttributeNode(org.w3c.dom.Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
|
Methods inherited from class org.jboss.axis.message.NodeImpl (src) |
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 (src) |
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(java.lang.String localPart)
SOAPElementFactory
public SOAPElementImpl(java.lang.String localPart, java.lang.String prefix, java.lang.String namespace)
SOAPElementFactory
public SOAPElementImpl(Name (src) name)
SOAPElementFactory
Method Detail |
public SOAPElement (src) addAttribute(Name (src) name, java.lang.String value) throws SOAPException (src)
addAttribute
in interface SOAPElement (src)
name
- a Name object with the name of the attributevalue
- a String giving the value of the attribute
SOAPException (src)
- if there is an error in creating the Attributepublic SOAPElement (src) addChildElement(java.lang.String name) throws SOAPException (src)
addChildElement
in interface SOAPElement (src)
name
- a String giving the local name for the element
SOAPException (src)
- if there is an error in creating the SOAPElement objectpublic SOAPElement (src) addChildElement(java.lang.String localName, java.lang.String prefix) throws SOAPException (src)
addChildElement
in interface SOAPElement (src)
localName
- a String giving the local name for the new elementprefix
- a String giving the namespace prefix for the new element
SOAPException (src)
- if there is an error in creating the SOAPElement objectpublic SOAPElement (src) addChildElement(java.lang.String localName, java.lang.String prefix, java.lang.String uri) throws SOAPException (src)
addChildElement
in interface SOAPElement (src)
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
SOAPException (src)
- if there is an error in creating the SOAPElement objectpublic SOAPElement (src) addChildElement(Name (src) name) throws SOAPException (src)
addChildElement
in interface SOAPElement (src)
name
- a Name object with the XML name for the new element
SOAPException (src)
- if there is an error in creating the SOAPElement objectpublic SOAPElement (src) addChildElement(SOAPElement (src) child) throws SOAPException (src)
addChildElement
in interface SOAPElement (src)
child
- the SOAPElement to be added as a new child
SOAPException (src)
- if there was an error in adding this element as a childpublic SOAPElement (src) addNamespaceDeclaration(java.lang.String prefix, java.lang.String uri) throws SOAPException (src)
addNamespaceDeclaration
in interface SOAPElement (src)
prefix
- a String giving the prefix of the namespaceuri
- a String giving the uri of the namespace
SOAPException (src)
- if there is an error in creating the namespacepublic SOAPElement (src) addTextNode(java.lang.String value) throws SOAPException (src)
addTextNode
in interface SOAPElement (src)
value
- a String object with the textual content to be added
SOAPException (src)
- if there is an error in creating the new Text objectpublic java.util.Iterator getAllAttributes()
getAllAttributes
in interface SOAPElement (src)
public java.lang.String getAttributeValue(Name (src) name)
getAttributeValue
in interface SOAPElement (src)
name
- a Name object with the name of the attribute
public java.util.Iterator getChildElements()
getChildElements
in interface SOAPElement (src)
public java.util.Iterator getChildElements(Name (src) name)
getChildElements
in interface SOAPElement (src)
name
- a Name object with the name of the child elements to be returned
public Name (src) getElementName()
getElementName
in interface SOAPElement (src)
public java.lang.String getEncodingStyle()
getEncodingStyle
in interface SOAPElement (src)
public java.util.Iterator getNamespacePrefixes()
getNamespacePrefixes
in interface SOAPElement (src)
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface SOAPElement (src)
prefix
- a String giving the prefix of the namespace for which to search
public java.util.Iterator getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes
in interface SOAPElement (src)
public boolean removeAttribute(Name (src) name)
removeAttribute
in interface SOAPElement (src)
name
- the Name object with the name of the attribute to be removed
public void removeContents()
removeContents
in interface SOAPElement (src)
public boolean removeNamespaceDeclaration(java.lang.String prefix)
removeNamespaceDeclaration
in interface SOAPElement (src)
prefix
- a String giving the prefix for which to search
public void setEncodingStyle(java.lang.String encodingStyle) throws SOAPException (src)
setEncodingStyle
in interface SOAPElement (src)
encodingStyle
- a String giving the encoding style
SOAPException (src)
- if there was a problem in the encoding style being set.public java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public boolean hasAttribute(java.lang.String name)
hasAttribute
in interface org.w3c.dom.Element
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
hasAttributeNS
in interface org.w3c.dom.Element
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNodeNS
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Element
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNS
in interface org.w3c.dom.Element
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Element
public TypeInfo (src) getSchemaTypeInfo()
public void setIdAttribute(java.lang.String name, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNS(java.lang.String namespaceURI, java.lang.String localName, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNode(org.w3c.dom.Attr idAttr, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |