站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

SOAPElementAxisImpl (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.message
Class SOAPElementAxisImpl

java.lang.Object
  extended byorg.apache.axis.message.NodeImpl
      extended byorg.apache.axis.message.SOAPElementImpl
          extended byorg.apache.axis.message.SOAPElementAxisImpl
All Implemented Interfaces:
Cloneable, Element, Node, javax.xml.soap.Node, Serializable, javax.xml.soap.SOAPElement
Direct Known Subclasses:
DetailEntryImpl, RPCParamElementImpl, SOAPBodyElementImpl, SOAPBodyImpl, SOAPEnvelopeImpl, SOAPFaultElementImpl, SOAPHeaderElementImpl, SOAPHeaderImpl

public class SOAPElementAxisImpl
extends SOAPElementImpl
implements javax.xml.soap.SOAPElement, Serializable, Cloneable

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.

See Also:
Serialized Form

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

name

protected String name

prefix

protected String prefix

namespaceURI

protected String namespaceURI

attributes

protected transient Attributes attributes

id

protected String id

href

protected String href

_isRoot

protected boolean _isRoot

message

protected SOAPEnvelopeAxisImpl message

context

protected transient DeserializationContext context

typeQName

protected transient javax.xml.namespace.QName typeQName

qNameAttrs

protected Vector qNameAttrs

recorder

protected transient SAX2EventRecorder recorder

startEventIndex

protected int startEventIndex

startContentsIndex

protected int startContentsIndex

endEventIndex

protected int endEventIndex

elementRep

protected Element elementRep

namespaces

public ArrayList namespaces

encodingStyle

protected String encodingStyle
Our encoding style, if any


soapPart

protected MessagePart soapPart
Constructor Detail

SOAPElementAxisImpl

public SOAPElementAxisImpl()
No-arg constructor for building messages?


SOAPElementAxisImpl

public SOAPElementAxisImpl(String localPart)

SOAPElementAxisImpl

public SOAPElementAxisImpl(String namespace,
                           String localPart)

SOAPElementAxisImpl

public SOAPElementAxisImpl(String localPart,
                           String prefix,
                           String namespace)

SOAPElementAxisImpl

public SOAPElementAxisImpl(javax.xml.soap.Name eltName)

SOAPElementAxisImpl

public SOAPElementAxisImpl(String namespace,
                           String localPart,
                           Object value)

SOAPElementAxisImpl

public SOAPElementAxisImpl(javax.xml.namespace.QName name,
                           Object value)

SOAPElementAxisImpl

public SOAPElementAxisImpl(Element elem)

SOAPElementAxisImpl

public SOAPElementAxisImpl(String namespace,
                           String localPart,
                           String prefix,
                           Attributes attributes,
                           DeserializationContext context)
                    throws AxisFault
Method Detail

setFixupDeserializer

public void setFixupDeserializer(Deserializer dser)

getFixupDeserializer

public Deserializer getFixupDeserializer()

setEndIndex

public void setEndIndex(int endIndex)

isDirty

public boolean isDirty()

setDirty

public void setDirty(boolean dirty)

isRoot

public boolean isRoot()

getID

public String getID()

getHref

public String getHref()

getAttributesEx

public Attributes getAttributesEx()

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Overrides:
getFirstChild in class NodeImpl

getLastChild

public Node getLastChild()
Specified by:
getLastChild in interface Node
Overrides:
getLastChild in class NodeImpl

getNextSibling

public Node getNextSibling()
Specified by:
getNextSibling in interface Node
Overrides:
getNextSibling in class NodeImpl

getParentNode

public Node getParentNode()
Specified by:
getParentNode in interface Node
Overrides:
getParentNode in class NodeImpl

getPreviousSibling

public Node getPreviousSibling()
Specified by:
getPreviousSibling in interface Node
Overrides:
getPreviousSibling in class NodeImpl

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Overrides:
cloneNode in class NodeImpl

clonning

protected Object clonning()
                   throws CloneNotSupportedException
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?

Returns:
Throws:
CloneNotSupportedException

setAllAttributes

public void setAllAttributes(Attributes attrs)

detachAllChildren

public void detachAllChildren()

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface Node
Overrides:
getChildNodes in class NodeImpl

isSupported

public boolean isSupported(String feature,
                           String version)
Specified by:
isSupported in interface Node
Overrides:
isSupported in class NodeImpl

appendChild

public Node appendChild(Node newChild)
                 throws DOMException
Specified by:
appendChild in interface Node
Overrides:
appendChild in class NodeImpl
Throws:
DOMException

addChild

public void addChild(SOAPElementAxisImpl el)
              throws javax.xml.soap.SOAPException
Note that this method will log a error and no-op if there is a value (set using setObjectValue) in the MessageElement.

Throws:
javax.xml.soap.SOAPException

removeChild

public Node removeChild(Node oldChild)
                 throws DOMException
Specified by:
removeChild in interface Node
Overrides:
removeChild in class NodeImpl
Throws:
DOMException

insertBefore

public Node insertBefore(Node newChild,
                         Node refChild)
                  throws DOMException
Specified by:
insertBefore in interface Node
Overrides:
insertBefore in class NodeImpl
Throws:
DOMException

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
                  throws DOMException
Specified by:
replaceChild in interface Node
Overrides:
replaceChild in class NodeImpl
Throws:
DOMException

getCompleteAttributes

public Attributes getCompleteAttributes()
Obtain an Attributes collection consisting of all attributes for this MessageElement, including namespace declarations.

Returns:
Attributes collection

getName

public String getName()

setName

public void setName(String name)

getQName

public javax.xml.namespace.QName getQName()

setQName

public void setQName(javax.xml.namespace.QName qName)

getPrefix

public String getPre