|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ResourceMode>
org.eclipse.emf.cdo.defs.ResourceMode
public enum ResourceMode
A representation of the literals of the enumeration 'Resource Mode', and utility methods for working with them.
CDODefsPackage.getResourceMode()| Enum Constant Summary | |
|---|---|
CREATE
The 'CREATE' literal object. | |
GET
The 'GET' literal object. | |
GET_OR_CREATE
The 'GET OR CREATE' literal object. | |
| Field Summary | |
|---|---|
static int |
CREATE_VALUE
The 'CREATE' literal value. |
static int |
GET_OR_CREATE_VALUE
The 'GET OR CREATE' literal value. |
static int |
GET_VALUE
The 'GET' literal value. |
static java.util.List<ResourceMode> |
VALUES
A public read-only list of all the 'Resource Mode' enumerators. |
| Method Summary | |
|---|---|
static ResourceMode |
get(int value)
Returns the 'Resource Mode' literal with the specified integer value. |
static ResourceMode |
get(java.lang.String literal)
Returns the 'Resource Mode' literal with the specified literal value. |
static ResourceMode |
getByName(java.lang.String name)
Returns the 'Resource Mode' literal with the specified name. |
java.lang.String |
getLiteral()
|
java.lang.String |
getName()
|
CDOResource |
getResource(java.lang.String path,
CDOTransaction cdoTransaction)
|
int |
getValue()
|
java.lang.String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
static ResourceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ResourceMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ResourceMode GET
GET_VALUEpublic static final ResourceMode CREATE
CREATE_VALUEpublic static final ResourceMode GET_OR_CREATE
GET_OR_CREATE_VALUE| Field Detail |
|---|
public static final int GET_VALUE
If the meaning of 'GET' literal object isn't clear, there really should be more of a description here...
GET,
Constant Field Valuespublic static final int CREATE_VALUE
If the meaning of 'CREATE' literal object isn't clear, there really should be more of a description here...
CREATE,
Constant Field Valuespublic static final int GET_OR_CREATE_VALUE
If the meaning of 'GET OR CREATE' literal object isn't clear, there really should be more of a description here...
GET_OR_CREATE,
Constant Field Valuespublic static final java.util.List<ResourceMode> VALUES
| Method Detail |
|---|
public static final ResourceMode[] values()
for(ResourceMode c : ResourceMode.values())
System.out.println(c);
public static ResourceMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic static ResourceMode get(java.lang.String literal)
public static ResourceMode getByName(java.lang.String name)
public static ResourceMode get(int value)
public int getValue()
getValue in interface org.eclipse.emf.common.util.Enumeratorpublic java.lang.String getName()
getName in interface org.eclipse.emf.common.util.Enumeratorpublic java.lang.String getLiteral()
getLiteral in interface org.eclipse.emf.common.util.Enumeratorpublic java.lang.String toString()
toString in class java.lang.Enum<ResourceMode>
public CDOResource getResource(java.lang.String path,
CDOTransaction cdoTransaction)
|
Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||