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