com.sun.xml.messaging.saaj.soap.impl
Class ElementImpl
java.lang.Object
com.sun.org.apache.xerces.internal.dom.NodeImpl
com.sun.org.apache.xerces.internal.dom.ChildNode
com.sun.org.apache.xerces.internal.dom.ParentNode
com.sun.org.apache.xerces.internal.dom.ElementImpl
com.sun.org.apache.xerces.internal.dom.ElementNSImpl
com.sun.xml.messaging.saaj.soap.impl.ElementImpl
- All Implemented Interfaces:
- Serializable, Cloneable, javax.xml.soap.SOAPBodyElement, javax.xml.soap.SOAPElement, Element, EventTarget, Node, NodeList, TypeInfo
- Direct Known Subclasses:
- BodyElementImpl, BodyImpl, DetailEntryImpl, EnvelopeImpl, FaultElementImpl, FaultImpl, HeaderElementImpl, HeaderImpl
public class ElementImpl
- extends com.sun.org.apache.xerces.internal.dom.ElementNSImpl
- implements javax.xml.soap.SOAPElement, javax.xml.soap.SOAPBodyElement
- See Also:
- Serialized Form
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
localName, namespaceURI |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
attributes, name |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
firstChild, fNodeListCache, ownerDocument |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary |
javax.xml.soap.SOAPElement |
addAttribute(javax.xml.soap.Name name,
String value)
|
javax.xml.soap.SOAPElement |
addAttribute(QName qname,
String value)
|
protected javax.xml.soap.SOAPElement |
addCDATA(String text)
|
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.Name name)
|
javax.xml.soap.SOAPElement |
addChildElement(QName qname)
|
javax.xml.soap.SOAPElement |
addChildElement(javax.xml.soap.SOAPElement element)
|
javax.xml.soap.SOAPElement |
addChildElement(String localName)
|
javax.xml.soap.SOAPElement |
addChildElement(String localName,
String prefix)
|
javax.xml.soap.SOAPElement |
addChildElement(String localName,
String prefix,
String uri)
|
protected javax.xml.soap.SOAPElement |
addElement(javax.xml.soap.Name name)
|
protected javax.xml.soap.SOAPElement |
addElement(QName name)
|
javax.xml.soap.SOAPElement |
addNamespaceDeclaration(String prefix,
String uri)
|
protected void |
addNode(Node newElement)
|
protected javax.xml.soap.SOAPElement |
addText(String text)
|
javax.xml.soap.SOAPElement |
addTextNode(String text)
|
protected javax.xml.soap.SOAPElement |
circumventBug5034339(javax.xml.soap.SOAPElement element)
|
protected javax.xml.soap.SOAPElement |
convertToSoapElement(Element element)
|
protected javax.xml.soap.SOAPElement |
createElement(javax.xml.soap.Name name)
|
protected javax.xml.soap.SOAPElement |
createElement(QName name)
|
QName |
createQName(String localName,
String prefix)
|
void |
detachNode()
|
protected Iterator |
doGetNamespacePrefixes(boolean deep)
|
void |
ensureNamespaceIsDeclared(String prefix,
String uri)
|
protected javax.xml.soap.SOAPElement |
findChild(NameImpl name)
|
protected void |
findEncodingStyleAttributeName()
|
Iterator |
getAllAttributes()
|
Iterator |
getAllAttributesAsQNames()
|
protected static Iterator |
getAllAttributesFrom(Element element)
|
String |
getAttributeValue(javax.xml.soap.Name name)
|
String |
getAttributeValue(QName qname)
|
protected static String |
getAttributeValueFrom(Element element,
javax.xml.soap.Name name)
|
protected Iterator |
getChildElementNodes()
|
Iterator |
getChildElements()
|
Iterator |
getChildElements(javax.xml.soap.Name name)
|
Iterator |
getChildElements(QName qname)
|
protected static Iterator |
getChildElementsFrom(Element element)
|
javax.xml.soap.Name |
getElementName()
|
QName |
getElementQName()
|
String |
getEncodingStyle()
|
static String |
getLocalPart(String qualifiedName)
|
protected Attr |
getNamespaceAttr(String prefix)
|
protected static Attr |
getNamespaceAttrFrom(Element element,
String prefix)
|
NamespaceContextIterator |
getNamespaceContextNodes()
|
NamespaceContextIterator |
getNamespaceContextNodes(boolean traverseStack)
|
String |
getNamespacePrefix(String uri)
|
Iterator |
getNamespacePrefixes()
|
String |
getNamespaceURI(String prefix)
|
Document |
getOwnerDocument()
|
javax.xml.soap.SOAPElement |
getParentElement()
|
static String |
getPrefix(String qualifiedName)
|
static String |
getQualifiedName(QName name)
|
protected String |
getSOAPNamespace()
|
String |
getValue()
|
protected javax.xml.soap.Node |
getValueNode()
|
protected Node |
getValueNodeStrict()
|
Iterator |
getVisibleNamespacePrefixes()
|
protected Element |
importElement(Element element)
|
protected boolean |
isNamespaceQualified(javax.xml.soap.Name name)
|
protected boolean |
isNamespaceQualified(QName name)
|
void |
recycleNode()
|
boolean |
removeAttribute(javax.xml.soap.Name name)
|
boolean |
removeAttribute(QName name)
|
void |
removeContents()
|
boolean |
removeNamespaceDeclaration(String prefix)
|
protected static javax.xml.soap.SOAPElement |
replaceElementWithSOAPElement(Element element,
ElementImpl copy)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
javax.xml.soap.SOAPElement |
setElementQName(QName newName)
|
void |
setEncodingStyle(String encodingStyle)
|
protected void |
setEncodingStyleNamespace(String soapNamespace,
String soapNamespacePrefix)
|
void |
setParentElement(javax.xml.soap.SOAPElement element)
|
void |
setValue(String value)
|
void |
tryToFindEncodingStyleAttributeName()
|
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementNSImpl |
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ElementImpl |
cloneNode, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, synchronizeChildren |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class com.sun.org.apache.xerces.internal.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData, toString |
Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
DSIG_NS
public static final String DSIG_NS
XENC_NS
public static final String XENC_NS
WSU_NS
public static final String WSU_NS
elementQName
protected QName elementQName
log
protected static final Logger log
XMLNS_URI
public static final String XMLNS_URI
- XML Information Set REC
all namespace attributes (including those named xmlns,
whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
XML_URI
public static final String XML_URI
- The XML Namespace ("http://www.w3.org/XML/1998/namespace"). This is
the Namespace URI that is automatically mapped to the "xml" prefix.
ElementImpl
public ElementImpl(SOAPDocumentImpl ownerDoc,
javax.xml.soap.Name name)
ElementImpl
public ElementImpl(SOAPDocumentImpl ownerDoc,
QName name)
ElementImpl
public ElementImpl(SOAPDocumentImpl ownerDoc,
String uri,
String qualifiedName)
ensureNamespaceIsDeclared
public void ensureNamespaceIsDeclared(String prefix,
String uri)
getOwnerDocument
public Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interface Node
- Overrides:
getOwnerDocument
in class com.sun.org.apache.xerces.internal.dom.ParentNode
addChildElement
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addChildElement
public javax.xml.soap.SOAPElement addChildElement(QName qname)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface javax.xml.soap.SOAPElement
setElementQName
public javax.xml.soap.SOAPElement setElementQName(QName newName)
throws javax.xml.soap.SOAPException
- Specified by:
setElementQName
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
createQName
public QName createQName(String localName,
String prefix)
throws javax.xml.soap.SOAPException
- Specified by:
createQName
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
getNamespacePrefix
public String getNamespacePrefix(String uri)
getNamespaceAttr
protected Attr getNamespaceAttr(String prefix)
getNamespaceContextNodes
public NamespaceContextIterator getNamespaceContextNodes()
getNamespaceContextNodes
public NamespaceContextIterator getNamespaceContextNodes(boolean traverseStack)
addChildElement
public javax.xml.soap.SOAPElement addChildElement(String localName,
String prefix,
String uri)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addChildElement
public javax.xml.soap.SOAPElement addChildElement(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
- Specified by:
addChildElement
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
importElement
protected Element importElement(Element element)
addElement
protected javax.xml.soap.SOAPElement addElement(javax.xml.soap.Name name)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
addElement
protected javax.xml.soap.SOAPElement addElement(QName name)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
createElement
protected javax.xml.soap.SOAPElement createElement(javax.xml.soap.Name name)
createElement
protected javax.xml.soap.SOAPElement createElement(QName name)
addNode
protected void addNode(Node newElement)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
findChild
protected javax.xml.soap.SOAPElement findChild(NameImpl name)
addTextNode
public javax.xml.soap.SOAPElement addTextNode(String text)
throws javax.xml.soap.SOAPException
- Specified by:
addTextNode
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addCDATA
protected javax.xml.soap.SOAPElement addCDATA(String text)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
addText
protected javax.xml.soap.SOAPElement addText(String text)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
addAttribute
public javax.xml.soap.SOAPElement addAttribute(javax.xml.soap.Name name,
String value)
throws javax.xml.soap.SOAPException
- Specified by:
addAttribute
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addAttribute
public javax.xml.soap.SOAPElement addAttribute(QName qname,
String value)
throws javax.xml.soap.SOAPException
- Specified by:
addAttribute
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
addNamespaceDeclaration
public javax.xml.soap.SOAPElement addNamespaceDeclaration(String prefix,
String uri)
throws javax.xml.soap.SOAPException
- Specified by:
addNamespaceDeclaration
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
getAttributeValue
public String getAttributeValue(javax.xml.soap.Name name)
- Specified by:
getAttributeValue
in interface javax.xml.soap.SOAPElement
getAttributeValue
public String getAttributeValue(QName qname)
- Specified by:
getAttributeValue
in interface javax.xml.soap.SOAPElement
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributes
in interface javax.xml.soap.SOAPElement
getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()
- Specified by:
getAllAttributesAsQNames
in interface javax.xml.soap.SOAPElement
getNamespacePrefixes
public Iterator getNamespacePrefixes()
- Specified by:
getNamespacePrefixes
in interface javax.xml.soap.SOAPElement
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixes
in interface javax.xml.soap.SOAPElement
doGetNamespacePrefixes
protected Iterator doGetNamespacePrefixes(boolean deep)
getElementName
public javax.xml.soap.Name getElementName()
- Specified by:
getElementName
in interface javax.xml.soap.SOAPElement
getElementQName
public QName getElementQName()
- Specified by:
getElementQName
in interface javax.xml.soap.SOAPElement
removeAttribute
public boolean removeAttribute(javax.xml.soap.Name name)
- Specified by:
removeAttribute
in interface javax.xml.soap.SOAPElement
removeAttribute
public boolean removeAttribute(QName name)
- Specified by:
removeAttribute
in interface javax.xml.soap.SOAPElement
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String prefix)
- Specified by:
removeNamespaceDeclaration
in interface javax.xml.soap.SOAPElement
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElements
in interface javax.xml.soap.SOAPElement
convertToSoapElement
protected javax.xml.soap.SOAPElement convertToSoapElement(Element element)
replaceElementWithSOAPElement
protected static javax.xml.soap.SOAPElement replaceElementWithSOAPElement(Element element,
ElementImpl copy)
getChildElementNodes
protected Iterator getChildElementNodes()
getChildElements
public Iterator getChildElements(javax.xml.soap.Name name)
- Specified by:
getChildElements
in interface javax.xml.soap.SOAPElement
getChildElements
public Iterator getChildElements(QName qname)
- Specified by:
getChildElements
in interface javax.xml.soap.SOAPElement
removeContents
public void removeContents()
- Specified by:
removeContents
in interface javax.xml.soap.SOAPElement
setEncodingStyle
public void setEncodingStyle(String encodingStyle)
throws javax.xml.soap.SOAPException
- Specified by:
setEncodingStyle
in interface javax.xml.soap.SOAPElement
- Throws:
javax.xml.soap.SOAPException
getEncodingStyle
public String getEncodingStyle()
- Specified by:
getEncodingStyle
in interface javax.xml.soap.SOAPElement
getValue
public String getValue()
setValue
public void setValue(String value)
getValueNodeStrict
protected Node getValueNodeStrict()
getValueNode
protected javax.xml.soap.Node getValueNode()
setParentElement
public void setParentElement(javax.xml.soap.SOAPElement element)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
findEncodingStyleAttributeName
protected void findEncodingStyleAttributeName()
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
setEncodingStyleNamespace
protected void setEncodingStyleNamespace(String soapNamespace,
String soapNamespacePrefix)
throws javax.xml.soap.SOAPException
- Throws:
javax.xml.soap.SOAPException
getParentElement
public javax.xml.soap.SOAPElement getParentElement()
getSOAPNamespace
protected String getSOAPNamespace()
detachNode
public void detachNode()
tryToFindEncodingStyleAttributeName
public void tryToFindEncodingStyleAttributeName()
recycleNode
public void recycleNode()
getNamespaceAttrFrom
protected static Attr getNamespaceAttrFrom(Element element,
String prefix)
getAllAttributesFrom
protected static Iterator getAllAttributesFrom(Element element)
getAttributeValueFrom
protected static String getAttributeValueFrom(Element element,
javax.xml.soap.Name name)
getChildElementsFrom
protected static Iterator getChildElementsFrom(Element element)
getQualifiedName
public static String getQualifiedName(QName name)
getLocalPart
public static String getLocalPart(String qualifiedName)
getPrefix
public static String getPrefix(String qualifiedName)
isNamespaceQualified
protected boolean isNamespaceQualified(javax.xml.soap.Name name)
isNamespaceQualified
protected boolean isNamespaceQualified(QName name)
circumventBug5034339
protected javax.xml.soap.SOAPElement circumventBug5034339(javax.xml.soap.SOAPElement element)
setAttributeNS
public void setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
- Specified by:
setAttributeNS
in interface Element
- Overrides:
setAttributeNS
in class com.sun.org.apache.xerces.internal.dom.ElementImpl
Copyright © 2012 Oracle. All Rights Reserved.