|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.api.note.Note.Builder
public static final class Note.Builder
A builder which can be used to construct Note instances. Enforces the constraints of the NoteContract.
| Method Summary | |
|---|---|
Note |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
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()
The unique identifier for an object. |
String |
getText()
|
Long |
getVersionNumber()
Returns the version number for this object. |
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 |
|---|
public static Note.Builder create(String documentId,
String authorPrincipalId)
public static Note.Builder create(NoteContract contract)
public Note build()
ModelBuilder
build in interface ModelBuilderpublic String getId()
Identifiable
getId in interface Identifiablepublic String getDocumentId()
getDocumentId in interface NoteContractpublic String getAuthorPrincipalId()
getAuthorPrincipalId in interface NoteContractpublic org.joda.time.DateTime getCreateDate()
getCreateDate in interface NoteContractpublic String getText()
getText in interface NoteContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic void setId(String id)
public void setDocumentId(String documentId)
public void setAuthorPrincipalId(String authorPrincipalId)
public void setCreateDate(org.joda.time.DateTime createDate)
public void setText(String text)
public void setVersionNumber(Long versionNumber)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||