|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.jws.template.wrappers.Wrapper
adriani.jws.template.wrappers.WrapperIn
adriani.jws.template.wrappers.WrapperInformationIn
public class WrapperInformationIn
The class wrapping the ADBBean
elements containing the input SOAP request for the
getInformation()
method.
Field Summary | |
---|---|
protected java.math.BigInteger |
customer
Wrapped input value, used to store the SOAP input request value after validation. |
protected java.lang.StringBuffer |
number
Wrapped input value, used to store the SOAP input request value after validation. |
Fields inherited from class adriani.jws.template.wrappers.WrapperIn |
---|
BLANK, DOT, EMPTY, leadingName, NO_NUMBER, NOT_A_NUMBER, NOT_AVAILABLE |
Fields inherited from class adriani.jws.template.wrappers.Wrapper |
---|
element, logger, NOT_BIG_INTEGER, UNDEFINED |
Constructor Summary | |
---|---|
WrapperInformationIn()
Constructor used by the SimpleClient to test the service (empty). |
|
WrapperInformationIn(User user)
Constructor used by the actual web service logic, used to set the wrapper's class fields reading the values from the ADBBean element of the input SOAP request. |
Method Summary | |
---|---|
java.lang.String |
arrayToString()
Serialize all the data contained by this wrapper as a String object. |
java.lang.StringBuffer |
getCommand()
Special accessor used to retrieve the field used to send commands to the web service. |
java.math.BigInteger |
getCustomer()
Accessor method. |
java.lang.StringBuffer |
getNumber()
Accessor method. |
boolean |
isGoodNumber()
Helper method, used just to improve performance by reducing multiple checks (only for frequent calls). |
void |
setCustomer(java.math.BigInteger value)
Mutator method. |
void |
setCustomer(java.lang.StringBuffer value)
Mutator method (overloaded). |
void |
setDefaults()
Doing nothing (implementation required by the parent interface definition). |
void |
setNumber(java.lang.StringBuffer value)
Mutator method. |
java.lang.StringBuffer[] |
toArray(boolean complete)
Produce a StringBuffer[] array containing all data contained by this wrapper. |
java.lang.String |
toString()
Serialize all the data contained by this wrapper as a String object, dot separated. |
boolean |
validate()
This method should be called after that all the wrapper's fields have been properly set, in order to adjust any string requiring a particular format. |
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, wait, wait, wait |
Field Detail |
---|
protected java.lang.StringBuffer number
protected java.math.BigInteger customer
Constructor Detail |
---|
public WrapperInformationIn()
SimpleClient
to test the service (empty).
public WrapperInformationIn(User user)
ADBBean
element of the input SOAP request. For this reason
implementation of this constructor is strongly coupled to the WSDL definition.
user
- the ADBBean
object as received by the service skeleton classMethod Detail |
---|
public boolean validate()
ADBBean
Java classes
should NOT be used within this method.
validate
in class Wrapper
true
if all the mandatory ADBBean
objects were set correctlypublic void setDefaults()
WrapperOut
class for some actual usage of this method.
setDefaults
in class Wrapper
Wrapper.Wrapper()
,
WrapperOut
public java.math.BigInteger getCustomer()
public java.lang.StringBuffer getNumber()
public void setCustomer(java.math.BigInteger value)
public void setCustomer(java.lang.StringBuffer value)
public void setNumber(java.lang.StringBuffer value)
public boolean isGoodNumber()
public java.lang.String toString()
String
object, dot separated.
toString
in class java.lang.Object
public java.lang.String arrayToString()
String
object.
This is the "old plain version" of the toString()
method, which can be
used only if ALL input data (contained the SOAP request) are mandatory!
public java.lang.StringBuffer[] toArray(boolean complete)
StringBuffer[]
array containing all data contained by this wrapper.
If this method must be used in a test environment (where dummy input data should be complete),
the input flag complete
allows to add some hard-coded values if the creation
of the array fails.
toArray
in class WrapperIn
complete
- if true
some hard-coded data will be created if creation of the array fails
StringBuffer[]
array with the data contained by this wrapperpublic java.lang.StringBuffer getCommand()
StringBuffer
to ensure encapsulation.
StringBuffer
object containing the original field value
|
Build 19/03/2014 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |