|
|||||||||
| 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.IntValueConstruct
public abstract class IntValueConstruct
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.
| Constructor Summary | |
|---|---|
IntValueConstruct(java.lang.String nodeName)
Constructs ValueConstruct to represent integer value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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(java.lang.String value)
Override ValueConstruct.setValue(String) to validate that
supplied value is integer. |
| 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 |
| Constructor Detail |
|---|
public IntValueConstruct(java.lang.String nodeName)
ValueConstruct to represent integer value.
| Method Detail |
|---|
public boolean equals(java.lang.Object rhs)
IntValueConstruct objects based on the integer value
that they hold.
equals in class ValueConstructpublic int hashCode()
hashCode in class ValueConstructpublic void setValue(java.lang.String value)
ValueConstruct.setValue(String) to validate that
supplied value is integer.
setValue in class ValueConstructvalue - new value for the value construct or null to reset.
java.lang.NullPointerException - if argument is null.
java.lang.IllegalArgumentException - if argument is not a valid integer.public void setIntValue(int value)
Integer value.
public int getIntValue()
Integer value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||