Copyright © Rasmus Sten and contributors, 1997-2004

nu.dll.lyskom
Class ConfType

java.lang.Object
  |
  +--nu.dll.lyskom.KomToken
        |
        +--nu.dll.lyskom.Bitstring
              |
              +--nu.dll.lyskom.ConfType
All Implemented Interfaces:
java.io.Serializable

public class ConfType
extends Bitstring

Represents the LysKOM data type Conf-Type, which is a Bitstring. Contains helper constants for the meaning of the Conf-Type flags. Use them with the getBitAt()/setBitAt() in Bitstring to deal with ConfType information.

See Also:
Serialized Form

Field Summary
static int allow_anonymous
          Conference allows anonymous texts
static int forbid_secret
          Conference forbids secret membership.
static int letterbox
          Conference is a person's letterbox
static int original
          Only original texts are allowed (no comments)
static int rd_prot
          Read-protected conference
static int reserved2
          Reserved flag.
static int reserved3
          Reserved flag.
static int secret
          Secret conference
 
Fields inherited from class nu.dll.lyskom.Bitstring
ITEM_SIZE
 
Fields inherited from class nu.dll.lyskom.KomToken
ARRAY, COMPL, HOLLERITH, PRIMITIVE
 
Constructor Summary
ConfType(boolean[] bits)
          Creates a ConfType based on the supplied boolean[].
 
Method Summary
 boolean letterbox()
          is letterbox (person)
 boolean original()
          getBitAt(original)
 java.lang.String toString()
           
 
Methods inherited from class nu.dll.lyskom.Bitstring
getBitAt, getBits, setBitAt
 
Methods inherited from class nu.dll.lyskom.KomToken
equals, getContents, getType, intValue, isEol, setContents, toInt, toInteger
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rd_prot

public static final int rd_prot
Read-protected conference

See Also:
Constant Field Values

original

public static final int original
Only original texts are allowed (no comments)

See Also:
Constant Field Values

secret

public static final int secret
Secret conference

See Also:
Constant Field Values

letterbox

public static final int letterbox
Conference is a person's letterbox

See Also:
Constant Field Values

allow_anonymous

public static final int allow_anonymous
Conference allows anonymous texts

See Also:
Constant Field Values

forbid_secret

public static final int forbid_secret
Conference forbids secret membership.

See Also:
Constant Field Values

reserved2

public static final int reserved2
Reserved flag.

See Also:
Constant Field Values

reserved3

public static final int reserved3
Reserved flag.

See Also:
Constant Field Values
Constructor Detail

ConfType

public ConfType(boolean[] bits)
Creates a ConfType based on the supplied boolean[].

Method Detail

original

public boolean original()
getBitAt(original)


letterbox

public boolean letterbox()
is letterbox (person)


toString

public java.lang.String toString()
Overrides:
toString in class Bitstring

Copyright © Rasmus Sten and contributors, 1997-2004