|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.shareddata.api.campus.Campus.Builder
public static class Campus.Builder
This builder is used to construct instances of Campus. It enforces the constraints of the CampusContract
.
Method Summary | |
---|---|
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()
This is the campus code for the Campus. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Campus.Builder create(String code)
code
- the campus code
IllegalArgumentException
- if the code is null or blankpublic static Campus.Builder create(CampusContract contract)
CampusContract
.
contract
- the contract from which to populate this builder
public void setCode(String code)
code
- the code value to set, must not be null or blank
IllegalArgumentException
- if the code is null or blankpublic void setName(String name)
public 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()
CampusContract
It is a unique abreviation of a campus.
getCode
in interface CampusContract
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()
isActive
in interface CampusContract
public Long getVersionNumber()
getVersionNumber
in interface org.kuali.rice.core.api.mo.Versioned
public String getObjectId()
getObjectId
in interface org.kuali.rice.core.api.mo.GloballyUnique
public Campus build()
build
in interface org.kuali.rice.core.api.mo.ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |