Test webapp

adriani.webapp.axis
Class Element

java.lang.Object
  extended by adriani.webapp.axis.Element
Direct Known Subclasses:
Element_1, Element_2

public class Element
extends java.lang.Object

Parent class for all the classes representing a SOAP message used by the web service.


Field Summary
 java.lang.String elementName
           
protected  java.lang.String leadingName
          The leading name of each message logged on the standard output.
 javax.xml.namespace.QName MY_QNAME
          The Qualified name for the XML element.
 java.lang.String nodeValue
          CLASS ATTRIBUTES BY STEVE
static boolean VERBOSE
           
 
Constructor Summary
Element(java.lang.String name)
          This constructor has been created only for training purposes, in order to ease the understanding of the package structure of the classes produced by Eclipse.
 
Method Summary
 java.lang.String getNodeValue()
          General accessor.
 OMElement getOMElement(javax.xml.namespace.QName parentQName, OMFactory factory)
          Return the OMElement object.
 javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
          databinding method to get an XML representation of this object
static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader)
          isReaderMTOMAware
 void serialize(javax.xml.namespace.QName parentQName, OMFactory factory, MTOMAwareXMLStreamWriter xmlWriter)
           
 void serialize(javax.xml.namespace.QName parentQName, OMFactory factory, MTOMAwareXMLStreamWriter xmlWriter, boolean serializeType)
           
 void setNodeValue(java.lang.String param)
          General mutator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeValue

public java.lang.String nodeValue
CLASS ATTRIBUTES BY STEVE


elementName

public java.lang.String elementName

VERBOSE

public static boolean VERBOSE

leadingName

protected java.lang.String leadingName
The leading name of each message logged on the standard output.


MY_QNAME

public javax.xml.namespace.QName MY_QNAME
The Qualified name for the XML element. The java classes produced by the Eclipse's WTP plugin define this attribute using:

public static final QName MY_QNAME = new QName("http://www.example.org/", elementName, "ns1")

this allows the XXXMessageReceiverInOut.toOM() and XXXMessageReceiverInOut.toEnvelope() to obtain the QName reference even if no instance of the element is available. But this choice forces to use a custom ADBBean implementation for each SOAP message! To simplify this Axis2 tutorial, we have modified the XXXMessageReceiverInOut methods in order to access only non-static references of the element QName. In this way we can use this class as the parent class for all the other elements classes.

Constructor Detail

Element

public Element(java.lang.String name)
This constructor has been created only for training purposes, in order to ease the understanding of the package structure of the classes produced by Eclipse. In the actual Axi2 paradigm THERE IS NOT such a constructor, because all the element classes are produced using the Factory inner class (see Element_1 and Element_2).

Parameters:
name - the not qualified name for this element.
Method Detail

getNodeValue

public java.lang.String getNodeValue()
General accessor. When using the actual classes produced by Eclise, these methods are simple named exactly as this class, for example getElement_1() or getElement_2().

Returns:
the node content as a String object.

setNodeValue

public void setNodeValue(java.lang.String param)
General mutator. When using the actual classes produced by Eclise, these methods are simple named exactly as this class, for example setElement_1() or setElement_2().

Parameters:
param - the text string to be used as the node content.

isReaderMTOMAware

public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader)
isReaderMTOMAware

Returns:
true if the reader supports MTOM

getOMElement

public OMElement getOMElement(javax.xml.namespace.QName parentQName,
                              OMFactory factory)
                       throws ADBException
Return the OMElement object.
This method declares final the input parameters to ensure that these objects ARE NOT CHANGED within the method's code block.

Parameters:
parentQName -
factory -
Returns:
OMElement
Throws:
ADBException

serialize

public void serialize(javax.xml.namespace.QName parentQName,
                      OMFactory factory,
                      MTOMAwareXMLStreamWriter xmlWriter)
               throws javax.xml.stream.XMLStreamException,
                      ADBException
Throws:
javax.xml.stream.XMLStreamException
ADBException

serialize

public void serialize(javax.xml.namespace.QName parentQName,
                      OMFactory factory,
                      MTOMAwareXMLStreamWriter xmlWriter,
                      boolean serializeType)
               throws javax.xml.stream.XMLStreamException,
                      ADBException
Throws:
javax.xml.stream.XMLStreamException
ADBException

getPullParser

public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
                                               throws ADBException
databinding method to get an XML representation of this object

Throws:
ADBException

Build 21/09/2009

Morpheus Quality Technologies - making the Zion software
Copyright © 2009 Stefano Adriani. All Rights Reserved