|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.wrappers.BaseWrapper<R>
org.marketcetera.util.ws.wrappers.DualWrapper<Locale,MarshalledLocale>
org.marketcetera.util.ws.wrappers.LocaleWrapper
public class LocaleWrapper
A dual-form wrapper for marshalling a locale. The raw form is
Locale, and the marshalled form is MarshalledLocale.
| Constructor Summary | |
|---|---|
LocaleWrapper()
Creates a new wrapper. |
|
LocaleWrapper(Locale locale)
Creates a new wrapper for the given locale. |
|
| Method Summary | |
|---|---|
protected void |
toMarshalled()
Sets the marshalled form of the receiver's value so that it corresponds to its raw form. |
protected void |
toRaw()
Sets the raw form of the receiver's value so that it corresponds to its marshalled form. |
| Methods inherited from class org.marketcetera.util.ws.wrappers.DualWrapper |
|---|
getMarshalled, getRaw, readExternal, setMarshalled, setMarshalledOnly, setRaw, setRawOnly, writeExternal |
| Methods inherited from class org.marketcetera.util.ws.wrappers.BaseWrapper |
|---|
equals, getValue, hashCode, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleWrapper(Locale locale)
locale - The locale, which may be null.public LocaleWrapper()
| Method Detail |
|---|
protected void toRaw()
DualWrapperDualWrapper.setRawOnly(Object) and
DualWrapper.setMarshalledOnly(Object) should be used in
setting either form, to prevent infinite recursion. The raw
form is null if and only if the marshalled one is null; the
caller of this method will enforce this invariant, so the
subclass implementation can set just the raw form to null.
toRaw in class DualWrapper<Locale,MarshalledLocale>protected void toMarshalled()
DualWrapperDualWrapper.setRawOnly(Object) and
DualWrapper.setMarshalledOnly(Object) should be used in setting
either form, to prevent infinite recursion. The raw form is
null if and only if the marshalled one is null; the caller of
this method will enforce this invariant, so the subclass
implementation can set just the marshalled form to null.
toMarshalled in class DualWrapper<Locale,MarshalledLocale>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||