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()
NamespaceContract
getName
in interface NamespaceContract
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public String getCode()
Coded
public String getApplicationId()
NamespaceContract
It is a way of assigning the Namespace to a specific rice application or rice ecosystem.
getApplicationId
in interface NamespaceContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public Namespace build()
build
in interface ModelBuilder
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.