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()
Coded
public String getName()
CampusContract
It is a name a campus.
getName
in interface CampusContract
public String getShortName()
CampusContract
It is a shorter name for a campus.
getShortName
in interface CampusContract
public CampusType.Builder getCampusType()
CampusContract
It is a object that defines the type of a campus.
getCampusType
in interface CampusContract
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public Campus build()
build
in interface ModelBuilder
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.