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.StringABSTRACT_DATETIME_FORMATstatic java.lang.StringDATE_FORMATstatic java.lang.StringDATETIME_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 DateObjectValuefromDate(ObjectValueType objectValueType, java.util.Date date)Get DateObjectValue from dateObjectValueTypegetObjectType()Get the objectValue typejava.lang.StringgetValue()DateObjectValuesetObjectType(ObjectValueType objectType)Set the Object TypeDateObjectValuesetValue(java.lang.String value)Set the valuejava.util.DatetoDate()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:ObjectValueGet the objectValue type- Specified by:
getObjectTypein 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.ParseExceptionConvert to a Date- Throws:
java.text.ParseException
-
-