|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InteractiveMessage
Defines the interface for a InteractiveMessage.
| Method Summary | |
|---|---|
java.util.Iterator<java.util.Map.Entry<java.util.Locale,java.lang.String>> |
getBodies()
Returns an iterator over a set of Map.Entry instances, holding the language (=key) the body (=value) of this InteractiveMessage. |
java.lang.String |
getBody()
Returns the body of this InteractiveMessage in the default or first available Locale. |
java.lang.String |
getBody(java.util.Locale l)
Returns the body of this InteractiveMessage in the given Locale. |
EventInfo |
getEventInfo()
Returns an unmodifiable EventInfo instance
with the information from this Message. |
java.lang.String |
getFormattingHint()
Return a string that indicates a way transform a message. |
java.util.Locale |
getLocale()
Returns the default Locale of this Message. |
java.lang.String |
getSubject()
Returns the subject of this InteractiveMessage in the default or first available Locale. |
java.lang.String |
getSubject(java.util.Locale l)
Returns the subject of this InteractiveMessage in the given Locale. |
java.util.Iterator<java.util.Map.Entry<java.util.Locale,java.lang.String>> |
getSubjects()
Returns an iterator over a set of Map.Entry instances, holding the language (=key) the subject (=value) of this InteractiveMessage. |
java.lang.String |
getThread()
Returns the thread of this InteractiveMessage. |
InteractiveMessageType |
getType()
Returns the type of this InteractiveMessage. |
boolean |
hasBodies()
Tests if this InteractiveMessage has bodies in any Locale. |
boolean |
hasBody()
Tests if this InteractiveMessage has a body in the default or first available Locale. |
boolean |
hasBody(java.util.Locale l)
Tests if this InteractiveMessage has a body in the given Locale. |
boolean |
hasFormattingHint()
Tests if this Message has a formatting hint. |
boolean |
hasLocale()
Tests if this Message has a Locale. |
boolean |
hasSubject()
Tests if this InteractiveMessage has a subject in the default or first available Locale. |
boolean |
hasSubject(java.util.Locale l)
Tests if this InteractiveMessage has a subject in the given InteractiveMessage. |
boolean |
hasSubjects()
Tests if this InteractiveMessage has subjects in any Locale. |
boolean |
hasThread()
Tests if this InteractiveMessage has a thread. |
boolean |
isBroadcast()
Tests if this InteractiveMessage is a broadcast. |
boolean |
isConfirmationRequired()
Tests if this InteractiveMessage requires confirmation. |
boolean |
isThread(java.lang.String thread)
Tests if this InteractiveMessage thread value equals the given value. |
void |
setType(InteractiveMessageType t)
Sets the type of this InteractiveMessage. |
| Methods inherited from interface net.coalevo.messaging.model.Message |
|---|
getFrom, getTo |
| Methods inherited from interface net.coalevo.foundation.model.Identifiable |
|---|
getIdentifier |
| Methods inherited from interface net.coalevo.messaging.model.EventInfo |
|---|
getCreated, getIdentifier, isMulticast |
| Method Detail |
|---|
void setType(InteractiveMessageType t)
t - the type as InteractiveMessageType.InteractiveMessageType getType()
InteractiveMessageType.java.lang.String getThread()
boolean hasThread()
boolean isThread(java.lang.String thread)
thread - a thread identifier value as String.
java.lang.String getSubject(java.util.Locale l)
l - a Locale instance.
java.util.NoSuchElementException - if a subject for the given Locale
does not exist.hasSubject(Locale)java.lang.String getSubject()
java.util.Iterator<java.util.Map.Entry<java.util.Locale,java.lang.String>> getSubjects()
boolean hasSubject(java.util.Locale l)
l - a Locale instance.
boolean hasSubject()
boolean hasSubjects()
java.lang.String getBody(java.util.Locale l)
l - a Locale instance.
java.util.NoSuchElementException - if a subject for the given Locale
does not exist.hasBody(Locale)java.lang.String getBody()
java.util.Iterator<java.util.Map.Entry<java.util.Locale,java.lang.String>> getBodies()
boolean hasBody(java.util.Locale l)
l - a Locale instance.
boolean hasBody()
boolean hasBodies()
boolean isConfirmationRequired()
boolean isBroadcast()
java.util.Locale getLocale()
boolean hasLocale()
EventInfo getEventInfo()
EventInfo instance
with the information from this Message.
EventInfo.java.lang.String getFormattingHint()
Note:
This hint does not imply that the client may be able to format
the message using the indicated transform.
boolean hasFormattingHint()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||