|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.message.NodeImpl
org.apache.axis.message.SOAPElementImpl
org.apache.axis.message.SOAPElementAxisImpl
SOAPElementImpl is the base type of nodes of the SOAP message parse tree.
Note: it was made Serializable to help users of Apache SOAP who had exploited the serializability of the DOM tree to migrate to Axis.
| Nested Class Summary | |
protected static class |
SOAPElementAxisImpl.QNameAttr
|
| Field Summary | |
protected boolean |
_isRoot
|
protected Attributes |
attributes
|
protected DeserializationContext |
context
|
protected Element |
elementRep
|
protected String |
encodingStyle
Our encoding style, if any |
protected int |
endEventIndex
|
protected String |
href
|
protected String |
id
|
protected SOAPEnvelopeAxisImpl |
message
|
protected String |
name
|
ArrayList |
namespaces
|
protected String |
namespaceURI
|
protected String |
prefix
|
protected Vector |
qNameAttrs
|
protected SAX2EventRecorder |
recorder
|
protected MessagePart |
soapPart
|
protected int |
startContentsIndex
|
protected int |
startEventIndex
|
protected javax.xml.namespace.QName |
typeQName
|
| 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 | |
SOAPElementAxisImpl()
No-arg constructor for building messages? |
|
SOAPElementAxisImpl(Element elem)
|
|
SOAPElementAxisImpl(javax.xml.soap.Name eltName)
|
|
SOAPElementAxisImpl(javax.xml.namespace.QName name,
Object value)
|
|
SOAPElementAxisImpl(String localPart)
|
|
SOAPElementAxisImpl(String namespace,
String localPart)
|
|
SOAPElementAxisImpl(String namespace,
String localPart,
Object value)
|
|
SOAPElementAxisImpl(String localPart,
String prefix,
String namespace)
|
|
SOAPElementAxisImpl(String namespace,
String localPart,
String prefix,
Attributes attributes,
DeserializationContext context)
|
|
| 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. |
void |
addAttribute(String namespace,
String localName,
javax.xml.namespace.QName value)
|
void |
addAttribute(String namespace,
String localName,
String value)
|
void |
addAttribute(String prefix,
String namespace,
String localName,
String value)
|
void |
addChild(SOAPElementAxisImpl el)
Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement. |
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 element)
The added child must be an instance of MessageElement rather than an abitrary SOAPElement otherwise a (wrapped) ClassCastException will be thrown. |
javax.xml.soap.SOAPElement |
addChildElement(String localName)
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. |
void |
addMapping(Mapping map)
|
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)
Text nodes are not supported. |
Node |
appendChild(Node newChild)
|
Node |
cloneNode(boolean deep)
|
protected Object |
clonning()
protected clone method (not public) copied status ------------------- protected String name ; Y protected String prefix ; Y protected String namespaceURI ; Y protected transient Attributes attributes Y protected String id; Y? protected String href; Y? protected boolean _isRoot = true; Y? protected SOAPEnvelope message = null; N? protected boolean _isDirty = false; Y? protected transient DeserializationContext context; Y? protected transient QName typeQName = null; Y? protected Vector qNameAttrs = null; Y? protected transient SAX2EventRecorder recorder = null; N? protected int startEventIndex = 0; N? protected int startContentsIndex = 0; N? protected int endEventIndex = -1; N? protected Element elementRep = null; N? protected MessageElement parent = null; N public ArrayList namespaces = null; Y protected String encodingStyle = null; N? private Object objectValue = null; N? |
void |
detachAllChildren()
|
void |
detachNode()
Break the relationship between this element and its parent, if any. |
Iterator |
getAllAttributes()
Returns an Iterator over all of the attribute Name objects in this SOAPElement object. |
Document |
getAsDocument()
|
Element |
getAsDOM()
|
String |
getAsString()
|
String |
getAsStringFromInternal()
Get a string representation from the internal structure. |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
NamedNodeMap |
getAttributes()
|
Attributes |
getAttributesEx()
|
String |
getAttributeValue(javax.xml.soap.Name name)
Returns the value of the attribute with the specified name. |
String |
getAttributeValue(String localName)
|
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. |
NodeList |
getChildNodes()
|
List |
getChildren()
|
Attributes |
getCompleteAttributes()
Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations. |
javax.xml.soap.Name |
getElementName()
Returns the name of this SOAPElement object. |
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
|
protected NodeList |
getElementsNS(Element parent,
String namespaceURI,
String localName)
helper method for recusively getting the element that has namespace URI and localname |
String |
getEncodingStyle()
Get the encoding style. |
SOAPEnvelopeAxisImpl |
getEnvelope()
|
Node |
getFirstChild()
|
Deserializer |
getFixupDeserializer()
|
String |
getHref()
|
String |
getID()
|
Node |
getLastChild()
|
String |
getLocalName()
|
String |
getName()
|
Iterator |
getNamespacePrefixes()
Returns an Iterator over the namespace prefix Strings declared by this element. |
String |
getNamespaceURI()
|
String |
getNamespaceURI(String prefix)
Returns the URI of the namespace that has the given prefix. |
Node |
getNextSibling()
|
short |
getNodeType()
|
String |
getNodeValue()
|
Object |
getObjectValue()
Returns value of the node as an object of registered type. |
Object |
getObjectValue(Class cls)
Returns value of the node as an object of registered type. |
Document |
getOwnerDocument()
|
javax.xml.soap.SOAPElement |
getParentElement()
Returns the parent node of this Node object. |
Node |
getParentNode()
|
String |
getPrefix()
|
String |
getPrefix(String namespaceURI)
|
Node |
getPreviousSibling()
|
javax.xml.namespace.QName |
getQName()
|
SOAPElementAxisImpl |
getRealElement()
|
SAX2EventRecorder |
getRecorder()
|
String |
getTagName()
|
javax.xml.namespace.QName |
getType()
|
Object |
getValueAsType(javax.xml.namespace.QName type)
|
Object |
getValueAsType(javax.xml.namespace.QName type,
Class cls)
|
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 |
hasAttributes()
|
boolean |
hasChildNodes()
|
Node |
insertBefore(Node newChild,
Node refChild)
|
boolean |
isDirty()
|
boolean |
isImmutable()
|
boolean |
isRoot()
|
boolean |
isSupported(String feature,
String version)
|
protected AttributesImpl |
makeAttributesEditable()
|
void |
normalize()
|
void |
output(SerializationContext context)
This is the public output() method, which will always simply use the recorded SAX stream for this element if it is available. |
protected void |
outputImpl(SerializationContext context)
Subclasses can override |
static void |
printFromInternal(PrintWriter out,
NodeImpl node)
Print the given element from the internal representation This should not go on the wire, but is for debugging only. |
void |
publishContents(ContentHandler handler)
|
void |
publishToHandler(ContentHandler handler)
|
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)
|
Node |
removeChild(Node oldChild)
|
void |
removeContents()
Detaches all children of this SOAPElement. |
boolean |
removeNamespaceDeclaration(String prefix)
Removes the namespace declaration corresponding to the given prefix. |
Node |
replaceChild(Node newChild,
Node oldChild)
|
void |
setAllAttributes(Attributes attrs)
|
void |
setAllImmutable(boolean immutable)
|
void |
setAttribute(String name,
String value)
|
void |
setAttribute(String namespace,
String localName,
String value)
Set an attribute, adding the attribute if it isn't already present in this element, and changing the value if it is. |
Attr |
setAttributeNode(Attr newAttr)
|
Attr |
setAttributeNodeNS(Attr newAttr)
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
|
void |
setContentsIndex(int index)
|
void |
setDirty(boolean dirty)
|
void |
setEncodingStyle(String encodingStyle)
Sets the encoding style for this SOAPElement
object to one specified. |
void |
setEndIndex(int endIndex)
|
void |
setEnvelope(SOAPEnvelopeAxisImpl env)
|
void |
setFixupDeserializer(Deserializer dser)
|
void |
setImmutable(boolean immutable)
|
void |
setName(String name)
|
void |
setNamespaceURI(String nsURI)
|
void |
setNSMappings(ArrayList namespaces)
|
void |
setObjectValue(Object newValue)
Sets value of this node to an Object. |
void |
setOwnerDocument(MessagePart sp)
|
void |
setParentElement(javax.xml.soap.SOAPElement parent)
Sets the parent of this Node object to the given SOAPElement object. |
void |
setPrefix(String prefix)
|
void |
setQName(javax.xml.namespace.QName qName)
|
void |
setRecorder(SAX2EventRecorder rec)
|
void |
setType(javax.xml.namespace.QName qname)
|
| Methods inherited from class org.apache.axis.message.NodeImpl |
getNodeName, getValue, hashCode, recycleNode, setNodeValue, 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 |
getValue, recycleNode, setValue |
| Methods inherited from interface org.w3c.dom.Node |
getNodeName, setNodeValue |
| Field Detail |
protected String name
protected String prefix
protected String namespaceURI
protected transient Attributes attributes
protected String id
protected String href
protected boolean _isRoot
protected SOAPEnvelopeAxisImpl message
protected transient DeserializationContext context
protected transient javax.xml.namespace.QName typeQName
protected Vector qNameAttrs
protected transient SAX2EventRecorder recorder
protected int startEventIndex
protected int startContentsIndex
protected int endEventIndex
protected Element elementRep
public ArrayList namespaces
protected String encodingStyle
protected MessagePart soapPart
| Constructor Detail |
public SOAPElementAxisImpl()
public SOAPElementAxisImpl(String localPart)
public SOAPElementAxisImpl(String namespace, String localPart)
public SOAPElementAxisImpl(String localPart, String prefix, String namespace)
public SOAPElementAxisImpl(javax.xml.soap.Name eltName)
public SOAPElementAxisImpl(String namespace, String localPart, Object value)
public SOAPElementAxisImpl(javax.xml.namespace.QName name,
Object value)
public SOAPElementAxisImpl(Element elem)
public SOAPElementAxisImpl(String namespace, String localPart, String prefix, Attributes attributes, DeserializationContext context) throws AxisFault
| Method Detail |
public void setFixupDeserializer(Deserializer dser)
public Deserializer getFixupDeserializer()
public void setEndIndex(int endIndex)
public boolean isDirty()
public void setDirty(boolean dirty)
public boolean isRoot()
public String getID()
public String getHref()
public Attributes getAttributesEx()
public Node getFirstChild()
getFirstChild in interface NodegetFirstChild in class NodeImplpublic Node getLastChild()
getLastChild in interface NodegetLastChild in class NodeImplpublic Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class NodeImplpublic Node getParentNode()
getParentNode in interface NodegetParentNode in class NodeImplpublic Node getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling in class NodeImplpublic Node cloneNode(boolean deep)
protected Object clonning() throws CloneNotSupportedException
CloneNotSupportedExceptionpublic void setAllAttributes(Attributes attrs)
public void detachAllChildren()
public NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class NodeImplpublic boolean isSupported(String feature, String version)
isSupported in interface NodeisSupported in class NodeImplpublic Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeappendChild in class NodeImplDOMExceptionpublic void addChild(SOAPElementAxisImpl el) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NoderemoveChild in class NodeImplDOMExceptionpublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeinsertBefore in class NodeImplDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodereplaceChild in class NodeImplDOMExceptionpublic Attributes getCompleteAttributes()
public String getName()
public void setName(String name)
public javax.xml.namespace.QName getQName()
public void setQName(javax.xml.namespace.QName qName)
public