org.kuali.rice.kew.api.note
Class Note.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.note.Note.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, NoteContract
Enclosing class:
Note

public static final class Note.Builder
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, NoteContract

A builder which can be used to construct Note instances. Enforces the constraints of the NoteContract.

See Also:
Serialized Form

Method Summary
 Note build()
           
static Note.Builder create(NoteContract contract)
           
static Note.Builder create(String documentId, String authorPrincipalId)
           
 String getAuthorPrincipalId()
           
 org.joda.time.DateTime getCreateDate()
           
 String getDocumentId()
           
 String getId()
           
 String getText()
           
 Long getVersionNumber()
           
 void setAuthorPrincipalId(String authorPrincipalId)
           
 void setCreateDate(org.joda.time.DateTime createDate)
           
 void setDocumentId(String documentId)
           
 void setId(String id)
           
 void setText(String text)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Note.Builder create(String documentId,
                                  String authorPrincipalId)

create

public static Note.Builder create(NoteContract contract)

build

public Note build()
Specified by:
build in interface org.kuali.rice.core.api.mo.ModelBuilder

getId

public String getId()
Specified by:
getId in interface org.kuali.rice.core.api.mo.common.Identifiable

getDocumentId

public String getDocumentId()
Specified by:
getDocumentId in interface NoteContract

getAuthorPrincipalId

public String getAuthorPrincipalId()
Specified by:
getAuthorPrincipalId in interface NoteContract

getCreateDate

public org.joda.time.DateTime getCreateDate()
Specified by:
getCreateDate in interface NoteContract

getText

public String getText()
Specified by:
getText in interface NoteContract

getVersionNumber

public Long getVersionNumber()
Specified by:
getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned

setId

public void setId(String id)

setDocumentId

public void setDocumentId(String documentId)

setAuthorPrincipalId

public void setAuthorPrincipalId(String authorPrincipalId)

setCreateDate

public void setCreateDate(org.joda.time.DateTime createDate)

setText

public void setText(String text)

setVersionNumber

public void setVersionNumber(Long versionNumber)


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