public static class KrmsAttributeDefinition.Builder extends Object implements KrmsAttributeDefinitionContract, ModelBuilder, Serializable
KrmsAttributeDefinitionContract.| Modifier and Type | Method and Description |
|---|---|
KrmsAttributeDefinition |
build()
Builds an instance of a CampusType based on the current state of the builder.
|
KrmsAttributeDefinition.Builder |
componentName(String componentName)
fluent interface that sets the componentName of the KrmsAttributeDefinition.
|
static KrmsAttributeDefinition.Builder |
create(KrmsAttributeDefinitionContract contract)
Creates a builder by populating it with data from the given
KrmsAttributeDefinitionContract. |
static KrmsAttributeDefinition.Builder |
create(String id,
String name,
String namespace)
Creates a builder from the given parameters.
|
String |
getComponentName()
Returns the name of the component used to display the attribute.
|
String |
getDescription()
Returns the description of the attribute.
|
String |
getId() |
String |
getLabel()
Returns the label of this attribute definition.
|
String |
getName()
Returns the name of this attribute definition.
|
String |
getNamespace()
Returns the namespace of this attribute definition.
|
Long |
getVersionNumber() |
boolean |
isActive() |
KrmsAttributeDefinition.Builder |
label(String label)
fluent interface that sets the label of the KrmsAttributeDefinition.
|
void |
setActive(boolean active)
sets the active indicator value
|
void |
setComponentName(String componentName)
sets the name of the component used to display the attribute
|
void |
setDescription(String description)
sets the description of the attribute
|
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setLabel(String label)
sets the label to be displayed with the attribute.
|
void |
setName(String name)
sets the name of the attribute.
|
void |
setNamespace(String namespace)
sets the namespace of the attribute.
|
void |
setVersionNumber(Long versionNumber)
Sets the version number for this object.
|
public KrmsAttributeDefinition.Builder label(String label)
label - the label used when the attribute is displayed; may be null or blankpublic KrmsAttributeDefinition.Builder componentName(String componentName)
componentName - the name of the component used to display the attribute;
can be null or blankpublic static KrmsAttributeDefinition.Builder create(String id, String name, String namespace)
id - the KrmsAttributeDefinition idname - the KrmsAttributeDefinition namenamespace - the KrmsAttributeDefinition namespaceIllegalArgumentException - if either the id, name or namespace is null or blankpublic static KrmsAttributeDefinition.Builder create(KrmsAttributeDefinitionContract contract)
KrmsAttributeDefinitionContract.contract - the contract from which to populate this builderIllegalArgumentException - if the contract is null or blankpublic void setId(String id)
id - the id value to set, must be null or non-blankIllegalArgumentException - if the id is non-null and blankpublic void setName(String name)
name - the name of the attribute;IllegalArgumentException - if the name is non-null and blankpublic void setNamespace(String namespace)
namespace - the namespace of the attribute;IllegalArgumentException - if the namespace is non-null and blankpublic void setLabel(String label)
label - string to display as label; May be null or emptypublic void setDescription(String description)
description - string; Optional, may be null or emptypublic void setComponentName(String componentName)
componentName; - May be null or emptypublic void setActive(boolean active)
active - boolean value to setpublic void setVersionNumber(Long versionNumber)
versionNumber - the version number, or null if one has not been assigned yet.public String getId()
getId in interface Identifiablepublic String getName()
KrmsAttributeDefinitionContractAll attribute definitions have a name and namespace, so this value can not be null or blank. The combination of name and namespace must be unique within the entire KRMS system.
getName in interface KrmsAttributeDefinitionContractpublic String getNamespace()
KrmsAttributeDefinitionContractThe namespace provides scope of the the attribute definition. All attribute definition have a name and namespace, so this field may not be null or blank. The combination of name and namespace must be unique within the entire KRMS system.
getNamespace in interface KrmsAttributeDefinitionContractpublic String getComponentName()
KrmsAttributeDefinitionContractgetComponentName in interface KrmsAttributeDefinitionContractpublic String getLabel()
KrmsAttributeDefinitionContractThis is an optional field and may be null or blank.
getLabel in interface KrmsAttributeDefinitionContractpublic String getDescription()
KrmsAttributeDefinitionContractThis is an option field and may be null or blank.
getDescription in interface KrmsAttributeDefinitionContractpublic boolean isActive()
isActive in interface Inactivatablepublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic KrmsAttributeDefinition build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.