tigase.muc
Enum RoomConfig.Anonymity

java.lang.Object
  extended by java.lang.Enum<RoomConfig.Anonymity>
      extended by tigase.muc.RoomConfig.Anonymity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RoomConfig.Anonymity>
Enclosing class:
RoomConfig

public static enum RoomConfig.Anonymity
extends java.lang.Enum<RoomConfig.Anonymity>


Enum Constant Summary
fullanonymous
          Fully-Anonymous Room -- a room in which the full JIDs or bare JIDs of occupants cannot be discovered by anyone, including room admins and room owners; such rooms are NOT RECOMMENDED or explicitly supported by MUC, but are possible using this protocol if a service implementation offers the appropriate configuration options; contrast with Non-Anonymous Room and Semi-Anonymous Room.
nonanonymous
          Non-Anonymous Room -- a room in which an occupant's full JID is exposed to all other occupants, although the occupant may choose any desired room nickname; contrast with Semi-Anonymous Room and Fully-Anonymous Room.
semianonymous
          Semi-Anonymous Room -- a room in which an occupant's full JID can be discovered by room admins only; contrast with Fully-Anonymous Room and Non-Anonymous Room.
 
Method Summary
static RoomConfig.Anonymity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RoomConfig.Anonymity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

fullanonymous

public static final RoomConfig.Anonymity fullanonymous
Fully-Anonymous Room -- a room in which the full JIDs or bare JIDs of occupants cannot be discovered by anyone, including room admins and room owners; such rooms are NOT RECOMMENDED or explicitly supported by MUC, but are possible using this protocol if a service implementation offers the appropriate configuration options; contrast with Non-Anonymous Room and Semi-Anonymous Room.


nonanonymous

public static final RoomConfig.Anonymity nonanonymous
Non-Anonymous Room -- a room in which an occupant's full JID is exposed to all other occupants, although the occupant may choose any desired room nickname; contrast with Semi-Anonymous Room and Fully-Anonymous Room.


semianonymous

public static final RoomConfig.Anonymity semianonymous
Semi-Anonymous Room -- a room in which an occupant's full JID can be discovered by room admins only; contrast with Fully-Anonymous Room and Non-Anonymous Room.

Method Detail

values

public static RoomConfig.Anonymity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RoomConfig.Anonymity c : RoomConfig.Anonymity.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RoomConfig.Anonymity valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2007-2009 Tigase. All Rights Reserved.