public abstract class

IntValueConstruct

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

Class Overview

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

Summary

Fields
private int intValue Variable to cache the integer value.
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
IntValueConstruct(String nodeName)
Constructs ValueConstruct to represent integer value.
Public Methods
boolean equals(Object rhs)
Compares IntValueConstruct objects based on the integer value that they hold.
int getIntValue()
Get Integer value.
int hashCode()
Returns hash code which is the integer value that the object holds.
void setIntValue(int value)
Set Integer value.
void setValue(String value)
Override setValue(String) to validate that supplied value is integer.
[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 int intValue

Variable to cache the integer value.

Public Constructors

public IntValueConstruct (String nodeName)

Constructs ValueConstruct to represent integer value.

Parameters
nodeName

Public Methods

public boolean equals (Object rhs)

Compares IntValueConstruct objects based on the integer value that they hold.

Parameters
rhs

public int getIntValue ()

Get Integer value.

public int hashCode ()

Returns hash code which is the integer value that the object holds.

public void setIntValue (int value)

Set Integer value.

Parameters
value

public void setValue (String value)

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

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 integer.