public enum Access extends Enum<Access> implements Enumerator
SecurityPackage.getAccess()
Enum Constant and Description |
---|
READ
The 'READ' literal object.
|
WRITE
The 'WRITE' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
READ_VALUE
The 'READ' literal value.
|
static List<Access> |
VALUES
A public read-only list of all the 'Access' enumerators.
|
static int |
WRITE_VALUE
The 'WRITE' literal value.
|
Modifier and Type | Method and Description |
---|---|
static Access |
get(int value)
Returns the 'Access' literal with the specified integer value.
|
static Access |
get(String literal)
Returns the 'Access' literal with the specified literal value.
|
static Access |
getByName(String name)
Returns the 'Access' literal with the specified name.
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static Access |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Access[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Access READ
READ_VALUE
public static final Access WRITE
WRITE_VALUE
public static final int READ_VALUE
If the meaning of 'READ' literal object isn't clear, there really should be more of a description here...
READ
,
Constant Field Valuespublic static final int WRITE_VALUE
If the meaning of 'WRITE' literal object isn't clear, there really should be more of a description here...
WRITE
,
Constant Field Valuespublic static Access[] values()
for (Access c : Access.values()) System.out.println(c);
public static Access 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 static Access get(String literal)
literal
- the literal.null
.public static Access getByName(String name)
name
- the name.null
.public static Access get(int value)
value
- the integer value.null
.public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
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