|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.engine.gcv.GCValue
com.novell.nds.dirxml.engine.gcv.GCBooleanValue
public class GCBooleanValue
Class representing "boolean" type Global Configuration Values.
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"
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.novell.nds.dirxml.engine.gcv.GCValue |
---|
GCValue.IllegalCloneStateException, GCValue.XmlComment, GCValue.XmlItem, GCValue.XmlProcessingInstruction |
Field Summary |
---|
Fields inherited from class com.novell.nds.dirxml.engine.gcv.GCValue |
---|
modified, 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 |
Method Summary | |
---|---|
GCValue |
cloneValue(String name)
Clone this GCValue instance and return the cloned instance. |
boolean |
getBooleanValue()
Return the current value of this instance. |
String |
getValue()
Return the current value of this instance. |
void |
parseValue(String value)
Parse the passed value based on the type and instance rules for "boolean" GCVs. |
void |
setValue(String strValue)
Set the value for this instance. |
Methods inherited from class com.novell.nds.dirxml.engine.gcv.GCValue |
---|
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, typeFromString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public GCValue cloneValue(String name)
GCValue
instance and return the cloned instance.
cloneValue
in class GCValue
the
- name for the cloned value.
public void parseValue(String value) throws GCVException
The passed value must be one of the strings "true"
or "false"
.
parseValue
in class GCValue
value
- Value String
to parse
GCVException
- thrown if value is not "true"
or "false"
.public String getValue()
getValue
in class GCValue
"true"
or "false"
.public boolean getBooleanValue()
true
or false
.public void setValue(String strValue) throws GCVException
The passed value must be one of the strings "true"
or "false"
.
setValue
in class GCValue
strValue
- Value String
for this instance.
GCVException
- thrown if value is not "true"
or "false"
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |