public abstract class

DateTimeValueConstruct

extends ValueConstruct
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ValueConstruct
       ↳ com.google.gdata.data.webmastertools.DateTimeValueConstruct
Known Direct Subclasses

Class Overview

GData schema extension describing a node with a DateTime value. The class is abstract, derive from this class and define default constructor which hardcodes the node name.

Summary

Fields
private DateTime dateTimeValue Variable to cache the date/time value.
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
DateTimeValueConstruct(String nodeName)
Constructs ValueConstruct to represent DateTime value.
Public Methods
boolean equals(Object rhs)
Compares DateTimeValueConstruct objects based on the date/time value that they hold.
DateTime getDateTime()
Get date/time value.
int hashCode()
Returns hash code that is based on the date/time value that the object holds.
void setDateTime(DateTime value)
Set date/time value.
void setValue(String value)
Override setValue(String) to validate that supplied value is valid date.
[Expand]
Inherited Methods
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Fields

private DateTime dateTimeValue

Variable to cache the date/time value.

Public Constructors

public DateTimeValueConstruct (String nodeName)

Constructs ValueConstruct to represent DateTime value.

Parameters
nodeName

Public Methods

public boolean equals (Object rhs)

Compares DateTimeValueConstruct objects based on the date/time value that they hold.

Parameters
rhs

public DateTime getDateTime ()

Get date/time value.

public int hashCode ()

Returns hash code that is based on the date/time value that the object holds.

public void setDateTime (DateTime value)

Set date/time value.

Parameters
value
Throws
NullPointerException if argument is null.

public void setValue (String value)

Override setValue(String) to validate that supplied value is valid date.

Parameters
value New value for the value construct or null to reset.
Throws
NullPointerException if argument is null.
IllegalArgumentException if argument is not a valid date.