public abstract class

BoolValueConstruct

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

Class Overview

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

Summary

Fields
private boolean boolValue Variable to cache the boolean value.
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
BoolValueConstruct(String nodeName)
Constructs ValueConstruct to represent boolean value.
Public Methods
boolean equals(Object rhs)
Compares BoolValueConstruct objects based on the boolean value that they hold.
boolean getBooleanValue()
Get boolean value.
int hashCode()
Returns hash code which is based on the boolean string representation.
void setBooleanValue(boolean value)
Set boolean value.
void setValue(String value)
Override setValue(String) to validate that supplied value is xsd:boolean which is a standard way to represent boolean in XML.
[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 boolean boolValue

Variable to cache the boolean value.

Public Constructors

public BoolValueConstruct (String nodeName)

Constructs ValueConstruct to represent boolean value.

Parameters
nodeName

Public Methods

public boolean equals (Object rhs)

Compares BoolValueConstruct objects based on the boolean value that they hold.

Parameters
rhs

public boolean getBooleanValue ()

Get boolean value.

public int hashCode ()

Returns hash code which is based on the boolean string representation.

public void setBooleanValue (boolean value)

Set boolean value.

Parameters
value

public void setValue (String value)

Override setValue(String) to validate that supplied value is xsd:boolean which is a standard way to represent boolean in XML. xsd:boolean treats "true" and "1" as true and "false" and "0" as false.

Parameters
value New value for the value construct or null to reset.
Throws
NullPointerException if the value is null.
IllegalArgumentException if value is not valid xsd:boolean value.