com.arsdigita.cms.contenttypes
Class IsoCountry

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.cms.contenttypes.IsoCountry

public class IsoCountry
extends com.arsdigita.domain.DomainObject

This class represents country information, iso code and name. The country information is being used by Address.

Version:
$Revision: #3 $ $Date: 2004/04/07 $
Author:
Dominik Kacprzak

Field Summary
static String BASE_DATA_OBJECT_TYPE
          Data object type for this domain object
static String COUNTRY_NAME
          PDL property name for country name
static String ISO_CODE
          PDL property name for country iso code
 
Fields inherited from class com.arsdigita.domain.DomainObject
versionId
 
Constructor Summary
IsoCountry()
           
IsoCountry(com.arsdigita.persistence.DataObject obj)
           
IsoCountry(com.arsdigita.persistence.OID oid)
           
 
Method Summary
 String getCountryName()
           
 String getIsoCode()
           
static Iterator getIsoCodes()
          Returns iterator of all available iso country codes as strings.
static com.arsdigita.domain.DomainCollection retrieveAll()
           
 void setCountryName(String countryName)
          Sets country name
 void setIsoCode(String isoCode)
           
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getBaseDataObjectType, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
Data object type for this domain object

See Also:
Constant Field Values

ISO_CODE

public static final String ISO_CODE
PDL property name for country iso code

See Also:
Constant Field Values

COUNTRY_NAME

public static final String COUNTRY_NAME
PDL property name for country name

See Also:
Constant Field Values
Constructor Detail

IsoCountry

public IsoCountry()

IsoCountry

public IsoCountry(com.arsdigita.persistence.OID oid)
           throws com.arsdigita.domain.DataObjectNotFoundException

IsoCountry

public IsoCountry(com.arsdigita.persistence.DataObject obj)
Method Detail

getIsoCode

public String getIsoCode()

setIsoCode

public void setIsoCode(String isoCode)

getCountryName

public String getCountryName()

setCountryName

public void setCountryName(String countryName)
Sets country name

Parameters:
countryName -

retrieveAll

public static com.arsdigita.domain.DomainCollection retrieveAll()

getIsoCodes

public static Iterator getIsoCodes()
Returns iterator of all available iso country codes as strings.

Returns:
iterator or null if there is no country codes available


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:0006 UTC