|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ValueConstruct
com.google.gdata.data.webmastertools.RegionCodeValueConstruct
public abstract class RegionCodeValueConstruct
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.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_REGION_CODE
Default value for the region code is US |
| Constructor Summary | |
|---|---|
RegionCodeValueConstruct(java.lang.String nodeName)
Constructs ValueConstruct to represent the region code value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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(java.lang.String value)
Override ValueConstruct.setValue(String) to validate that
the region code is not null. |
| Methods inherited from class com.google.gdata.data.ValueConstruct |
|---|
generate, getHandler, getValue, hasValue, isRequired, putAttributes |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_REGION_CODE
| Constructor Detail |
|---|
public RegionCodeValueConstruct(java.lang.String nodeName)
ValueConstruct to represent the region code value.
| Method Detail |
|---|
public boolean equals(java.lang.Object rhs)
RegionCodeValueConstruct objects based on the region code
value that they hold.
equals in class ValueConstructpublic int hashCode()
hashCode in class ValueConstruct
public void setValue(java.lang.String value)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
ValueConstruct.setValue(String) to validate that
the region code is not null.
setValue in class ValueConstructvalue - new value for the value construct or null to reset.
java.lang.NullPointerException - if the value is null.
java.lang.IllegalArgumentException - if the value is invalid for the construct.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||