org.kuali.student.contract.model.test.source
Class StateInfo.Builder
java.lang.Object
org.kuali.student.contract.model.test.source.HasAttributesInfo.Builder
org.kuali.student.contract.model.test.source.StateInfo.Builder
- All Implemented Interfaces:
- HasAttributes, HasEffectiveDates, HasKey, HasPrimaryKey, ModelBuilder<StateInfo>, State
- Enclosing class:
- StateInfo
public static class StateInfo.Builder
- extends HasAttributesInfo.Builder
- implements ModelBuilder<StateInfo>, State
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
private String key
name
private String name
descr
private String descr
effectiveDate
private Date effectiveDate
expirationDate
private Date expirationDate
StateInfo.Builder
public StateInfo.Builder()
StateInfo.Builder
public StateInfo.Builder(State stateInfo)
build
public StateInfo build()
- Specified by:
build
in interface ModelBuilder<StateInfo>
getKey
public String getKey()
- Description copied from interface:
HasKey
- Unique key to this object. Unlike an Id this key can be explicitly set by the
application and is intended to be "somewhat" readable by a human.
A Key:
- A Key is used when the actual value is important
- A Key value might be kuali.org.School
- A Key on occasion may be used or seen by an end user.
- Keys are assumed to have the same values in different KS implementations
- Key values are defined in configuration
- Key values have significance in that they are referenced in Configuration
- Key values are expected to be occasionally used in application code
- Specified by:
getKey
in interface HasKey
setKey
public void setKey(String key)
getName
public String getName()
- Description copied from interface:
State
- Name: Name
Friendly name of the State
- Specified by:
getName
in interface State
setName
public void setName(String name)
getDescr
public String getDescr()
- Description copied from interface:
State
- Name: Description
Narrative description of the State
- Specified by:
getDescr
in interface State
setDescr
public void setDescr(String descr)
getEffectiveDate
public Date getEffectiveDate()
- Description copied from interface:
HasEffectiveDates
- Name:Effective Date
Date/time this object became effective. Must be less than or equal to the
expirationDate specified.
- Specified by:
getEffectiveDate
in interface HasEffectiveDates
setEffectiveDate
public void setEffectiveDate(Date effectiveDate)
getExpirationDate
public Date getExpirationDate()
- Description copied from interface:
HasEffectiveDates
- Name: Expiration Date
Date/time this relationship is no longer effective. Must be greater than or
equal to the effectiveDate specified.
- Specified by:
getExpirationDate
in interface HasEffectiveDates
setExpirationDate
public void setExpirationDate(Date expirationDate)
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.