public class Money extends AbstractMwsObject
<complexType name="Money">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="CurrencyCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Amount" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Money()
Default constructor.
|
Money(String currencyCode,
String amount)
Value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAmount()
Get the value of Amount.
|
String |
getCurrencyCode()
Get the value of CurrencyCode.
|
boolean |
isSetAmount()
Check to see if Amount is set.
|
boolean |
isSetCurrencyCode()
Check to see if CurrencyCode is set.
|
void |
readFragmentFrom(MwsReader r)
Read members from a MwsReader.
|
void |
setAmount(String amount)
Set the value of Amount.
|
void |
setCurrencyCode(String currencyCode)
Set the value of CurrencyCode.
|
Money |
withAmount(String amount)
Set the value of Amount, return this.
|
Money |
withCurrencyCode(String currencyCode)
Set the value of CurrencyCode, return this.
|
void |
writeFragmentTo(MwsWriter w)
Write members to a MwsWriter.
|
void |
writeTo(MwsWriter w)
Write tag, xmlns and members to a MwsWriter.
|
toJSON, toJSONFragment, toXML, toXMLFragmentpublic String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
currencyCode - The new value to set.public boolean isSetCurrencyCode()
public Money withCurrencyCode(String currencyCode)
currencyCode - The new value to set.public String getAmount()
public void setAmount(String amount)
amount - The new value to set.public boolean isSetAmount()
public Money withAmount(String amount)
amount - The new value to set.public void readFragmentFrom(MwsReader r)
r - The reader to read from.public void writeFragmentTo(MwsWriter w)
w - The writer to write to.public void writeTo(MwsWriter w)
w - The Writer to write to.Copyright © 2014. All Rights Reserved.