/** * Builds the descriptor. May throw IllegalArgumentException. * * @return the descriptor if it can be built */ public PropertyDescriptor<?> build() { PropertyDescriptorExternalBuilder<?> externalBuilder = getTypeId().getFactory(); Map<PropertyDescriptorField, String> values = new HashMap<>(); values.put(PropertyDescriptorField.NAME, getName()); values.put(PropertyDescriptorField.DEFAULT_VALUE, getValue()); values.put(PropertyDescriptorField.DESCRIPTION, getDescription()); values.put(PropertyDescriptorField.MIN, "-2000000"); values.put(PropertyDescriptorField.MAX, "+2000000"); return externalBuilder.build(values); }