//******************************************************************************
//
// File:    Settings.java
// Package: net.jini.print.service
// Unit:    Class net.jini.print.service.Settings
//
//******************************************************************************

package net.jini.print.service;

import java.io.Serializable;

import javax.print.attribute.AttributeSet;

import javax.print.DocFlavor;

/**
 * Class Settings is a record holding the settings for a supposed print job, 
 * used by the capability methods in interface {@link PrintService 
 * PrintService}. 
 * <P>
 * <B>DRAFT STANDARD VERSION 1.0 (23-MAY-2000)</B>
 *
 * @author  Alan Kaminsky
 * @version 11-May-2000
 */
public class Settings
	implements Serializable
	{

// Exported data members.

	/**
	 * Doc flavor giving the print data format for the supposed print job. A 
	 * value of null means the doc flavor is unspecified. 
	 * @serial
	 */
	public DocFlavor flavor = null;

	/**
	 * Attribute set giving the printing attributes for the supposed print job. 
	 * A value of null is equivalent to an empty set. 
	 * @serial
	 */
	public AttributeSet attributes = null;

// Exported constructors.

	/**
	 * Constructs a new settings object initialized with a null doc flavor and a 
	 * null attribute set. 
	 */
	public Settings()
		{
		}

	/**
	 * Constructs a new settings object initialized with the given doc flavor 
	 * and the given attribute set. 
	 *
	 * @param  theFlavor      Doc flavor, or null.
	 * @param  theAttributes  Attribute set, or null.
	 */
	public Settings
		(DocFlavor theFlavor,
		 AttributeSet theAttributes)
		{
		this.flavor = theFlavor;
		this.attributes = theAttributes;
		}

	}