I would like to set a default value for a property with type PropertyType.PROPERTY_SET and multiple fields. How do i accomplish that? The default value field is only a String.
PropertyDefinition.builder(LicenseCheckPropertyKeys.LICENSE_SET)
.category(LicenseCheckPropertyKeys.CATEGORY)
.type(PropertyType.PROPERTY_SET)
.name("Licenses")
.description("List of known licenses with allowed status")
.fields(
PropertyFieldDefinition.build(License.FIELD_ID)
.name("Identifier")
.description(LICENSE_ID_DESCRIPTION)
.type(PropertyType.STRING).build(),
PropertyFieldDefinition.build(License.FIELD_NAME)
.name("Name")
.description("The name of the license (e.g. GNU General Public License v3.0 only).")
.type(PropertyType.STRING).build(),
PropertyFieldDefinition.build(License.FIELD_ALLOWED)
.name("Allowed")
.description("If the license is allowed to use")
.type(PropertyType.BOOLEAN).build()
)
.index(3)
.defaultValue("") // <-- what to write here?
.build(),