|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.util.DayOfWeekHelper
public final class DayOfWeekHelper
Helper to convert the day of the week value between integer and string types. Sunday is considered the first day of the week, with an index of 1.
Constructor Summary | |
---|---|
DayOfWeekHelper()
|
Method Summary | |
---|---|
static int |
toInt(java.lang.String dayOfWeek)
Converts the day of the week from a string to an integer. |
static java.lang.String |
toString(int dayOfWeek)
Converts the day of the week from an integer to a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DayOfWeekHelper()
Method Detail |
---|
public static int toInt(java.lang.String dayOfWeek) throws InvalidValueException
dayOfWeek
- the day of week as a string: "Sunday", "Monday", etc.
InvalidValueException
- when the input value is invalidpublic static java.lang.String toString(int dayOfWeek) throws InvalidValueException
dayOfWeek
- the day of week as an integer: 1 is Sunday, 2 is Monday, etc.
InvalidValueException
- when the input value is out of range
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |