com.novell.nds.dirxml.engine.gcv
Class GCVRef

java.lang.Object
  extended by com.novell.nds.dirxml.engine.gcv.GCValue
      extended by com.novell.nds.dirxml.engine.gcv.GCVRef
All Implemented Interfaces:
ConfigElement

public class GCVRef
extends GCValue

Class representing a reference to a GCV from a ShimParams instance. This is implemented as a GCValue so that the reference can easily be manipulated via the GCDefinitions and GCParent classes.

Note that gcv-ref types cannot appear on base GCV definitions (i.e., in GCDefinitions).

Note that only a single reference to a give GCV can exist in a single ShimParams instance.


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
 
Constructor Summary
GCVRef(String name)
          Constructor for use by GCValue construct() method.
GCVRef(String name, String driverParamName)
          Constructor.
 
Method Summary
 GCValue cloneValue(String name)
          Clone this GCValue instance and return the cloned instance.
 String getDriverParamName()
          Get the driver parameter name override, if any.
 String getValue()
          Return the current value of this instance.
 void parseValue(String value)
          Implement GCValue abstract.
 void setDriverParamName(String driverParamName)
          Set the driver parameter name override.
 void setValue(String value)
          Implement GCValue abstract.
 
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
 

Constructor Detail

GCVRef

public GCVRef(String name)
       throws GCVArgumentException
Constructor for use by GCValue construct() method.

Parameters:
name - name of GCV to reference
Throws:
GCVArgumentException - thrown if name is invalid

GCVRef

public GCVRef(String name,
              String driverParamName)
       throws GCVArgumentException
Constructor.

Parameters:
name - name of GCV to reference
driverParamName - driver parameter name (overrides GCV name when converting to driver parameter). May be null; if non-null, value must a valid XML Name;
Throws:
GCVArgumentException - thrown if name is invalid
Method Detail

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.
Returns:
the cloned instance

parseValue

public void parseValue(String value)
                throws GCVException
Implement GCValue abstract. This method does nothing.

Specified by:
parseValue in class GCValue
Parameters:
value - ignored
Throws:
none
GCVException - thrown if value is not correct for this value instance.

getValue

public String getValue()
Return the current value of this instance.

Specified by:
getValue in class GCValue
Returns:
empty string

setValue

public void setValue(String value)
              throws GCVException
Implement GCValue abstract. This method does nothing.

Specified by:
setValue in class GCValue
Parameters:
value - ignored
Throws:
none
GCVException - thrown if value is not correct for this value instance.

getDriverParamName

public String getDriverParamName()
Get the driver parameter name override, if any.

Parameters:
null, - or driver parameter name to use.

setDriverParamName

public void setDriverParamName(String driverParamName)
                        throws GCVArgumentException
Set the driver parameter name override.

Parameters:
driverParamName - name of driver parameter to use, or null. If non-null, value must be a valid XML Name.
Throws:
GCVArgumentException