Package io.dialob.api.questionnaire
Class ModifiableQuestionnaireMetadata
java.lang.Object
io.dialob.api.questionnaire.Questionnaire.Metadata
io.dialob.api.questionnaire.ModifiableQuestionnaireMetadata
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated({"Modifiables.generator","Questionnaire.Metadata"})
@NotThreadSafe
public final class ModifiableQuestionnaireMetadata
extends Questionnaire.Metadata
A modifiable implementation of the
Metadata type.
Use the create() static factory methods to create new instances.
Use the toImmutable() method to convert to canonical immutable instances.
ModifiableQuestionnaireMetadata is not thread-safe
-
Nested Class Summary
Nested classes/interfaces inherited from class io.dialob.api.questionnaire.Questionnaire.Metadata
Questionnaire.Metadata.Reason, Questionnaire.Metadata.Status -
Method Summary
Modifier and TypeMethodDescriptionclear()Clears the object by setting all attributes to their initial values.create()Construct a modifiable instance ofMetadata.booleanThis instance is equal to all instances ofModifiableQuestionnaireMetadatathat have equal attribute values.from(ModifiableQuestionnaireMetadata instance) Fill this modifiable instance with attribute values from the providedQuestionnaire.Metadatainstance.from(Questionnaire.Metadata instance) Fill this modifiable instance with attribute values from the providedQuestionnaire.Metadatainstance.final Datefinal Datefinal StringuserId of one who created questionnairefinal Stringfinal Stringfinal Stringfinal StringgetLabel()final Stringfinal Datefinal Datefinal StringgetOwner()userId of document ownerCompletion reason, null if normally completed.final Stringfinal StringinthashCode()Computes a hash code from attributes:formId,formName,status,formRev,tenantId,created,lastAnswer,opened,completed,label,submitUrl,reason,language,owner,creator,additionalProperties.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.putAdditionalProperties(String key, Object value) Put one entry to theadditionalPropertiesmap.putAllAdditionalProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries to theadditionalPropertiesmap.setAdditionalProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap.setCompleted(Date completed) Assigns a value to thecompletedattribute.setCreated(Date created) Assigns a value to thecreatedattribute.setCreator(String creator) Assigns a value to thecreatorattribute.Assigns a value to theformIdattribute.setFormName(String formName) Assigns a value to theformNameattribute.setFormRev(String formRev) Assigns a value to theformRevattribute.Assigns a value to thelabelattribute.setLanguage(String language) Assigns a value to thelanguageattribute.setLastAnswer(Date lastAnswer) Assigns a value to thelastAnswerattribute.Assigns a value to theopenedattribute.Assigns a value to theownerattribute.Assigns a value to thereasonattribute.Assigns a value to thestatusattribute.setSubmitUrl(String submitUrl) Assigns a value to thesubmitUrlattribute.setTenantId(String tenantId) Assigns a value to thetenantIdattribute.final booleanReturnstrueif the default attributestatusis set.Converts toImmutableQuestionnaireMetadata.toString()Generates a string representation of thisMetadata.Reset an attribute to its initial value.
-
Method Details
-
create
Construct a modifiable instance ofMetadata.- Returns:
- A new modifiable instance
-
getFormId
- Specified by:
getFormIdin classQuestionnaire.Metadata- Returns:
- value of
formIdattribute, may benull
-
getFormName
- Specified by:
getFormNamein classQuestionnaire.Metadata- Returns:
- value of
formNameattribute, may benull
-
getStatus
- Overrides:
getStatusin classQuestionnaire.Metadata- Returns:
- assigned or, otherwise, newly computed, not cached value of
statusattribute
-
getFormRev
- Specified by:
getFormRevin classQuestionnaire.Metadata- Returns:
- value of
formRevattribute, may benull
-
getTenantId
- Specified by:
getTenantIdin classQuestionnaire.Metadata- Returns:
- value of
tenantIdattribute, may benull
-
getCreated
- Specified by:
getCreatedin classQuestionnaire.Metadata- Returns:
- value of
createdattribute, may benull
-
getLastAnswer
- Specified by:
getLastAnswerin classQuestionnaire.Metadata- Returns:
- value of
lastAnswerattribute, may benull
-
getOpened
- Specified by:
getOpenedin classQuestionnaire.Metadata- Returns:
- value of
openedattribute, may benull
-
getCompleted
- Specified by:
getCompletedin classQuestionnaire.Metadata- Returns:
- value of
completedattribute, may benull
-
getLabel
- Specified by:
getLabelin classQuestionnaire.Metadata- Returns:
- value of
labelattribute, may benull
-
getSubmitUrl
- Specified by:
getSubmitUrlin classQuestionnaire.Metadata- Returns:
- value of
submitUrlattribute, may benull
-
getReason
Completion reason, null if normally completed.- Specified by:
getReasonin classQuestionnaire.Metadata
-
getLanguage
- Specified by:
getLanguagein classQuestionnaire.Metadata- Returns:
- value of
languageattribute, may benull
-
getOwner
userId of document owner- Specified by:
getOwnerin classQuestionnaire.Metadata
-
getCreator
userId of one who created questionnaire- Specified by:
getCreatorin classQuestionnaire.Metadata
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin classQuestionnaire.Metadata- Returns:
- value of
additionalPropertiesattribute
-
clear
Clears the object by setting all attributes to their initial values.- Returns:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedQuestionnaire.Metadatainstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedQuestionnaire.Metadatainstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
setFormId
Assigns a value to theformIdattribute.- Parameters:
formId- The value for formId, can benull- Returns:
thisfor use in a chained invocation
-
setFormName
Assigns a value to theformNameattribute.- Parameters:
formName- The value for formName, can benull- Returns:
thisfor use in a chained invocation
-
setStatus
Assigns a value to thestatusattribute.If not set, this attribute will have a default value returned by the initializer of
status.- Parameters:
status- The value for status- Returns:
thisfor use in a chained invocation
-
setFormRev
Assigns a value to theformRevattribute.- Parameters:
formRev- The value for formRev, can benull- Returns:
thisfor use in a chained invocation
-
setTenantId
Assigns a value to thetenantIdattribute.- Parameters:
tenantId- The value for tenantId, can benull- Returns:
thisfor use in a chained invocation
-
setCreated
Assigns a value to thecreatedattribute.- Parameters:
created- The value for created, can benull- Returns:
thisfor use in a chained invocation
-
setLastAnswer
Assigns a value to thelastAnswerattribute.- Parameters:
lastAnswer- The value for lastAnswer, can benull- Returns:
thisfor use in a chained invocation
-
setOpened
Assigns a value to theopenedattribute.- Parameters:
opened- The value for opened, can benull- Returns:
thisfor use in a chained invocation
-
setCompleted
Assigns a value to thecompletedattribute.- Parameters:
completed- The value for completed, can benull- Returns:
thisfor use in a chained invocation
-
setLabel
Assigns a value to thelabelattribute.- Parameters:
label- The value for label, can benull- Returns:
thisfor use in a chained invocation
-
setSubmitUrl
Assigns a value to thesubmitUrlattribute.- Parameters:
submitUrl- The value for submitUrl, can benull- Returns:
thisfor use in a chained invocation
-
setReason
Assigns a value to thereasonattribute.- Parameters:
reason- The value for reason, can benull- Returns:
thisfor use in a chained invocation
-
setLanguage
Assigns a value to thelanguageattribute.- Parameters:
language- The value for language, can benull- Returns:
thisfor use in a chained invocation
-
setOwner
Assigns a value to theownerattribute.- Parameters:
owner- The value for owner, can benull- Returns:
thisfor use in a chained invocation
-
setCreator
Assigns a value to thecreatorattribute.- Parameters:
creator- The value for creator, can benull- Returns:
thisfor use in a chained invocation
-
putAdditionalProperties
Put one entry to theadditionalPropertiesmap.- Parameters:
key- The key in additionalProperties mapvalue- The associated value in the additionalProperties map- Returns:
thisfor use in a chained invocation
-
setAdditionalProperties
public ModifiableQuestionnaireMetadata setAdditionalProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap. Nulls are not permitted as keys or values.- Parameters:
entries- The entries that will be added to the additionalProperties map- Returns:
thisfor use in a chained invocation
-
putAllAdditionalProperties
public ModifiableQuestionnaireMetadata putAllAdditionalProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries to theadditionalPropertiesmap. Nulls are not permitted as keys or values.- Parameters:
entries- to be added to additionalProperties map- Returns:
thisfor use in a chained invocation
-
statusIsSet
public final boolean statusIsSet()Returnstrueif the default attributestatusis set.- Returns:
trueif set
-
unsetStatus
Reset an attribute to its initial value.- Returns:
thisfor use in a chained invocation
-
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutableQuestionnaireMetadata.- Returns:
- An immutable instance of Metadata
-
equals
This instance is equal to all instances ofModifiableQuestionnaireMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:formId,formName,status,formRev,tenantId,created,lastAnswer,opened,completed,label,submitUrl,reason,language,owner,creator,additionalProperties. -
toString
Generates a string representation of thisMetadata. If uninitialized, some attribute values may appear as question marks.
-