/********************************************************************
* API for Servlets and SignatureGenerators in RAP
*  enabling extensible behaviors for RAP Digital Objects
* RAP - Repository Access Protocol
********************************************************************/
package ServletAPI;

/**
 * An encoded definition of the allowable values (the domain) of
 *  a parameter in a MethodSignature. 
 * Note that at the present time, we do not know of recognized
 *  standards to use for our encoding scheme.
 *
 * examples:
 *    ["CommaSeparatedValues","foo,bar,do,re,mi"]
 *    ["SingleValue","foo"]
 *    ["NumericalRange","1-10000"]
 *    ["LowercaseLetters","a-z"]
 *
 * @author Christophe Blanchi
 * @author Sandy Payette
 * @author Naomi Dushay
 **/
public class Domain
{
    /**
     * How the domain values are encoded 
     *  presumably this will allow for multiple machine readable
     *  encoding schemes for domains.
     * Note that at the present time, we do not know of recognized
     *  standards to use for our encoding scheme.
     **/
    public String encoding;

    /**
     * A representation per encoding of a single allowable value for
     * a MethodSignature parameter or of multiple allowable values.
     **/
    public String value;
    
    public Domain(String encoding, String value)
    {
        this.encoding = encoding;
        this.value = value;
    }
}
