|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.coreservice.api.namespace.Namespace.Builder
public static final class Namespace.Builder
This builder is used to construct instances of Namespace. It enforces the constraints of the NamespaceContract.
| Method Summary | |
|---|---|
Namespace |
build()
Builds an instance of a Namespace based on the current state of the builder. |
static Namespace.Builder |
create(NamespaceContract contract)
Creates a builder by populating it with data from the given NamespaceContract. |
static Namespace.Builder |
create(String code)
Creates a builder from the given namespace code and application id. |
static Namespace.Builder |
create(String code,
String applicationId)
Creates a builder from the given namespace code and application id. |
String |
getApplicationId()
This the id of the application which owns this Namespace. |
String |
getCode()
The code value for this object. |
String |
getName()
This the name for the Namespace. |
String |
getObjectId()
Return the globally unique object id of this object. |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
|
void |
setApplicationId(String applicationId)
Sets the value of the applicationId on this builder to the given value. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Namespace.Builder create(String code)
code - the namespace code to use when constructing this builder
IllegalArgumentException - if the code or applicationId are null or blank
public static Namespace.Builder create(String code,
String applicationId)
code - the namespace code to use when constructing this builderapplicationId - the application id to use when constructing this builder
IllegalArgumentException - if the code or applicationId are null or blankpublic static Namespace.Builder create(NamespaceContract contract)
NamespaceContract.
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 setApplicationId(String applicationId)
applicationId - the application id value to set, must not be null or blank
IllegalArgumentException - if the application id is null or blankpublic void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public String getName()
NamespaceContract
getName in interface NamespaceContractpublic void setName(String name)
public boolean isActive()
Inactivatable
isActive in interface Inactivatablepublic void setActive(boolean active)
public String getCode()
Coded
getCode in interface Codedpublic String getApplicationId()
NamespaceContractIt is a way of assigning the Namespace to a specific rice application or rice ecosystem.
getApplicationId in interface NamespaceContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic String getObjectId()
GloballyUnique
getObjectId in interface GloballyUniquepublic Namespace build()
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||