Package org.palladiosimulator.solver.lqn
Enum RWLockType
- java.lang.Object
-
- java.lang.Enum<RWLockType>
-
- org.palladiosimulator.solver.lqn.RWLockType
-
- All Implemented Interfaces:
Serializable
,Comparable<RWLockType>
,Enumerator
public enum RWLockType extends Enum<RWLockType> implements Enumerator
A representation of the literals of the enumeration ' RW Lock Type', and utility methods for working with them.- See Also:
LqnPackage.getRWLockType()
- Generated class or method.
- EMF model class or method.
- extendedMetaData="name='RWLockType'"
-
-
Field Summary
Fields Modifier and Type Field Description static int
RLOCK_VALUE
The 'RLock' literal value.static int
RUNLOCK_VALUE
The 'RUnlock' literal value.static List<RWLockType>
VALUES
A public read-only list of all the 'RW Lock Type' enumerators.static int
WLOCK_VALUE
The 'WLock' literal value.static int
WUNLOCK_VALUE
The 'WUnlock' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RWLockType
get(int value)
Returns the 'RW Lock Type' literal with the specified integer value.static RWLockType
get(String literal)
Returns the 'RW Lock Type' literal with the specified literal value.static RWLockType
getByName(String name)
Returns the 'RW Lock Type' 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 RWLockType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RWLockType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNLOCK
public static final RWLockType RUNLOCK
The 'RUnlock' literal object.- See Also:
RUNLOCK_VALUE
- Generated class or method.
- Ordered collection.
-
RLOCK
public static final RWLockType RLOCK
The 'RLock' literal object.- See Also:
RLOCK_VALUE
- Generated class or method.
- Ordered collection.
-
WUNLOCK
public static final RWLockType WUNLOCK
The 'WUnlock' literal object.- See Also:
WUNLOCK_VALUE
- Generated class or method.
- Ordered collection.
-
WLOCK
public static final RWLockType WLOCK
The 'WLock' literal object.- See Also:
WLOCK_VALUE
- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
RUNLOCK_VALUE
public static final int RUNLOCK_VALUE
The 'RUnlock' literal value.If the meaning of 'RUnlock' literal object isn't clear, there really should be more of a description here...
- See Also:
RUNLOCK
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="rUnlock" literal="r-unlock"
- Ordered collection.
-
RLOCK_VALUE
public static final int RLOCK_VALUE
The 'RLock' literal value.If the meaning of 'RLock' literal object isn't clear, there really should be more of a description here...
- See Also:
RLOCK
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="rLock" literal="r-lock"
- Ordered collection.
-
WUNLOCK_VALUE
public static final int WUNLOCK_VALUE
The 'WUnlock' literal value.If the meaning of 'WUnlock' literal object isn't clear, there really should be more of a description here...
- See Also:
WUNLOCK
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="wUnlock" literal="w-unlock"
- Ordered collection.
-
WLOCK_VALUE
public static final int WLOCK_VALUE
The 'WLock' literal value.If the meaning of 'WLock' literal object isn't clear, there really should be more of a description here...
- See Also:
WLOCK
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="wLock" literal="w-lock"
- Ordered collection.
-
VALUES
public static final List<RWLockType> VALUES
A public read-only list of all the 'RW Lock Type' enumerators.- Generated class or method.
-
-
Method Detail
-
values
public static RWLockType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RWLockType c : RWLockType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RWLockType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static RWLockType get(String literal)
Returns the 'RW Lock Type' literal with the specified literal value.- Generated class or method.
-
getByName
public static RWLockType getByName(String name)
Returns the 'RW Lock Type' literal with the specified name.- Generated class or method.
-
get
public static RWLockType get(int value)
Returns the 'RW Lock Type' literal with the specified integer value.- Generated class or method.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceEnumerator
- Generated class or method.
-
getName
public String getName()
- Specified by:
getName
in interfaceEnumerator
- Generated class or method.
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceEnumerator
- Generated class or method.
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<RWLockType>
- Generated class or method.
-
-