com.novell.nds.dirxml.driver.xds
Class XDSDriverOptionsElement

java.lang.Object
  extended bycom.novell.nds.dirxml.driver.xds.ElementImpl
      extended bycom.novell.nds.dirxml.driver.xds.XDSDriverOptionsElement
All Implemented Interfaces:
OptionsParent, ParamParent, XDSElement

public class XDSDriverOptionsElement
extends ElementImpl
implements OptionsParent

A <driver-options> element.

See Also:
XDSInitParamsElement.extractDriverOptionsElement()

Method Summary
 List extractInstanceElements()
          Returns this element's child <instance> elements.
 ParamElement paramElement(String tagName)
          Returns this element's child parameter element with a tag name equal to tagName.
 void parameters(Map params)
          Extracts parameter values from this element's child elements.
 String paramText(String tagName)
          Returns the concatenated child text nodes from this element's child parameter element with a tag name equal to tagName.
 
Methods inherited from class com.novell.nds.dirxml.driver.xds.ElementImpl
attributeValueGet, attributeValueGet, attributeValueSet, childElements, documentImpl, domDocument, domElement, localName, namespaceName, position, tagName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.novell.nds.dirxml.driver.xds.XDSElement
attributeValueGet, attributeValueGet, attributeValueSet, childElements, domDocument, domElement, localName, namespaceName, position, tagName
 

Method Detail

paramElement

public ParamElement paramElement(String tagName)
                          throws XDSParameterException
Description copied from interface: ParamParent
Returns this element's child parameter element with a tag name equal to tagName.

Invocation Context:
READ

Specified by:
paramElement in interface ParamParent
Parameters:
tagName - may be null
Returns:
may be null
Throws:
XDSParameterException - if parameter tag names are not unique

paramText

public String paramText(String tagName)
                 throws XDSParameterException
Description copied from interface: ParamParent
Returns the concatenated child text nodes from this element's child parameter element with a tag name equal to tagName.

Invocation Context:
READ

Specified by:
paramText in interface ParamParent
Parameters:
tagName - may be null
Returns:
may be null; will not return ""
Throws:
XDSParameterException - if parameter tag names are not unique

parameters

public void parameters(Map params)
                throws XDSParameterException
Description copied from interface: ParamParent
Extracts parameter values from this element's child elements.

Invocation Context:
READ

Specified by:
parameters in interface ParamParent
Parameters:
params - the map of Parameters to extract; must not be null
Throws:
XDSParameterException - if parameter tag names are not unique or if a parameter constraint is violated

extractInstanceElements

public List extractInstanceElements()
Description copied from interface: OptionsParent
Returns this element's child <instance> elements.

Invocation Context:
READ

Specified by:
extractInstanceElements in interface OptionsParent
Returns:
Collections.EMPTY_LIST or a list of XDSInstanceElement objects; will not return null