public static final class Note.Builder extends Object implements Serializable, ModelBuilder, NoteContract
Note instances. Enforces the constraints of the NoteContract.| Modifier and Type | Method and Description |
|---|---|
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) |
public static Note.Builder create(String documentId, String authorPrincipalId)
public static Note.Builder create(NoteContract contract)
public Note build()
ModelBuilderbuild in interface ModelBuilderpublic String getId()
IdentifiablegetId 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()
VersionedgetVersionNumber in interface Versionedpublic void setDocumentId(String documentId)
public void setAuthorPrincipalId(String authorPrincipalId)
public void setCreateDate(org.joda.time.DateTime createDate)
public void setVersionNumber(Long versionNumber)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.