public static class CampusType.Builder extends Object implements CampusTypeContract, ModelBuilder, Serializable
CampusTypeContract.| Modifier and Type | Method and Description |
|---|---|
CampusType |
build()
Builds an instance of a CampusType based on the current state of the builder.
|
static CampusType.Builder |
create(CampusTypeContract contract)
Creates a builder by populating it with data from the given
CampusTypeContract. |
static CampusType.Builder |
create(String code)
Creates a builder from the given campus type code.
|
String |
getCode() |
String |
getName()
This is the name for the CampusType.
|
String |
getObjectId() |
Long |
getVersionNumber() |
boolean |
isActive() |
void |
setActive(boolean active) |
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 |
setVersionNumber(Long versionNumber) |
public static CampusType.Builder create(String code)
code - the campus type codeIllegalArgumentException - if the code is null or blankpublic static CampusType.Builder create(CampusTypeContract contract)
CampusTypeContract.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 setActive(boolean active)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public String getName()
CampusTypeContractIt is a name a campus type.
getName in interface CampusTypeContractpublic boolean isActive()
isActive in interface Inactivatablepublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic String getObjectId()
getObjectId in interface GloballyUniquepublic CampusType build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.