org.kuali.rice.krms.api.repository
Class BaseAttribute.Builder

java.lang.Object
  extended by org.kuali.rice.krms.api.repository.BaseAttribute.Builder
All Implemented Interfaces:
Serializable, Identifiable, ModelBuilder, BaseAttributeContract
Enclosing class:
BaseAttribute

public abstract static class BaseAttribute.Builder
extends Object
implements BaseAttributeContract, ModelBuilder, Serializable

This builder is used to construct the fields that BaseAttribute is responsible for. It is abstract, and intended to be subclassed by extenders of BaseAttribute.

See Also:
Serialized Form

Constructor Summary
protected BaseAttribute.Builder(BaseAttributeContract attr)
           
protected BaseAttribute.Builder(String id, String attributeDefinitionId, String value)
          Private constructor for creating a builder with all of it's required attributes.
 
Method Summary
 KrmsAttributeDefinition.Builder getAttributeDefinition()
          This is the definition of the attribute
 String getAttributeDefinitionId()
          This is the id of the definition of the attribute.
 String getId()
          The unique identifier for an object.
 String getValue()
          This is the value of the attribute
 void setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
           
 void setAttributeDefinitionId(String attributeDefinitionId)
           
 void setId(String id)
          Sets the value of the id on this builder to the given value.
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelBuilder
build
 

Constructor Detail

BaseAttribute.Builder

protected BaseAttribute.Builder(String id,
                                String attributeDefinitionId,
                                String value)
Private constructor for creating a builder with all of it's required attributes.


BaseAttribute.Builder

protected BaseAttribute.Builder(BaseAttributeContract attr)
Method Detail

setId

public void setId(String id)
Sets the value of the id on this builder to the given value.

Parameters:
id - the id value to set, must not be null or blank
Throws:
IllegalArgumentException - if the id is null or blank

setAttributeDefinitionId

public void setAttributeDefinitionId(String attributeDefinitionId)

setValue

public void setValue(String value)

setAttributeDefinition

public void setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

getAttributeDefinitionId

public String getAttributeDefinitionId()
Description copied from interface: BaseAttributeContract
This is the id of the definition of the attribute.

It identifies the attribute definition

Specified by:
getAttributeDefinitionId in interface BaseAttributeContract
Returns:
the attribute definition id.

getValue

public String getValue()
Description copied from interface: BaseAttributeContract
This is the value of the attribute

Specified by:
getValue in interface BaseAttributeContract
Returns:
the value of the attribute

getAttributeDefinition

public KrmsAttributeDefinition.Builder getAttributeDefinition()
Description copied from interface: BaseAttributeContract
This is the definition of the attribute

Specified by:
getAttributeDefinition in interface BaseAttributeContract


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.