|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ModelBuilder
public String getId()
Identifiable
getId
in interface Identifiable
public String getDocumentId()
getDocumentId
in interface NoteContract
public String getAuthorPrincipalId()
getAuthorPrincipalId
in interface NoteContract
public org.joda.time.DateTime getCreateDate()
getCreateDate
in interface NoteContract
public String getText()
getText
in interface NoteContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public 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 |