/********************************************************************
* API for Servlets and SignatureGenerators in RAP
*  enabling extensible behaviors for RAP Digital Objects
* RAP - Repository Access Protocol
********************************************************************/
package ServletAPI;

/**
 * Ordinality is part of the AttachmentRoleSpec used by RAP
 * Servlets. It defines the minimum and maximum number of DataStreams to 
 * be attached to a "role" for the Servlet.
 *
 * Examples:
 *    min = 1 and max = 1     means just one DataStream.
 *    min = 3 and max = null  means at least three DataStreams.
 *
 * @author Christophe Blanchi
 * @author Sandy Payette
 * @author Naomi Dushay
 **/
public class Ordinality
{
    /**
     * the minimum number of DataStreams to attach to an attachment "role"
     **/
    public int min;

    /**
     * the maximum number of DataStreams to attach to an attachment "role"
     *  if the maximum is an indefinite number, this should be set to "null".
     **/
    public int max;
    
    public Ordinality(int min, int max)
    {
        this.min = min;
        this.max = max;
    }
}
