public PropertyValueSpecification(PropertyValueSpecification other) { super(); this.minValue = other.getMinValue(); this.maxValue = other.getMaxValue(); this.step = other.getStep(); }
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(); }
public FreeTextStaticProperty(FreeTextStaticProperty other) { super(other); this.requiredDomainProperty = other.getRequiredDomainProperty(); this.requiredDatatype = other.getRequiredDatatype(); if (other.getValueSpecification() != null) this.valueSpecification = new PropertyValueSpecification(other.getValueSpecification()); this.value = other.getValue(); this.htmlAllowed = other.isHtmlAllowed(); this.multiLine = other.isMultiLine(); this.placeholdersSupported = other.isPlaceholdersSupported(); this.mapsTo = other.getMapsTo(); }