public abstract class BoolValueConstruct extends ValueConstruct
Constructor and Description |
---|
BoolValueConstruct(java.lang.String nodeName)
Constructs
ValueConstruct to represent boolean value. |
Modifier and Type | Method and Description |
---|---|
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. |
generate, getHandler, getValue, hasValue, isRequired, putAttributes
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public BoolValueConstruct(java.lang.String nodeName)
ValueConstruct
to represent boolean value.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()