Package io.dialob.api.form
Class ModifiableFormMetadata
java.lang.Object
io.dialob.api.form.ModifiableFormMetadata
- All Implemented Interfaces:
Form.Metadata,Serializable
@ParametersAreNonnullByDefault
@Generated({"Modifiables.generator","Form.Metadata"})
@NotThreadSafe
public final class ModifiableFormMetadata
extends Object
implements Form.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.
ModifiableFormMetadata is not thread-safe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels(Iterable<String> elements) Adds elements tolabelsset.addAllLanguages(Iterable<String> elements) Adds elements tolanguagesset.Adds one element tolabelsset.final ModifiableFormMetadataAdds elements tolabelsset.addLanguages(String element) Adds one element tolanguagesset.final ModifiableFormMetadataaddLanguages(String... elements) Adds elements tolanguagesset.clear()Clears the object by setting all attributes to their initial values.static ModifiableFormMetadatacreate()Construct a modifiable instance ofMetadata.booleanThis instance is equal to all instances ofModifiableFormMetadatathat have equal attribute values.from(Form.Metadata instance) Fill this modifiable instance with attribute values from the providedForm.Metadatainstance.from(ModifiableFormMetadata instance) Fill this modifiable instance with attribute values from the providedForm.Metadatainstance.final Datefinal Stringfinal Stringfinal StringgetLabel()final Datefinal Stringfinal Stringfinal BooleangetValid()inthashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,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.setCreated(Date created) Assigns a value to thecreatedattribute.setCreator(String creator) Assigns a value to thecreatorattribute.setDefaultSubmitUrl(String defaultSubmitUrl) Assigns a value to thedefaultSubmitUrlattribute.Assigns a value to thelabelattribute.Sets or replaces all elements forlabelsset.setLanguages(Iterable<String> elements) Sets or replaces all elements forlanguagesset.setLastSaved(Date lastSaved) Assigns a value to thelastSavedattribute.setSavedBy(String savedBy) Assigns a value to thesavedByattribute.setTenantId(String tenantId) Assigns a value to thetenantIdattribute.Assigns a value to thevalidattribute.final ImmutableFormMetadataConverts toImmutableFormMetadata.toString()Generates a string representation of thisMetadata.
-
Method Details
-
create
Construct a modifiable instance ofMetadata.- Returns:
- A new modifiable instance
-
getLabel
- Specified by:
getLabelin interfaceForm.Metadata- Returns:
- value of
labelattribute, may benull
-
getCreated
- Specified by:
getCreatedin interfaceForm.Metadata- Returns:
- value of
createdattribute, may benull
-
getLastSaved
- Specified by:
getLastSavedin interfaceForm.Metadata- Returns:
- value of
lastSavedattribute, may benull
-
getValid
- Specified by:
getValidin interfaceForm.Metadata- Returns:
- value of
validattribute, may benull
-
getCreator
- Specified by:
getCreatorin interfaceForm.Metadata- Returns:
- value of
creatorattribute, may benull
-
getTenantId
- Specified by:
getTenantIdin interfaceForm.Metadata- Returns:
- value of
tenantIdattribute, may benull
-
getSavedBy
- Specified by:
getSavedByin interfaceForm.Metadata- Returns:
- value of
savedByattribute, may benull
-
getLabels
- Specified by:
getLabelsin interfaceForm.Metadata- Returns:
- modifiable set
labels
-
getDefaultSubmitUrl
- Specified by:
getDefaultSubmitUrlin interfaceForm.Metadata- Returns:
- value of
defaultSubmitUrlattribute, may benull
-
getLanguages
- Specified by:
getLanguagesin interfaceForm.Metadata- Returns:
- modifiable set
languages
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceForm.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 providedForm.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 providedForm.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
-
setLabel
Assigns a value to thelabelattribute.- Parameters:
label- The value for label, 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
-
setLastSaved
Assigns a value to thelastSavedattribute.- Parameters:
lastSaved- The value for lastSaved, can benull- Returns:
thisfor use in a chained invocation
-
setValid
Assigns a value to thevalidattribute.- Parameters:
valid- The value for valid, 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
-
setTenantId
Assigns a value to thetenantIdattribute.- Parameters:
tenantId- The value for tenantId, can benull- Returns:
thisfor use in a chained invocation
-
setSavedBy
Assigns a value to thesavedByattribute.- Parameters:
savedBy- The value for savedBy, can benull- Returns:
thisfor use in a chained invocation
-
addLabels
Adds one element tolabelsset.- Parameters:
element- The labels element- Returns:
thisfor use in a chained invocation
-
addLabels
Adds elements tolabelsset.- Parameters:
elements- An array of labels elements- Returns:
thisfor use in a chained invocation
-
setLabels
Sets or replaces all elements forlabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisfor use in a chained invocation
-
addAllLabels
Adds elements tolabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisfor use in a chained invocation
-
setDefaultSubmitUrl
Assigns a value to thedefaultSubmitUrlattribute.- Parameters:
defaultSubmitUrl- The value for defaultSubmitUrl, can benull- Returns:
thisfor use in a chained invocation
-
addLanguages
Adds one element tolanguagesset.- Parameters:
element- The languages element- Returns:
thisfor use in a chained invocation
-
addLanguages
Adds elements tolanguagesset.- Parameters:
elements- An array of languages elements- Returns:
thisfor use in a chained invocation
-
setLanguages
Sets or replaces all elements forlanguagesset.- Parameters:
elements- An iterable of languages elements- Returns:
thisfor use in a chained invocation
-
addAllLanguages
Adds elements tolanguagesset.- Parameters:
elements- An iterable of languages elements- 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
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
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
-
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutableFormMetadata.- Returns:
- An immutable instance of Metadata
-
equals
This instance is equal to all instances ofModifiableFormMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,additionalProperties. -
toString
Generates a string representation of thisMetadata. If uninitialized, some attribute values may appear as question marks.
-