public static StaticProperty integerFreeTextProperty(String string, String string2, String string3, PropertyValueSpecification propertyValueSpecification) { FreeTextStaticProperty fsp = integerFreeTextProperty(string, string2, string); fsp.setValueSpecification(propertyValueSpecification); return fsp; }
public BU requiredIntegerParameter(String internalId, String label, String description, Integer min, Integer max, Integer step) { FreeTextStaticProperty fsp = prepareFreeTextStaticProperty(internalId, label, description, XSD._integer.toString()); PropertyValueSpecification valueSpecification = new PropertyValueSpecification(min, max, step); fsp.setValueSpecification(valueSpecification); this.staticProperties.add(fsp); return me(); }
/** * Defines a number-based configuration parameter of type float provided by pipeline developers at pipeline * authoring time. In addition, an allowed value range of the expected input can be assigned. * @param label The {@link org.streampipes.sdk.helpers.Label} that describes why this parameter is needed in a * user-friendly manner. * @param min The minimum value of the allowed value range. * @param max The maximum value of the allowed value range. * @param step The granularity * @return this */ public BU requiredFloatParameter(String internalId, String label, String description, Float min, Float max, Float step) { FreeTextStaticProperty fsp = prepareFreeTextStaticProperty(internalId, label, description, XSD._double.toString()); PropertyValueSpecification valueSpecification = new PropertyValueSpecification(min, max, step); fsp.setValueSpecification(valueSpecification); this.staticProperties.add(fsp); return me(); }