public class Message extends AbstractMwsObject
<complexType name="Message">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Locale" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Text" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Message()
Default constructor.
|
Message(String locale,
String text)
Value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocale()
Get the value of Locale.
|
String |
getText()
Get the value of Text.
|
boolean |
isSetLocale()
Check to see if Locale is set.
|
boolean |
isSetText()
Check to see if Text is set.
|
void |
readFragmentFrom(MwsReader r)
Read members from a MwsReader.
|
void |
setLocale(String locale)
Set the value of Locale.
|
void |
setText(String text)
Set the value of Text.
|
Message |
withLocale(String locale)
Set the value of Locale, return this.
|
Message |
withText(String text)
Set the value of Text, 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 getLocale()
public void setLocale(String locale)
locale - The new value to set.public boolean isSetLocale()
public Message withLocale(String locale)
locale - The new value to set.public String getText()
public void setText(String text)
text - The new value to set.public boolean isSetText()
public Message withText(String text)
text - 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.