Package com._1c.g5.v8.dt.schedule.model
Enum WeekDays
- java.lang.Object
-
- java.lang.Enum<WeekDays>
-
- com._1c.g5.v8.dt.schedule.model.WeekDays
-
- All Implemented Interfaces:
Serializable,Comparable<WeekDays>,org.eclipse.emf.common.util.Enumerator
public enum WeekDays extends Enum<WeekDays> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Week Days', and utility methods for working with them.- See Also:
SchedulePackage.getWeekDays()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FRIDAYThe 'Friday' literal object.MONDAYThe 'Monday' literal object.SATURDAYThe 'Saturday' literal object.SUNDAYThe 'Sunday' literal object.THURSDAYThe 'Thursday' literal object.TUESDAYThe 'Tuesday' literal object.WEDNESDAYThe 'Wednesday' literal object.
-
Field Summary
Fields Modifier and Type Field Description static intFRIDAY_VALUEThe 'Friday' literal value.static intMONDAY_VALUEThe 'Monday' literal value.static intSATURDAY_VALUEThe 'Saturday' literal value.static intSUNDAY_VALUEThe 'Sunday' literal value.static intTHURSDAY_VALUEThe 'Thursday' literal value.static intTUESDAY_VALUEThe 'Tuesday' literal value.static List<WeekDays>VALUESA public read-only list of all the 'Week Days' enumerators.static intWEDNESDAY_VALUEThe 'Wednesday' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WeekDaysget(int value)Returns the 'Week Days' literal with the specified integer value.static WeekDaysget(String literal)Returns the 'Week Days' literal with the specified literal value.static WeekDaysgetByName(String name)Returns the 'Week Days' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static WeekDaysvalueOf(String name)Returns the enum constant of this type with the specified name.static WeekDays[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUNDAY
public static final WeekDays SUNDAY
The 'Sunday' literal object.- See Also:
SUNDAY_VALUE
-
MONDAY
public static final WeekDays MONDAY
The 'Monday' literal object.- See Also:
MONDAY_VALUE
-
TUESDAY
public static final WeekDays TUESDAY
The 'Tuesday' literal object.- See Also:
TUESDAY_VALUE
-
WEDNESDAY
public static final WeekDays WEDNESDAY
The 'Wednesday' literal object.- See Also:
WEDNESDAY_VALUE
-
THURSDAY
public static final WeekDays THURSDAY
The 'Thursday' literal object.- See Also:
THURSDAY_VALUE
-
FRIDAY
public static final WeekDays FRIDAY
The 'Friday' literal object.- See Also:
FRIDAY_VALUE
-
SATURDAY
public static final WeekDays SATURDAY
The 'Saturday' literal object.- See Also:
SATURDAY_VALUE
-
-
Field Detail
-
SUNDAY_VALUE
public static final int SUNDAY_VALUE
The 'Sunday' literal value.- See Also:
SUNDAY, Constant Field Values
-
MONDAY_VALUE
public static final int MONDAY_VALUE
The 'Monday' literal value.- See Also:
MONDAY, Constant Field Values
-
TUESDAY_VALUE
public static final int TUESDAY_VALUE
The 'Tuesday' literal value.- See Also:
TUESDAY, Constant Field Values
-
WEDNESDAY_VALUE
public static final int WEDNESDAY_VALUE
The 'Wednesday' literal value.- See Also:
WEDNESDAY, Constant Field Values
-
THURSDAY_VALUE
public static final int THURSDAY_VALUE
The 'Thursday' literal value.- See Also:
THURSDAY, Constant Field Values
-
FRIDAY_VALUE
public static final int FRIDAY_VALUE
The 'Friday' literal value.- See Also:
FRIDAY, Constant Field Values
-
SATURDAY_VALUE
public static final int SATURDAY_VALUE
The 'Saturday' literal value.- See Also:
SATURDAY, Constant Field Values
-
-
Method Detail
-
values
public static WeekDays[] 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 (WeekDays c : WeekDays.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeekDays 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 WeekDays get(String literal)
Returns the 'Week Days' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
public static WeekDays getByName(String name)
Returns the 'Week Days' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
public static WeekDays get(int value)
Returns the 'Week Days' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()
- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
-