public abstract class

RegionCodeValueConstruct

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

Class Overview

GData schema extension describing a node with a region code value. This class is abstract, derive from this class and define a default constructor which has the node name hardcoded, see http://www.unicode.org/cldr/data/diff/supplemental/territory_containment_un_m_49.html for a list of valid region codes.

Summary

Constants
String DEFAULT_REGION_CODE Default value for the region code is US
[Expand]
Inherited Fields
From class com.google.gdata.data.ValueConstruct
From class com.google.gdata.data.AbstractExtension
Public Constructors
RegionCodeValueConstruct(String nodeName)
Constructs ValueConstruct to represent the region code value.
Public Methods
boolean equals(Object rhs)
Compares RegionCodeValueConstruct objects based on the region code value that they hold.
int hashCode()
Returns hash code which is based on the Region Code string representation.
void setValue(String value)
Override setValue(String) to validate that the region code is not null.
[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

Constants

public static final String DEFAULT_REGION_CODE

Default value for the region code is US

Constant Value: "ZZ"

Public Constructors

public RegionCodeValueConstruct (String nodeName)

Constructs ValueConstruct to represent the region code value.

Parameters
nodeName

Public Methods

public boolean equals (Object rhs)

Compares RegionCodeValueConstruct objects based on the region code value that they hold.

Parameters
rhs

public int hashCode ()

Returns hash code which is based on the Region Code string representation.

public void setValue (String value)

Override setValue(String) to validate that the region code is not null.

Parameters
value New value for the value construct or null to reset.
Throws
NullPointerException if the value is null.
IllegalArgumentException