public static final class Component.Builder extends Object implements ComponentContract, ModelBuilder, Serializable
ComponentContract.| Modifier and Type | Method and Description |
|---|---|
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) |
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 builderIllegalArgumentException - if any of the parameters are null or blankpublic static Component.Builder create(ComponentContract contract)
ComponentContract.contract - the contract from which to populate this builderpublic void setNamespaceCode(String namespaceCode)
namespaceCode - the namespace code value to set, must not be null or blankIllegalArgumentException - 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 blankIllegalArgumentException - 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 blankIllegalArgumentException - if the given component name is null or blankpublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public String getNamespaceCode()
ComponentContractIt is a way of assigning the component to a logical grouping within a rice application or rice ecosystem.
getNamespaceCode in interface ComponentContractpublic String getCode()
Codedpublic String getName()
ComponentContractgetName in interface ComponentContractpublic String getComponentSetId()
ComponentContractgetComponentSetId in interface ComponentContractpublic void setComponentSetId(String componentSetId)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic void setObjectId(String objectId)
public Component build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.