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, SOAPBodyElement, 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 SOAPElement, 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 |
SOAPElement |
addAttribute(Name name,
String value)
|
SOAPElement |
addAttribute(QName qname,
String value)
|
protected SOAPElement |
addCDATA(String text)
|
SOAPElement |
addChildElement(Name name)
|
SOAPElement |
addChildElement(QName qname)
|
SOAPElement |
addChildElement(SOAPElement element)
|
SOAPElement |
addChildElement(String localName)
|
SOAPElement |
addChildElement(String localName,
String prefix)
|
SOAPElement |
addChildElement(String localName,
String prefix,
String uri)
|
protected SOAPElement |
addElement(Name name)
|
protected SOAPElement |
addElement(QName name)
|
SOAPElement |
addNamespaceDeclaration(String prefix,
String uri)
|
protected void |
addNode(Node newElement)
|
protected SOAPElement |
addText(String text)
|
SOAPElement |
addTextNode(String text)
|
protected SOAPElement |
circumventBug5034339(SOAPElement element)
|
protected SOAPElement |
convertToSoapElement(Element element)
|
protected SOAPElement |
createElement(Name name)
|
protected SOAPElement |
createElement(QName name)
|
QName |
createQName(String localName,
String prefix)
|
void |
detachNode()
|
protected Iterator |
doGetNamespacePrefixes(boolean deep)
|
void |
ensureNamespaceIsDeclared(String prefix,
String uri)
|
protected SOAPElement |
findAndConvertChildElement(NameImpl name)
|
protected SOAPElement |
findChild(NameImpl name)
|
protected void |
findEncodingStyleAttributeName()
|
Iterator |
getAllAttributes()
|
Iterator |
getAllAttributesAsQNames()
|
protected static Iterator |
getAllAttributesFrom(Element element)
|
String |
getAttributeValue(Name name)
|
String |
getAttributeValue(QName qname)
|
protected static String |
getAttributeValueFrom(Element element,
Name name)
|
protected Iterator |
getChildElementNodes()
|
Iterator |
getChildElements()
|
Iterator |
getChildElements(Name name)
|
Iterator |
getChildElements(QName qname)
|
protected static Iterator |
getChildElementsFrom(Element element)
|
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()
|
SOAPElement |
getParentElement()
|
static String |
getPrefix(String qualifiedName)
|
static String |
getQualifiedName(QName name)
|
protected String |
getSOAPNamespace()
|
String |
getValue()
|
protected Node |
getValueNode()
|
protected Node |
getValueNodeStrict()
|
Iterator |
getVisibleNamespacePrefixes()
|
protected Element |
importElement(Element element)
|
protected boolean |
isNamespaceQualified(Name name)
|
protected boolean |
isNamespaceQualified(QName name)
|
void |
recycleNode()
|
boolean |
removeAttribute(Name name)
|
boolean |
removeAttribute(QName name)
|
void |
removeContents()
|
boolean |
removeNamespaceDeclaration(String prefix)
|
protected static SOAPElement |
replaceElementWithSOAPElement(Element element,
ElementImpl copy)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
SOAPElement |
setElementQName(QName newName)
|
void |
setEncodingStyle(String encodingStyle)
|
protected void |
setEncodingStyleNamespace(String soapNamespace,
String soapNamespacePrefix)
|
void |
setParentElement(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,
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 SOAPElement addChildElement(Name name)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(QName qname)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(String localName)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(String localName,
String prefix)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI in interface SOAPElement
setElementQName
public SOAPElement setElementQName(QName newName)
throws SOAPException
- Specified by:
setElementQName in interface SOAPElement
- Throws:
SOAPException
createQName
public QName createQName(String localName,
String prefix)
throws SOAPException
- Specified by:
createQName in interface SOAPElement
- Throws:
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 SOAPElement addChildElement(String localName,
String prefix,
String uri)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
addChildElement
public SOAPElement addChildElement(SOAPElement element)
throws SOAPException
- Specified by:
addChildElement in interface SOAPElement
- Throws:
SOAPException
importElement
protected Element importElement(Element element)
addElement
protected SOAPElement addElement(Name name)
throws SOAPException
- Throws:
SOAPException
addElement
protected SOAPElement addElement(QName name)
throws SOAPException
- Throws:
SOAPException
createElement
protected SOAPElement createElement(Name name)
createElement
protected SOAPElement createElement(QName name)
addNode
protected void addNode(Node newElement)
throws SOAPException
- Throws:
SOAPException
findChild
protected SOAPElement findChild(NameImpl name)
findAndConvertChildElement
protected SOAPElement findAndConvertChildElement(NameImpl name)
addTextNode
public SOAPElement addTextNode(String text)
throws SOAPException
- Specified by:
addTextNode in interface SOAPElement
- Throws:
SOAPException
addCDATA
protected SOAPElement addCDATA(String text)
throws SOAPException
- Throws:
SOAPException
addText
protected SOAPElement addText(String text)
throws SOAPException
- Throws:
SOAPException
addAttribute
public SOAPElement addAttribute(Name name,
String value)
throws SOAPException
- Specified by:
addAttribute in interface SOAPElement
- Throws:
SOAPException
addAttribute
public SOAPElement addAttribute(QName qname,
String value)
throws SOAPException
- Specified by:
addAttribute in interface SOAPElement
- Throws:
SOAPException
addNamespaceDeclaration
public SOAPElement addNamespaceDeclaration(String prefix,
String uri)
throws SOAPException
- Specified by:
addNamespaceDeclaration in interface SOAPElement
- Throws:
SOAPException
getAttributeValue
public String getAttributeValue(Name name)
- Specified by:
getAttributeValue in interface SOAPElement
getAttributeValue
public String getAttributeValue(QName qname)
- Specified by:
getAttributeValue in interface SOAPElement
getAllAttributes
public Iterator getAllAttributes()
- Specified by:
getAllAttributes in interface SOAPElement
getAllAttributesAsQNames
public Iterator getAllAttributesAsQNames()
- Specified by:
getAllAttributesAsQNames in interface SOAPElement
getNamespacePrefixes
public Iterator getNamespacePrefixes()
- Specified by:
getNamespacePrefixes in interface SOAPElement
getVisibleNamespacePrefixes
public Iterator getVisibleNamespacePrefixes()
- Specified by:
getVisibleNamespacePrefixes in interface SOAPElement
doGetNamespacePrefixes
protected Iterator doGetNamespacePrefixes(boolean deep)
getElementName
public Name getElementName()
- Specified by:
getElementName in interface SOAPElement
getElementQName
public QName getElementQName()
- Specified by:
getElementQName in interface SOAPElement
removeAttribute
public boolean removeAttribute(Name name)
- Specified by:
removeAttribute in interface SOAPElement
removeAttribute
public boolean removeAttribute(QName name)
- Specified by:
removeAttribute in interface SOAPElement
removeNamespaceDeclaration
public boolean removeNamespaceDeclaration(String prefix)
- Specified by:
removeNamespaceDeclaration in interface SOAPElement
getChildElements
public Iterator getChildElements()
- Specified by:
getChildElements in interface SOAPElement
convertToSoapElement
protected SOAPElement convertToSoapElement(Element element)
replaceElementWithSOAPElement
protected static SOAPElement replaceElementWithSOAPElement(Element element,
ElementImpl copy)
getChildElementNodes
protected Iterator getChildElementNodes()
getChildElements
public Iterator getChildElements(Name name)
- Specified by:
getChildElements in interface SOAPElement
getChildElements
public Iterator getChildElements(QName qname)
- Specified by:
getChildElements in interface SOAPElement
removeContents
public void removeContents()
- Specified by:
removeContents in interface SOAPElement
setEncodingStyle
public void setEncodingStyle(String encodingStyle)
throws SOAPException
- Specified by:
setEncodingStyle in interface SOAPElement
- Throws:
SOAPException
getEncodingStyle
public String getEncodingStyle()
- Specified by:
getEncodingStyle in interface SOAPElement
getValue
public String getValue()
setValue
public void setValue(String value)
getValueNodeStrict
protected Node getValueNodeStrict()
getValueNode
protected Node getValueNode()
setParentElement
public void setParentElement(SOAPElement element)
throws SOAPException
- Throws:
SOAPException
findEncodingStyleAttributeName
protected void findEncodingStyleAttributeName()
throws SOAPException
- Throws:
SOAPException
setEncodingStyleNamespace
protected void setEncodingStyleNamespace(String soapNamespace,
String soapNamespacePrefix)
throws SOAPException
- Throws:
SOAPException
getParentElement
public 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,
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(Name name)
isNamespaceQualified
protected boolean isNamespaceQualified(QName name)
circumventBug5034339
protected SOAPElement circumventBug5034339(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 © 2005-2015 Oracle Corporation. All Rights Reserved.