public static final class Namespace.Builder extends Object implements NamespaceContract, ModelBuilder, Serializable
NamespaceContract.| Modifier and Type | Method and Description |
|---|---|
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) |
public static Namespace.Builder create(String code)
code - the namespace code to use when constructing this builderIllegalArgumentException - if the code or applicationId are null or blankpublic 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 builderIllegalArgumentException - if the code or applicationId are null or blankpublic static Namespace.Builder create(NamespaceContract contract)
NamespaceContract.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 setApplicationId(String applicationId)
applicationId - the application id value to set, must not be null or blankIllegalArgumentException - if the application id is null or blankpublic void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
public String getName()
NamespaceContractgetName in interface NamespaceContractpublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public String getCode()
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()
VersionedgetVersionNumber in interface Versionedpublic String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic Namespace build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.