Enum ParameterModifier
- java.lang.Object
-
- java.lang.Enum<ParameterModifier>
-
- org.palladiosimulator.pcm.repository.ParameterModifier
-
- All Implemented Interfaces:
Serializable
,Comparable<ParameterModifier>
,Enumerator
public enum ParameterModifier extends Enum<ParameterModifier> implements Enumerator
A representation of the literals of the enumeration ' Parameter Modifier', and utility methods for working with them. Parameter modifiers like known from C#.- See Also:
RepositoryPackage.getParameterModifier()
- Generated class or method.
- EMF model class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static String
copyright
static int
IN_VALUE
The 'In' literal value.static int
INOUT_VALUE
The 'Inout' literal value.static int
NONE_VALUE
The 'None' literal value.static int
OUT_VALUE
The 'Out' literal value.static List<ParameterModifier>
VALUES
A public read-only list of all the 'Parameter Modifier' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParameterModifier
get(int value)
Returns the 'Parameter Modifier' literal with the specified integer value.static ParameterModifier
get(String literal)
Returns the 'Parameter Modifier' literal with the specified literal value.static ParameterModifier
getByName(String name)
Returns the 'Parameter Modifier' 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 ParameterModifier
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParameterModifier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ParameterModifier NONE
The 'None' literal object.- See Also:
NONE_VALUE
- Generated class or method.
- Ordered collection.
-
IN
public static final ParameterModifier IN
The 'In' literal object.- See Also:
IN_VALUE
- Generated class or method.
- Ordered collection.
-
OUT
public static final ParameterModifier OUT
The 'Out' literal object.- See Also:
OUT_VALUE
- Generated class or method.
- Ordered collection.
-
INOUT
public static final ParameterModifier INOUT
The 'Inout' literal object.- See Also:
INOUT_VALUE
- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
copyright
public static final String copyright
- See Also:
- Constant Field Values
- Generated class or method.
-
NONE_VALUE
public static final int NONE_VALUE
The 'None' literal value. Use this value if no parameter modifier shall be applied.- See Also:
NONE
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="none"
- Ordered collection.
-
IN_VALUE
public static final int IN_VALUE
The 'In' literal value. "in" according to C# semantics- See Also:
IN
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="in"
- Ordered collection.
-
OUT_VALUE
public static final int OUT_VALUE
The 'Out' literal value. "out" according to C# semantics- See Also:
OUT
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="out"
- Ordered collection.
-
INOUT_VALUE
public static final int INOUT_VALUE
The 'Inout' literal value. ref" according to C# semantics- See Also:
INOUT
, Constant Field Values- Generated class or method.
- EMF model class or method.
- name="inout"
- Ordered collection.
-
VALUES
public static final List<ParameterModifier> VALUES
A public read-only list of all the 'Parameter Modifier' enumerators.- Generated class or method.
-
-
Method Detail
-
values
public static ParameterModifier[] 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 (ParameterModifier c : ParameterModifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterModifier 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 ParameterModifier get(String literal)
Returns the 'Parameter Modifier' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
getByName
public static ParameterModifier getByName(String name)
Returns the 'Parameter Modifier' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
. - Generated class or method.
-
get
public static ParameterModifier get(int value)
Returns the 'Parameter Modifier' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
. - 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<ParameterModifier>
- Generated class or method.
-
-