public class GCBooleanValue extends GCValue
GCVs of type "boolean" may have one of two values:
In other words, "boolean" values must match the following production:
Boolean := 'true' | 'false'
The default value of a newly-constructed GCBooleanValue object is "false".
GCValue.IllegalCloneStateException, GCValue.XmlComment, GCValue.XmlItem, GCValue.XmlProcessingInstructionmodified, parent, TYPE_BOOLEAN, TYPE_DN, TYPE_DN_REF, TYPE_ENUM, TYPE_GCV_REF, TYPE_GROUP, TYPE_HEADER, TYPE_INTEGER, TYPE_LIST, TYPE_PASSWORD_REF, TYPE_REAL, TYPE_STRING, TYPE_STRUCTURED, TYPE_SUBORDINATES, xmlItems| Modifier and Type | Method and Description |
|---|---|
GCValue |
cloneValue(java.lang.String name)
Clone this
GCValue instance and return the cloned instance. |
boolean |
getBooleanValue()
Return the current value of this instance.
|
java.lang.String |
getValue()
Return the current value of this instance.
|
void |
parseValue(java.lang.String value)
Parse the passed value based on the type and instance rules
for "boolean" GCVs.
|
void |
setValue(java.lang.String strValue)
Set the value for this instance.
|
addXmlComment, addXmlItems, addXmlProcessingInstruction, cloneCommon, construct, construct, constructGCVRef, constructGCVRef, constructGroup, constructHeader, constructStructuredValue, constructSubordinates, getDescription, getDescriptionRef, getDisplayName, getDisplayNameRef, getHidden, getMandatory, getName, getOwner, getParent, getType, getTypeString, getXmlItemsIterator, getXMLValue, hasBeenModified, localize, resetModified, setDescription, setDescriptionRef, setDisplayName, setDisplayNameRef, setHidden, setMandatory, toXML, typeFromStringpublic GCValue cloneValue(java.lang.String name)
GCValue instance and return the cloned instance.cloneValue in class GCValuethe - name for the cloned value.public void parseValue(java.lang.String value)
throws GCVException
The passed value must be one of the strings "true" or "false".
parseValue in class GCValuevalue - Value String to parseGCVException - thrown if value is not "true" or "false".public java.lang.String getValue()
public boolean getBooleanValue()
true or false.public void setValue(java.lang.String strValue)
throws GCVException
The passed value must be one of the strings "true" or "false".
setValue in class GCValuestrValue - Value String for this instance.GCVException - thrown if value is not "true" or "false".