soap tutorial

adriani.jws.template.wrappers
Class WrapperInformation

java.lang.Object
  extended by adriani.jws.template.wrappers.Wrapper
      extended by adriani.jws.template.wrappers.WrapperInformation

public class WrapperInformation
extends Wrapper

WrapperInformation - general class wrapping the inner ADBBean elements containing a single SingleRecordType object.


Field Summary
protected  java.lang.StringBuffer first
          Wrapped output value, used to fill the SOAP response during validation.
static java.lang.StringBuffer FIRST
          Static default value for the FIRST field (should match one of the static reference values).
protected  java.lang.StringBuffer second
          Wrapped output value, used to fill the SOAP response during validation.
static java.lang.StringBuffer SECOND
          Static default value for the SECOND field (should match one of the static reference values).
 
Fields inherited from class adriani.jws.template.wrappers.Wrapper
element, leadingName, logger, NO_NUMBER, NOT_AVAILABLE, NOT_BIG_INTEGER, UNDEFINED
 
Constructor Summary
WrapperInformation()
          Stateless constructor, loading the default values into this wrapper.
 
Method Summary
 java.lang.StringBuffer getFirst()
          Accessor method.
 java.lang.StringBuffer getSecond()
          Accessor method.
 void setDefaults()
          Load all the STATIC default values (defined in this class) into the corresponding class attributes.
 void setFirst(java.lang.StringBuffer value)
          Mutator method.
 void setSecond(java.lang.StringBuffer value)
          Mutator method.
 boolean validate()
          Validation is performed by the Eclipse's ADBBean objects ( e.g.
 
Methods inherited from class adriani.jws.template.wrappers.Wrapper
compareSB, getElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST

public static final java.lang.StringBuffer FIRST
Static default value for the FIRST field (should match one of the static reference values).


SECOND

public static final java.lang.StringBuffer SECOND
Static default value for the SECOND field (should match one of the static reference values).


first

protected java.lang.StringBuffer first
Wrapped output value, used to fill the SOAP response during validation.


second

protected java.lang.StringBuffer second
Wrapped output value, used to fill the SOAP response during validation.

Constructor Detail

WrapperInformation

public WrapperInformation()
Stateless constructor, loading the default values into this wrapper.

See Also:
setDefaults()
Method Detail

validate

public boolean validate()
                 throws WrapperFault
Validation is performed by the Eclipse's ADBBean objects ( e.g. NameType.setNameType() ). If the validation process is successful, the resulting ADBBean object is stored as class field to save computation time, since after validation we expect that the method getElement() should be invoked.

Remark: to grant LOOSE COUPLING to the WSDL, the ADBBean Java classes should be used only within this method and in the forceMessage() method, not elsewhere.

Specified by:
validate in class Wrapper
Returns:
a reference to the ADBBean object wrapped by this class
Throws:
WrapperFault

setDefaults

public void setDefaults()
Load all the STATIC default values (defined in this class) into the corresponding class attributes. This method is called by the constructor to ensure that we "empty wrapper" contains always some good default values matching the WSDL constrains. This is necessary since in the WSDL we didnt' define these fields as minOccurs='0'.

Specified by:
setDefaults in class Wrapper
See Also:
WrapperInformation()

getFirst

public java.lang.StringBuffer getFirst()
Accessor method.


getSecond

public java.lang.StringBuffer getSecond()
Accessor method.


setFirst

public void setFirst(java.lang.StringBuffer value)
Mutator method.


setSecond

public void setSecond(java.lang.StringBuffer value)
Mutator method.


Build 18/09/2012

Morpheus Quality Technologies - Making the Zion software
Copyright © 2009-2013 Morpheus Quality Technologies. All Rights Reserved