com.novell.nds.dirxml.engine.gcv
Class GCGroup
java.lang.Object
com.novell.nds.dirxml.engine.gcv.GCValue
com.novell.nds.dirxml.engine.gcv.GCParent
com.novell.nds.dirxml.engine.gcv.GCGroup
- All Implemented Interfaces:
- GCOwner, ConfigElement
public class GCGroup
- extends GCParent
Class representing a GCV group.
A GCV group is a collection of related GCVs. The first definition in the group is the
"group leader". The UI displays the other members of the group as subordinate to the
group leader. The other members of the group may be definitions or they may be "subordinate
sections". Subordinate sections may be conditionally displayed by the UI based on the
value of the group leader.
Group leaders may be of type boolean or of type enum.
Although a GCV group is not an actual GCV, the objects are represented programmatically as
GCValues for ease of manipulation via the GCDefinitions class.
- See Also:
GCSubordinates
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 |
Constructor Summary |
protected |
GCGroup(Element definition,
GCOwner owner)
Constructor for use by GCValue.construct() method. |
protected |
GCGroup(GCOwner owner)
Constructor for use by GCValue construct() method. |
Methods inherited from class com.novell.nds.dirxml.engine.gcv.GCParent |
addName, appendValue, checkAllowedType, cloneCommon, getOwner, getValue, insertValue, insertValue, isNameAllowed, iterator, parseValue, removeName, removeValue, removeValue, replaceValue, setValue, shallowIterator |
Methods inherited from class com.novell.nds.dirxml.engine.gcv.GCValue |
addXmlComment, addXmlItems, addXmlProcessingInstruction, construct, construct, constructGCVRef, constructGCVRef, constructGroup, constructHeader, constructStructuredValue, constructSubordinates, getDescription, getDescriptionRef, getDisplayName, getDisplayNameRef, getHidden, getMandatory, getName, 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 |
GCGroup
protected GCGroup(GCOwner owner)
throws GCVArgumentException
- Constructor for use by
GCValue
construct()
method.
- Parameters:
owner
- GCDefinitions
instance that owns this group.
- Throws:
GCVArgumentException
- thrown if name is invalid
GCGroup
protected GCGroup(Element definition,
GCOwner owner)
throws GCVException
- Constructor for use by
GCValue.construct()
method.
- Parameters:
definition
- <group> element defining data.owner
- GCDefinitions
instance that owns the group
- Throws:
GCVException
- thrown if XML is not complete or
correct.
cloneValue
public GCValue cloneValue(String name)
- Clone this
GCValue
instance and return the cloned instance.
- Specified by:
cloneValue
in class GCValue
- Parameters:
the
- name for the cloned value (ignored).
- Returns:
- the cloned instance
getLeader
public GCValue getLeader()
- Return the "group leader" value.
- Returns:
- GCValue that is the group leader or
null
.