|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.wrappers.BaseWrapper<T>
public abstract class BaseWrapper<T>
A generic wrapper for marshalling a data value via JAXB. This class
provides only a protected getter/setter because the raw form
(namely the standard class used to represent that value in Java)
may not be suitable for JAXB marshalling; but that raw form is
suitable for (and is, in fact used by this class) to override
certain standard Object methods.
| Constructor Summary | |
|---|---|
protected |
BaseWrapper()
Creates a new wrapper. |
|
BaseWrapper(T value)
Creates a new wrapper with the given value. |
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
protected T |
getValue()
Returns the receiver's data. |
int |
hashCode()
|
protected void |
setValue(T value)
Sets the receiver's data to the given value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseWrapper(T value)
value - The value, which may be null.protected BaseWrapper()
| Method Detail |
|---|
protected void setValue(T value)
value - The value, which may be null.protected T getValue()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||