Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.cantaloop.cgimlet
Class OptionReaderConfigurator  view OptionReaderConfigurator download OptionReaderConfigurator.java

java.lang.Object
  extended byorg.cantaloop.cgimlet.OptionReaderConfigurator

public class OptionReaderConfigurator
extends java.lang.Object

You can use this class to adapt a OptionReader to your needs.

Version:
@version@ ($Revision: 1.6 $)

Field Summary
private  org.dom4j.QName elemName
           
private  java.lang.String keyAttr
           
private  java.lang.String valueAttr
           
 
Constructor Summary
OptionReaderConfigurator(org.dom4j.Namespace ns)
          Shorthand for OptionReaderConfigurator(new QName("option", ns)).
OptionReaderConfigurator(org.dom4j.QName elemName)
          Shorthand for OptionReaderConfigurator(elemName, "name", "value").
OptionReaderConfigurator(org.dom4j.QName elemName, java.lang.String keyAttr, java.lang.String valueAttr)
          Creates a new OptionReaderConfigurator instance.
 
Method Summary
 org.dom4j.QName getElementName()
          Get the QName of the elements that contains the options.
 java.lang.String getKeyAttributeName()
          Get the name of the attribute that holds the key of the option
 java.lang.String getValueAttributeName()
          Get the name of the attribute that holds the value of the option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elemName

private org.dom4j.QName elemName

keyAttr

private java.lang.String keyAttr

valueAttr

private java.lang.String valueAttr
Constructor Detail

OptionReaderConfigurator

public OptionReaderConfigurator(org.dom4j.Namespace ns)
Shorthand for OptionReaderConfigurator(new QName("option", ns)).


OptionReaderConfigurator

public OptionReaderConfigurator(org.dom4j.QName elemName)
Shorthand for OptionReaderConfigurator(elemName, "name", "value").


OptionReaderConfigurator

public OptionReaderConfigurator(org.dom4j.QName elemName,
                                java.lang.String keyAttr,
                                java.lang.String valueAttr)
Creates a new OptionReaderConfigurator instance.

Method Detail

getElementName

public org.dom4j.QName getElementName()
Get the QName of the elements that contains the options.


getKeyAttributeName

public java.lang.String getKeyAttributeName()
Get the name of the attribute that holds the key of the option


getValueAttributeName

public java.lang.String getValueAttributeName()
Get the name of the attribute that holds the value of the option