public class

TimesCleanedProperty

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.calendar.TimesCleanedProperty

Class Overview

Describes how many times calendar was cleaned via Manage Calendars.

Summary

Constants
String VALUE XML "value" attribute name
String XML_NAME XML element name
Fields
private Integer value Number of times calendar was cleaned
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
TimesCleanedProperty()
Default mutable constructor.
TimesCleanedProperty(Integer value)
Immutable constructor.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
Integer getValue()
Returns the number of times calendar was cleaned.
boolean hasValue()
Returns whether it has the number of times calendar was cleaned.
int hashCode()
void setValue(Integer value)
Sets the number of times calendar was cleaned.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String VALUE

XML "value" attribute name

Constant Value: "value"

static final String XML_NAME

XML element name

Constant Value: "timesCleaned"

Fields

private Integer value

Number of times calendar was cleaned

Public Constructors

public TimesCleanedProperty ()

Default mutable constructor.

public TimesCleanedProperty (Integer value)

Immutable constructor.

Parameters
value Number of times calendar was cleaned.

Public Methods

public boolean equals (Object obj)

Parameters
obj

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public Integer getValue ()

Returns the number of times calendar was cleaned.

Returns
  • number of times calendar was cleaned

public boolean hasValue ()

Returns whether it has the number of times calendar was cleaned.

Returns
  • whether it has the number of times calendar was cleaned

public int hashCode ()

public void setValue (Integer value)

Sets the number of times calendar was cleaned.

Parameters
value Number of times calendar was cleaned or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.