Joda System API

org.joda.property.type
Interface LocaleProperty

All Superinterfaces:
DataProperty, ModelElement, Property, java.io.Serializable
All Known Implementing Classes:
DefaultLocaleProperty

public interface LocaleProperty
extends DataProperty

Interface for Boolean properties.

Author:
Stephen Colebourne

Nested Class Summary
 
Nested classes inherited from class org.joda.property.Property
Property.Internal
 
Method Summary
 java.util.Locale get()
          Get the property's value as a Locale.
 void set(java.lang.String language, java.lang.String country)
          Set the property's value to a specific language and country.
 java.util.Locale toLocale()
          Get the property's value as a Locale.
 
Methods inherited from interface org.joda.property.type.DataProperty
toDataString
 
Methods inherited from interface org.joda.property.Property
addPropertyChangeListener, bean, equals, equalsValue, firePropertyChange, getContentName, getContentType, getPropertyName, getPropertyType, hashCode, isModifiable, isNull, isReadOnly, removePropertyChangeListener, set, setModifiable, setReadOnly, toObject, toString
 
Methods inherited from interface org.joda.property.ModelElement
getAttribute, getAttributeCount, getAttributeMap, setAttribute
 

Method Detail

get

public java.util.Locale get()
Get the property's value as a Locale.

Returns:
the property value as a Locale

toLocale

public java.util.Locale toLocale()
Get the property's value as a Locale.

Returns:
the property value as a Locale

set

public void set(java.lang.String language,
                java.lang.String country)
Set the property's value to a specific language and country.

Parameters:
language - the language to set the locale to
country - the country to set the locale to

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.