/*
 * Java-Gnome Bindings Library
 *
 * Copyright 1998-2004 the Java-Gnome Team, all rights reserved.
 *
 * The Java-Gnome bindings library is free software distributed under
 * the terms of the GNU Library General Public License version 2.
 */

package org.gnu.gdk;
import org.gnu.glib.Enum;
public class DragProtocol extends Enum 
{
    /****************************************
     * BEGINNING OF GENERATED CODE
     ****************************************/
    static final private int _MOTIF = 0;
    static final public org.gnu.gdk.DragProtocol MOTIF = new org.gnu.gdk.DragProtocol (_MOTIF);
    static final private int _XDND = 1;
    static final public org.gnu.gdk.DragProtocol XDND = new org.gnu.gdk.DragProtocol (_XDND);
    static final private int _ROOTWIN = 2;
    static final public org.gnu.gdk.DragProtocol ROOTWIN = new org.gnu.gdk.DragProtocol (_ROOTWIN);
    static final private int _NONE = 3;
    static final public org.gnu.gdk.DragProtocol NONE = new org.gnu.gdk.DragProtocol (_NONE);
    static final private int _WIN32_DROPFILES = 4;
    static final public org.gnu.gdk.DragProtocol WIN32_DROPFILES = new org.gnu.gdk.DragProtocol (
        _WIN32_DROPFILES);
    static final private int _OLE2 = 5;
    static final public org.gnu.gdk.DragProtocol OLE2 = new org.gnu.gdk.DragProtocol (_OLE2);
    static final private int _LOCAL = 6;
    static final public org.gnu.gdk.DragProtocol LOCAL = new org.gnu.gdk.DragProtocol (_LOCAL);
    static final private org.gnu.gdk.DragProtocol[] theInterned = new org.gnu.gdk.DragProtocol[] 
    {
        MOTIF, XDND, ROOTWIN, NONE, WIN32_DROPFILES, OLE2, LOCAL 
    }

;
    static private java.util.Hashtable theInternedExtras;
    static final private org.gnu.gdk.DragProtocol theSacrificialOne = new org.gnu.gdk.DragProtocol (
        0);
    static public org.gnu.gdk.DragProtocol intern (int value) 
    {
        if (value < theInterned.length) 
        {
            return theInterned[value];
        }
        theSacrificialOne.value_ = value;
        if (theInternedExtras == null) 
        {
            theInternedExtras = new java.util.Hashtable();
        }
        org.gnu.gdk.DragProtocol already = (org.gnu.gdk.DragProtocol) theInternedExtras.get (
            theSacrificialOne);
        if (already == null) 
        {
            already = new org.gnu.gdk.DragProtocol(value);
            theInternedExtras.put(already, already);
        }
        return already;
    }

    private DragProtocol (int value) 
    {
        value_ = value;
    }

    public org.gnu.gdk.DragProtocol or (org.gnu.gdk.DragProtocol other) 
    {
        return intern(value_ | other.value_);
    }

    public org.gnu.gdk.DragProtocol and (org.gnu.gdk.DragProtocol other) 
    {
        return intern(value_ & other.value_);
    }

    public org.gnu.gdk.DragProtocol xor (org.gnu.gdk.DragProtocol other) 
    {
        return intern(value_ ^ other.value_);
    }

    public boolean test (org.gnu.gdk.DragProtocol other) 
    {
        return (value_ & other.value_) == other.value_;
    }

    /****************************************
     * END OF GENERATED CODE
     ****************************************/
}

