org.davesag.generica.core
Interface Localisable

All Known Subinterfaces:
Content
All Known Implementing Classes:
AbstractContent

public interface Localisable

Objects that implement the Localisable interface are localisable, that is to say they can be distinguished by their languages and optionally countries.

Since:
Generica 1.0
Version:
CVS Revision $Id: Localisable.java,v 1.6 2004/03/30 10:12:57 norm Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 String getCountryCode()
          get the ISO Country Code of this Localisable.
 String getLanguageCode()
          get the ISO Language Code of this Localisable.
 Locale getLocale()
          Get the Localisable's Locale directly.
 void setCountryCode(String cunt)
          Set the Localisable's country code.
 void setLanguageCode(String lang)
          Set the Localisable's language code.
 void setLocale(Locale loc)
          Set the Localisable's Locale directly.
 

Method Detail

getLanguageCode

public String getLanguageCode()
get the ISO Language Code of this Localisable.

Returns:
The iso language code of this Content.

setLanguageCode

public void setLanguageCode(String lang)
Set the Localisable's language code.

Parameters:
lang - The iso language code of this Localisable.

getCountryCode

public String getCountryCode()
get the ISO Country Code of this Localisable.

Returns:
The iso country code of this Content.

setCountryCode

public void setCountryCode(String cunt)
Set the Localisable's country code.

Parameters:
cunt - The iso country code of this Localisable.

setLocale

public void setLocale(Locale loc)
Set the Localisable's Locale directly.

Parameters:
loc - The locale

getLocale

public Locale getLocale()
Get the Localisable's Locale directly.

Returns:
The Locale


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.