public static final class EntityCitizenship.Builder extends Object implements Serializable, ModelBuilder, EntityCitizenshipContract
EntityCitizenship
instances. Enforces the constraints of the EntityCitizenshipContract
.Modifier and Type | Method and Description |
---|---|
EntityCitizenship |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static EntityCitizenship.Builder |
create() |
static EntityCitizenship.Builder |
create(EntityCitizenshipContract contract) |
String |
getCountryCode()
Gets this
EntityCitizenshipContract 's country code. |
org.joda.time.DateTime |
getEndDate()
Gets this
EntityCitizenshipContract 's end date. |
String |
getEntityId()
Gets this id of the parent identity object.
|
String |
getId()
The unique identifier for an object.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
org.joda.time.DateTime |
getStartDate()
Gets this
EntityCitizenshipContract 's start date. |
CodedAttribute.Builder |
getStatus()
Gets this
EntityCitizenshipContract 's citizenship status object. |
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setCountryCode(String countryCode) |
void |
setEndDate(org.joda.time.DateTime endDate) |
void |
setEntityId(String entityId) |
void |
setId(String id) |
void |
setObjectId(String objectId) |
void |
setStartDate(org.joda.time.DateTime startDate) |
void |
setStatus(CodedAttribute.Builder status) |
void |
setVersionNumber(Long versionNumber) |
public static EntityCitizenship.Builder create()
public static EntityCitizenship.Builder create(EntityCitizenshipContract contract)
public EntityCitizenship build()
ModelBuilder
build
in interface ModelBuilder
public String getEntityId()
EntityCitizenshipContract
getEntityId
in interface EntityCitizenshipContract
EntityCitizenshipContract
public CodedAttribute.Builder getStatus()
EntityCitizenshipContract
EntityCitizenshipContract
's citizenship status object.getStatus
in interface EntityCitizenshipContract
EntityCitizenshipContract
, or null if none has been assigned.public String getCountryCode()
EntityCitizenshipContract
EntityCitizenshipContract
's country code.getCountryCode
in interface EntityCitizenshipContract
EntityCitizenshipContract
, or null if none has been assigned.public org.joda.time.DateTime getStartDate()
EntityCitizenshipContract
EntityCitizenshipContract
's start date.getStartDate
in interface EntityCitizenshipContract
EntityCitizenshipContract
, or null if none has been assigned.public org.joda.time.DateTime getEndDate()
EntityCitizenshipContract
EntityCitizenshipContract
's end date.getEndDate
in interface EntityCitizenshipContract
EntityCitizenshipContract
, or null if none has been assigned.public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public String getId()
Identifiable
getId
in interface Identifiable
public void setEntityId(String entityId)
public void setStatus(CodedAttribute.Builder status)
public void setCountryCode(String countryCode)
public void setStartDate(org.joda.time.DateTime startDate)
public void setEndDate(org.joda.time.DateTime endDate)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public void setActive(boolean active)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.