Package com.smartsheet.api.models
Class DateObjectValue
- java.lang.Object
-
- com.smartsheet.api.models.DateObjectValue
-
- All Implemented Interfaces:
ObjectValue
public class DateObjectValue extends java.lang.Object implements ObjectValue
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ABSTRACT_DATETIME_FORMAT
static java.lang.String
DATE_FORMAT
static java.lang.String
DATETIME_FORMAT
-
Constructor Summary
Constructors Constructor Description DateObjectValue(ObjectValueType objectType, java.lang.String value)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateObjectValue
fromDate(ObjectValueType objectValueType, java.util.Date date)
Get DateObjectValue from dateObjectValueType
getObjectType()
Get the objectValue typejava.lang.String
getValue()
DateObjectValue
setObjectType(ObjectValueType objectType)
Set the Object TypeDateObjectValue
setValue(java.lang.String value)
Set the valuejava.util.Date
toDate()
Convert to a Date
-
-
-
Field Detail
-
ABSTRACT_DATETIME_FORMAT
public static final java.lang.String ABSTRACT_DATETIME_FORMAT
- See Also:
- Constant Field Values
-
DATETIME_FORMAT
public static final java.lang.String DATETIME_FORMAT
- See Also:
- Constant Field Values
-
DATE_FORMAT
public static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DateObjectValue
public DateObjectValue(ObjectValueType objectType, java.lang.String value)
Constructor
-
-
Method Detail
-
fromDate
public static DateObjectValue fromDate(ObjectValueType objectValueType, java.util.Date date)
Get DateObjectValue from date
-
getObjectType
public ObjectValueType getObjectType()
Description copied from interface:ObjectValue
Get the objectValue type- Specified by:
getObjectType
in interfaceObjectValue
- Returns:
- objectType;
-
setObjectType
public DateObjectValue setObjectType(ObjectValueType objectType)
Set the Object Type
-
getValue
public java.lang.String getValue()
-
setValue
public DateObjectValue setValue(java.lang.String value)
Set the value
-
toDate
public java.util.Date toDate() throws java.text.ParseException
Convert to a Date- Throws:
java.text.ParseException
-
-