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

package net.jini.print.lookup;

import java.util.Locale;

import net.jini.entry.AbstractEntry;

import net.jini.lookup.entry.ServiceControlled;

/**
 * Class LocaleEntry is a Jini service attribute containing a locale a Jini 
 * Print Service instance supports. If a Jini Print Service instance supports 
 * the optional capability of generating localized strings as specified in 
 * interface {@link net.jini.print.service.LocalizedPrintService 
 * LocalizedPrintService}, then for each locale it supports, the Jini Print 
 * Service instance must register a service attribute of class LocaleEntry 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 12-May-2000
 */
public class LocaleEntry
	extends AbstractEntry
	implements ServiceControlled
	{

// Exported fields.

	/**
	 * Locale the Jini Print Service instance supports.
	 * @serial
	 */
	public Locale locale;

// Exported constructors.

	/**
	 * Construct a locale entry containing a null (wildcard) locale. 
	 */
	public LocaleEntry()
		{
		locale = null;
		}

	/**
	 * Construct a locale entry containing the given locale. 
	 *
	 * @param  theLocale  Locale.
	 */
	public LocaleEntry
		(Locale theLocale)
		{
		locale = theLocale;
		}

	}