public abstract class BoolValueConstruct extends ValueConstruct
AbstractExtension.AttributesHandlerattrNamelocalName, namespace| 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. |
consumeAttributes, generate, getHandler, getValue, hasValue, isRequired, putAttributes, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic 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 ValueConstructpublic int hashCode()
hashCode in class ValueConstructpublic 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 ValueConstructvalue - 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()