//******************************************************************************
//
// File:    FlavorEntry.java
// Package: net.jini.print.lookup
// Unit:    Class net.jini.print.lookup.FlavorEntry
//
//******************************************************************************

package net.jini.print.lookup;

import javax.print.DocFlavor;

import net.jini.entry.AbstractEntry;

import net.jini.lookup.entry.ServiceControlled;

/**
 * Class FlavorEntry is a Jini service attribute containing a print data format 
 * ("doc flavor") a Jini Print Service instance supports. See class {@link 
 * javax.print.data.DocFlavor DocFlavor} for further information. For each 
 * doc flavor it supports, a Jini Print Service instance must register a service 
 * attribute of class FlavorEntry in its service registration in the Jini Lookup 
 * Service (JLUS). 
 * <P>
 * <B>DRAFT STANDARD VERSION 1.0 (23-MAY-2000)</B>
 *
 * @author  Alan Kaminsky
 * @version 22-Mar-1999
 */
public class FlavorEntry
	extends AbstractEntry
	implements ServiceControlled
	{

// Exported fields.

	/**
	 * Print data format (doc flavor) the Jini Print Service instance supports.
	 * @serial
	 */
	public DocFlavor flavor;

// Exported constructors.

	/**
	 * Construct a flavor entry containing a null (wildcard) doc flavor. 
	 */
	public FlavorEntry()
		{
		flavor = null;
		}

	/**
	 * Construct a flavor entry containing the given doc flavor. 
	 *
	 * @param  theFlavor  Doc flavor.
	 */
	public FlavorEntry
		(DocFlavor theFlavor)
		{
		flavor = theFlavor;
		}

	}