|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.location.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()
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)
|
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()
Coded
getCode
in interface 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |