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 theMetadatatype.Use the
create()static factory methods to create new instances. Use thetoImmutable()method to convert to canonical immutable instances.ModifiableFormMetadata is not thread-safe
- See Also:
ImmutableFormMetadata, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableFormMetadataaddAllLabels(Iterable<String> elements)Adds elements tolabelsset.ModifiableFormMetadataaddAllLanguages(Iterable<String> elements)Adds elements tolanguagesset.ModifiableFormMetadataaddLabels(String element)Adds one element tolabelsset.ModifiableFormMetadataaddLabels(String... elements)Adds elements tolabelsset.ModifiableFormMetadataaddLanguages(String element)Adds one element tolanguagesset.ModifiableFormMetadataaddLanguages(String... elements)Adds elements tolanguagesset.ModifiableFormMetadataclear()Clears the object by setting all attributes to their initial values.static ModifiableFormMetadatacreate()Construct a modifiable instance ofMetadata.booleanequals(Object another)This instance is equal to all instances ofModifiableFormMetadatathat have equal attribute values.ModifiableFormMetadatafrom(Form.Metadata instance)Fill this modifiable instance with attribute values from the providedForm.Metadatainstance.ModifiableFormMetadatafrom(ModifiableFormMetadata instance)Fill this modifiable instance with attribute values from the providedForm.Metadatainstance.Map<String,Object>getAdditionalProperties()DategetCreated()StringgetCreator()StringgetDefaultSubmitUrl()StringgetLabel()Set<String>getLabels()Set<String>getLanguages()DategetLastSaved()StringgetSavedBy()StringgetTenantId()BooleangetValid()inthashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,additionalProperties.booleanisInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.ModifiableFormMetadataputAdditionalProperties(String key, Object value)Put one entry to theadditionalPropertiesmap.ModifiableFormMetadataputAllAdditionalProperties(Map<String,? extends Object> entries)Put all mappings from the specified map as entries to theadditionalPropertiesmap.ModifiableFormMetadatasetAdditionalProperties(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap.ModifiableFormMetadatasetCreated(Date created)Assigns a value to thecreatedattribute.ModifiableFormMetadatasetCreator(String creator)Assigns a value to thecreatorattribute.ModifiableFormMetadatasetDefaultSubmitUrl(String defaultSubmitUrl)Assigns a value to thedefaultSubmitUrlattribute.ModifiableFormMetadatasetLabel(String label)Assigns a value to thelabelattribute.ModifiableFormMetadatasetLabels(Iterable<String> elements)Sets or replaces all elements forlabelsset.ModifiableFormMetadatasetLanguages(Iterable<String> elements)Sets or replaces all elements forlanguagesset.ModifiableFormMetadatasetLastSaved(Date lastSaved)Assigns a value to thelastSavedattribute.ModifiableFormMetadatasetSavedBy(String savedBy)Assigns a value to thesavedByattribute.ModifiableFormMetadatasetTenantId(String tenantId)Assigns a value to thetenantIdattribute.ModifiableFormMetadatasetValid(Boolean valid)Assigns a value to thevalidattribute.ImmutableFormMetadatatoImmutable()Converts toImmutableFormMetadata.StringtoString()Generates a string representation of thisMetadata.
-
-
-
Method Detail
-
create
public static ModifiableFormMetadata create()
Construct a modifiable instance ofMetadata.- Returns:
- A new modifiable instance
-
getLabel
public final String getLabel()
- Specified by:
getLabelin interfaceForm.Metadata- Returns:
- value of
labelattribute, may benull
-
getCreated
public final Date getCreated()
- Specified by:
getCreatedin interfaceForm.Metadata- Returns:
- value of
createdattribute, may benull
-
getLastSaved
public final Date getLastSaved()
- Specified by:
getLastSavedin interfaceForm.Metadata- Returns:
- value of
lastSavedattribute, may benull
-
getValid
public final Boolean getValid()
- Specified by:
getValidin interfaceForm.Metadata- Returns:
- value of
validattribute, may benull
-
getCreator
public final String getCreator()
- Specified by:
getCreatorin interfaceForm.Metadata- Returns:
- value of
creatorattribute, may benull
-
getTenantId
public final String getTenantId()
- Specified by:
getTenantIdin interfaceForm.Metadata- Returns:
- value of
tenantIdattribute, may benull
-
getSavedBy
public final String getSavedBy()
- Specified by:
getSavedByin interfaceForm.Metadata- Returns:
- value of
savedByattribute, may benull
-
getLabels
public final Set<String> getLabels()
- Specified by:
getLabelsin interfaceForm.Metadata- Returns:
- modifiable set
labels
-
getDefaultSubmitUrl
public final String getDefaultSubmitUrl()
- Specified by:
getDefaultSubmitUrlin interfaceForm.Metadata- Returns:
- value of
defaultSubmitUrlattribute, may benull
-
getLanguages
public final Set<String> getLanguages()
- Specified by:
getLanguagesin interfaceForm.Metadata- Returns:
- modifiable set
languages
-
getAdditionalProperties
public final Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceForm.Metadata- Returns:
- value of
additionalPropertiesattribute
-
clear
public ModifiableFormMetadata clear()
Clears the object by setting all attributes to their initial values.- Returns:
thisfor use in a chained invocation
-
from
public ModifiableFormMetadata from(Form.Metadata instance)
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
public ModifiableFormMetadata from(ModifiableFormMetadata instance)
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
public ModifiableFormMetadata setLabel(String label)
Assigns a value to thelabelattribute.- Parameters:
label- The value for label, can benull- Returns:
thisfor use in a chained invocation
-
setCreated
public ModifiableFormMetadata setCreated(Date created)
Assigns a value to thecreatedattribute.- Parameters:
created- The value for created, can benull- Returns:
thisfor use in a chained invocation
-
setLastSaved
public ModifiableFormMetadata setLastSaved(Date lastSaved)
Assigns a value to thelastSavedattribute.- Parameters:
lastSaved- The value for lastSaved, can benull- Returns:
thisfor use in a chained invocation
-
setValid
public ModifiableFormMetadata setValid(Boolean valid)
Assigns a value to thevalidattribute.- Parameters:
valid- The value for valid, can benull- Returns:
thisfor use in a chained invocation
-
setCreator
public ModifiableFormMetadata setCreator(String creator)
Assigns a value to thecreatorattribute.- Parameters:
creator- The value for creator, can benull- Returns:
thisfor use in a chained invocation
-
setTenantId
public ModifiableFormMetadata setTenantId(String tenantId)
Assigns a value to thetenantIdattribute.- Parameters:
tenantId- The value for tenantId, can benull- Returns:
thisfor use in a chained invocation
-
setSavedBy
public ModifiableFormMetadata setSavedBy(String savedBy)
Assigns a value to thesavedByattribute.- Parameters:
savedBy- The value for savedBy, can benull- Returns:
thisfor use in a chained invocation
-
addLabels
public ModifiableFormMetadata addLabels(String element)
Adds one element tolabelsset.- Parameters:
element- The labels element- Returns:
thisfor use in a chained invocation
-
addLabels
public final ModifiableFormMetadata addLabels(String... elements)
Adds elements tolabelsset.- Parameters:
elements- An array of labels elements- Returns:
thisfor use in a chained invocation
-
setLabels
public ModifiableFormMetadata setLabels(Iterable<String> elements)
Sets or replaces all elements forlabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisfor use in a chained invocation
-
addAllLabels
public ModifiableFormMetadata addAllLabels(Iterable<String> elements)
Adds elements tolabelsset.- Parameters:
elements- An iterable of labels elements- Returns:
thisfor use in a chained invocation
-
setDefaultSubmitUrl
public ModifiableFormMetadata setDefaultSubmitUrl(String defaultSubmitUrl)
Assigns a value to thedefaultSubmitUrlattribute.- Parameters:
defaultSubmitUrl- The value for defaultSubmitUrl, can benull- Returns:
thisfor use in a chained invocation
-
addLanguages
public ModifiableFormMetadata addLanguages(String element)
Adds one element tolanguagesset.- Parameters:
element- The languages element- Returns:
thisfor use in a chained invocation
-
addLanguages
public final ModifiableFormMetadata addLanguages(String... elements)
Adds elements tolanguagesset.- Parameters:
elements- An array of languages elements- Returns:
thisfor use in a chained invocation
-
setLanguages
public ModifiableFormMetadata setLanguages(Iterable<String> elements)
Sets or replaces all elements forlanguagesset.- Parameters:
elements- An iterable of languages elements- Returns:
thisfor use in a chained invocation
-
addAllLanguages
public ModifiableFormMetadata addAllLanguages(Iterable<String> elements)
Adds elements tolanguagesset.- Parameters:
elements- An iterable of languages elements- Returns:
thisfor use in a chained invocation
-
putAdditionalProperties
public ModifiableFormMetadata putAdditionalProperties(String key, Object value)
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 ModifiableFormMetadata 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 ModifiableFormMetadata 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
-
isInitialized
public final boolean isInitialized()
Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
public final ImmutableFormMetadata toImmutable()
Converts toImmutableFormMetadata.- Returns:
- An immutable instance of Metadata
-
equals
public boolean equals(@Nullable Object another)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.
-
-