Enum RepositoryStatus
- java.lang.Object
-
- java.lang.Enum<RepositoryStatus>
-
- org.palladiosimulator.edp2.models.Repository.RepositoryStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<RepositoryStatus>
,Enumerator
public enum RepositoryStatus extends Enum<RepositoryStatus> implements Enumerator
A representation of the literals of the enumeration ' Status', and utility methods for working with them.- See Also:
org.palladiosimulator.edp2.models.Repository.RepositoryPackage#getRepositoryStatus()
- Generated class or method.
- EMF model class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CLOSED_VALUE
The 'CLOSED' literal value.static int
DELETED_VALUE
The 'DELETED' literal value.static int
OPEN_VALUE
The 'OPEN' literal value.static List<RepositoryStatus>
VALUES
A public read-only list of all the 'Status' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RepositoryStatus
get(int value)
Returns the 'Status' literal with the specified integer value.static RepositoryStatus
get(String literal)
Returns the 'Status' literal with the specified literal value.static RepositoryStatus
getByName(String name)
Returns the 'Status' 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 RepositoryStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static RepositoryStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final RepositoryStatus OPEN
The 'OPEN' literal object.- See Also:
OPEN_VALUE
- Generated class or method.
- Ordered collection.
-
CLOSED
public static final RepositoryStatus CLOSED
The 'CLOSED' literal object.- See Also:
CLOSED_VALUE
- Generated class or method.
- Ordered collection.
-
DELETED
public static final RepositoryStatus DELETED
The 'DELETED' literal object.- See Also:
DELETED_VALUE
- Generated class or method.
- Ordered collection.
-
-
Field Detail
-
OPEN_VALUE
public static final int OPEN_VALUE
The 'OPEN' literal value.If the meaning of 'OPEN' literal object isn't clear, there really should be more of a description here...
- See Also:
OPEN
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
CLOSED_VALUE
public static final int CLOSED_VALUE
The 'CLOSED' literal value.If the meaning of 'CLOSED' literal object isn't clear, there really should be more of a description here...
- See Also:
CLOSED
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
DELETED_VALUE
public static final int DELETED_VALUE
The 'DELETED' literal value.If the meaning of 'DELETED' literal object isn't clear, there really should be more of a description here...
- See Also:
DELETED
, Constant Field Values- Generated class or method.
- EMF model class or method.
- Ordered collection.
-
VALUES
public static final List<RepositoryStatus> VALUES
A public read-only list of all the 'Status' enumerators.- Generated class or method.
-
-
Method Detail
-
values
public static RepositoryStatus[] 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 (RepositoryStatus c : RepositoryStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RepositoryStatus 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 RepositoryStatus get(String literal)
Returns the 'Status' literal with the specified literal value.- Generated class or method.
-
getByName
public static RepositoryStatus getByName(String name)
Returns the 'Status' literal with the specified name.- Generated class or method.
-
get
public static RepositoryStatus get(int value)
Returns the 'Status' 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<RepositoryStatus>
- Generated class or method.
-
-