jabber.server
Class Message

java.lang.Object
  extended by jabber.server.Message

public class Message
extends java.lang.Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <choice maxOccurs="unbounded" minOccurs="0">
           <element ref="{jabber:server}subject"/>
           <element ref="{jabber:server}body"/>
           <element ref="{jabber:server}thread"/>
         </choice>
         <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
         <element ref="{jabber:server}error" minOccurs="0"/>
       </sequence>
       <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
       <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="type" default="normal">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
             <enumeration value="chat"/>
             <enumeration value="error"/>
             <enumeration value="groupchat"/>
             <enumeration value="headline"/>
             <enumeration value="normal"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<java.lang.Object> any
           
protected  Error error
           
protected  java.lang.String from
           
protected  java.lang.String id
           
protected  java.lang.String lang
           
protected  java.util.List<java.lang.Object> subjectOrBodyOrThread
           
protected  java.lang.String to
           
protected  java.lang.String type
           
 
Constructor Summary
Message()
           
 
Method Summary
 java.util.List<java.lang.Object> getAny()
          Gets the value of the any property.
 Error getError()
          Gets the value of the error property.
 java.lang.String getFrom()
          Gets the value of the from property.
 java.lang.String getId()
          Gets the value of the id property.
 java.lang.String getLang()
          Gets the value of the lang property.
 java.util.List<java.lang.Object> getSubjectOrBodyOrThread()
          Gets the value of the subjectOrBodyOrThread property.
 java.lang.String getTo()
          Gets the value of the to property.
 java.lang.String getType()
          Gets the value of the type property.
 void setError(Error value)
          Sets the value of the error property.
 void setFrom(java.lang.String value)
          Sets the value of the from property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setLang(java.lang.String value)
          Sets the value of the lang property.
 void setTo(java.lang.String value)
          Sets the value of the to property.
 void setType(java.lang.String value)
          Sets the value of the type property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subjectOrBodyOrThread

protected java.util.List<java.lang.Object> subjectOrBodyOrThread

any

protected java.util.List<java.lang.Object> any

error

protected Error error

from

protected java.lang.String from

id

protected java.lang.String id

to

protected java.lang.String to

type

protected java.lang.String type

lang

protected java.lang.String lang
Constructor Detail

Message

public Message()
Method Detail

getSubjectOrBodyOrThread

public java.util.List<java.lang.Object> getSubjectOrBodyOrThread()
Gets the value of the subjectOrBodyOrThread property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the subjectOrBodyOrThread property.

For example, to add a new item, do as follows:

    getSubjectOrBodyOrThread().add(newItem);
 

Objects of the following type(s) are allowed in the list Subject Body JAXBElement<String>


getAny

public java.util.List<java.lang.Object> getAny()
Gets the value of the any property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the any property.

For example, to add a new item, do as follows:

    getAny().add(newItem);
 

Objects of the following type(s) are allowed in the list Object


getError

public Error getError()
Gets the value of the error property.

Returns:
possible object is Error

setError

public void setError(Error value)
Sets the value of the error property.

Parameters:
value - allowed object is Error

getFrom

public java.lang.String getFrom()
Gets the value of the from property.

Returns:
possible object is String

setFrom

public void setFrom(java.lang.String value)
Sets the value of the from property.

Parameters:
value - allowed object is String

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getTo

public java.lang.String getTo()
Gets the value of the to property.

Returns:
possible object is String

setTo

public void setTo(java.lang.String value)
Sets the value of the to property.

Parameters:
value - allowed object is String

getType

public java.lang.String getType()
Gets the value of the type property.

Returns:
possible object is String

setType

public void setType(java.lang.String value)
Sets the value of the type property.

Parameters:
value - allowed object is String

getLang

public java.lang.String getLang()
Gets the value of the lang property.

Returns:
possible object is String

setLang

public void setLang(java.lang.String value)
Sets the value of the lang property.

Parameters:
value - allowed object is String


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.