public static class Country.Builder extends Object implements CountryContract, ModelBuilder, Serializable
| Modifier and Type | Method and Description |
|---|---|
Country |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Country.Builder |
create(CountryContract cc) |
static Country.Builder |
create(String code,
String name) |
static Country.Builder |
create(String code,
String alternatePostalCode,
String name,
boolean restricted,
boolean active) |
String |
getAlternateCode()
An alternative country code to represent a country.
|
String |
getCode()
The code value for this object.
|
String |
getName()
A full, familiar, name of a country.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
boolean |
isRestricted()
Value representing whether a country is restricted.
|
void |
setActive(boolean active)
Sets the active property.
|
void |
setAlternateCode(String alternatePostalCode)
Sets the optional alternatePostalCode property
|
void |
setCode(String code)
Sets code property.
|
void |
setName(String name)
Sets the optional name property.
|
void |
setRestricted(boolean restricted)
Sets the restrictedProperty
|
void |
setVersionNumber(Long versionNumber)
Sets the versionNumber property.
|
public static Country.Builder create(String code, String name)
public static Country.Builder create(String code, String alternatePostalCode, String name, boolean restricted, boolean active)
public static Country.Builder create(CountryContract cc)
public Country build()
ModelBuilderbuild in interface ModelBuilderpublic void setCode(String code)
code - required to be not null and not empty.public String getCode()
CountryContractThis property is required to exist.
getCode in interface CodedgetCode in interface CountryContractpublic void setAlternateCode(String alternatePostalCode)
alternatePostalCode - public String getAlternateCode()
CountryContractThis property is optional
getAlternateCode in interface CountryContractpublic String getName()
CountryContractThis property is optional
getName in interface CountryContractpublic void setActive(boolean active)
active - public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setVersionNumber(Long versionNumber)
versionNumber - public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setRestricted(boolean restricted)
restricted - public boolean isRestricted()
CountryContractThe meaning of restricted for a country varies depending upon the implementer - for instance if a country may not be used in the address of a Vendor.
The default value of this property is false.
isRestricted in interface CountryContractCopyright © 2005–2015 The Kuali Foundation. All rights reserved.