com.realtime.xmpp.types
Class PresenceShow

java.lang.Object
  |
  +--com.realtime.xmpp.types.PresenceShow

public class PresenceShow
extends java.lang.Object

Provide standard definitions for the presence show field.

Version:
1.0 Copyright © 2002 Real Time Entertainment Group, LLC - All rights reserved.
Author:
Mike Prince

Field Summary
static PresenceShow AWAY
           
static PresenceShow CHAT
           
static PresenceShow DND
           
protected  java.lang.String m_sShow
          The standard show code.
static PresenceShow XA
           
 
Constructor Summary
protected PresenceShow(java.lang.String sShow)
          Create a presence show based on one of the well known field values, such as dnd,xa,away,or chat.
 
Method Summary
 boolean equals(java.lang.Object show)
          Determine if two codes are equal.
 java.lang.String toString()
          Provide the standardized show code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_sShow

protected java.lang.String m_sShow
The standard show code.


AWAY

public static final PresenceShow AWAY

CHAT

public static final PresenceShow CHAT

XA

public static final PresenceShow XA

DND

public static final PresenceShow DND
Constructor Detail

PresenceShow

protected PresenceShow(java.lang.String sShow)

Create a presence show based on one of the well known field values, such as dnd,xa,away,or chat.

Parameters:
sShow - The value for the show element.
Method Detail

toString

public java.lang.String toString()

Provide the standardized show code.

Overrides:
toString in class java.lang.Object
Returns:
The standard show code. One of away, dnd, xa, and chat.

equals

public boolean equals(java.lang.Object show)

Determine if two codes are equal.

Overrides:
equals in class java.lang.Object
Returns:
True if the object was a PresenceShow and the show values were the same.


Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.