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() |
String |
getName()
This is the name for the Campus.
|
String |
getObjectId() |
String |
getShortName()
This is the short name for the Campus.
|
Long |
getVersionNumber() |
boolean |
isActive() |
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 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()
isActive in interface Inactivatablepublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic String getObjectId()
getObjectId in interface GloballyUniquepublic Campus build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.