|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.coreservice.api.component.Component.Builder
public static final class Component.Builder
This builder is used to construct instances of Component. It enforces the constraints of the ComponentContract
.
Method Summary | |
---|---|
Component |
build()
Builds an instance of a Component based on the current state of the builder. |
static Component.Builder |
create(ComponentContract contract)
Creates a builder by populating it with data from the given ComponentContract . |
static Component.Builder |
create(String namespaceCode,
String code,
String name)
Constructs a Namespace builder given the namcespace code, component code, and name which are all required. |
String |
getCode()
The code value for this object. |
String |
getComponentSetId()
Returns the id of the component set this component belongs to if this component was published as part of such a component set. |
String |
getName()
This is the name value for the component. |
String |
getNamespaceCode()
This is the namespace for the component. |
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 |
setCode(String code)
Sets the value of the component code on this builder to the given value. |
void |
setComponentSetId(String componentSetId)
|
void |
setName(String name)
Sets the value of the component name on this builder to the given value. |
void |
setNamespaceCode(String namespaceCode)
Sets the value of the namespace code on this builder to the given value. |
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 Component.Builder create(String namespaceCode, String code, String name)
namespaceCode
- the namespace code to use when constructing this buildercode
- the component code to use when constructing this buildername
- the component name to use when constructing this builder
IllegalArgumentException
- if any of the parameters are null or blankpublic static Component.Builder create(ComponentContract contract)
ComponentContract
.
contract
- the contract from which to populate this builder
public void setNamespaceCode(String namespaceCode)
namespaceCode
- the namespace code value to set, must not be null or blank
IllegalArgumentException
- if the given namespace code is null or blankpublic void setCode(String code)
code
- the component code value to set, must not be null or blank
IllegalArgumentException
- if the given component code is null or blankpublic void setName(String name)
name
- the component name value to set, must not be null or blank
IllegalArgumentException
- if the given component name is null or blankpublic boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public String getNamespaceCode()
ComponentContract
It is a way of assigning the component to a logical grouping within a rice application or rice ecosystem.
getNamespaceCode
in interface ComponentContract
public String getCode()
Coded
getCode
in interface Coded
public String getName()
ComponentContract
getName
in interface ComponentContract
public String getComponentSetId()
ComponentContract
getComponentSetId
in interface ComponentContract
public void setComponentSetId(String componentSetId)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
public Component build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |