public enum CDOPermission extends Enum<CDOPermission>
Modifier and Type | Method and Description |
---|---|
static CDOPermission |
get(int bits) |
byte |
getBits() |
boolean |
isReadable() |
boolean |
isWritable() |
static CDOPermission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CDOPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CDOPermission NONE
public static final CDOPermission READ
public static final CDOPermission WRITE
public static CDOPermission[] values()
for (CDOPermission c : CDOPermission.values()) System.out.println(c);
public static CDOPermission valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getBits()
public boolean isReadable()
public boolean isWritable()
public static CDOPermission get(int bits)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html