public static class Campus.Builder extends Object implements CampusContract, ModelBuilder, Serializable
CampusContract.| Modifier and Type | Method and Description |
|---|---|
Campus |
build()
Builds an instance of a Campus based on the current state of the builder.
|
static Campus.Builder |
create(CampusContract contract)
Creates a builder by populating it with data from the given
CampusContract. |
static Campus.Builder |
create(String code)
Creates a builder from the given campus code.
|
CampusType.Builder |
getCampusType()
This is the campus type for the Campus.
|
String |
getCode()
The code value for this object.
|
String |
getName()
This is the name for the Campus.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
String |
getShortName()
This is the short name for the Campus.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setCampusType(CampusType.Builder campusType) |
void |
setCode(String code)
Sets the value of the code on this builder to the given value.
|
void |
setName(String name) |
void |
setObjectId(String objectId) |
void |
setShortName(String shortName) |
void |
setVersionNumber(Long versionNumber) |
public static Campus.Builder create(String code)
code - the campus codeIllegalArgumentException - if the code is null or blankpublic static Campus.Builder create(CampusContract contract)
CampusContract.contract - the contract from which to populate this builderpublic void setCode(String code)
code - the code value to set, must not be null or blankIllegalArgumentException - if the code is null or blankpublic void setShortName(String shortName)
public void setCampusType(CampusType.Builder campusType)
public void setActive(boolean active)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public String getCode()
Codedpublic String getName()
CampusContractIt is a name a campus.
getName in interface CampusContractpublic String getShortName()
CampusContractIt is a shorter name for a campus.
getShortName in interface CampusContractpublic CampusType.Builder getCampusType()
CampusContractIt is a object that defines the type of a campus.
getCampusType in interface CampusContractpublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic Campus build()
build in interface ModelBuilderCopyright © 2005–2015 The Kuali Foundation. All rights reserved.