public abstract static class BaseAttribute.Builder extends Object implements BaseAttributeContract, ModelBuilder, Serializable
BaseAttribute is responsible for. It is abstract,
and intended to be subclassed by extenders of BaseAttribute.| Modifier | Constructor and Description |
|---|---|
protected |
Builder(BaseAttributeContract attr) |
protected |
Builder(String id,
String attributeDefinitionId,
String value)
Private constructor for creating a builder with all of it's required attributes.
|
| Modifier and Type | Method and Description |
|---|---|
KrmsAttributeDefinition.Builder |
getAttributeDefinition()
Returns a
KrmsAttributeDefinitionContract. |
String |
getAttributeDefinitionId()
Returns the id of the attribute definition.
|
String |
getId()
The unique identifier for an object.
|
String |
getValue()
Returns the value of the attribute
|
void |
setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
Sets the attributeDefinition object related to the attribute.
|
void |
setAttributeDefinitionId(String attributeDefinitionId)
Sets the attibuteDefinitionId value.
|
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setValue(String value)
Sets the value of the attribute
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected Builder(String id, String attributeDefinitionId, String value)
protected Builder(BaseAttributeContract attr)
public void setId(String id)
id - the id value to set, may be null if attribute has not yet
been stored in the repositorypublic void setAttributeDefinitionId(String attributeDefinitionId)
attributeDefinitionId; - must not be null or blankIllegalArgumentException - if the id is null or blankpublic void setValue(String value)
value - a String representing the value of the attributepublic void setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
attributeDefinition - the attribute definitionpublic String getId()
IdentifiablegetId in interface Identifiablepublic String getAttributeDefinitionId()
BaseAttributeContractThe attribute definition contains metadata about the attribute. This is a required field and may not be null or blank. Many attribute instances may share the same attribute definition.
getAttributeDefinitionId in interface BaseAttributeContractpublic String getValue()
BaseAttributeContractgetValue in interface BaseAttributeContractpublic KrmsAttributeDefinition.Builder getAttributeDefinition()
BaseAttributeContractKrmsAttributeDefinitionContract.
This is the object referred to by the attributeDefinitionId. The full object is also kept here for performance purposes. This is because the name of the attribute is referenced often for resolving name / value attribute pairs.
getAttributeDefinition in interface BaseAttributeContractCopyright © 2005–2016 The Kuali Foundation. All rights reserved.