[New] added ref methods to String* ParamBuilders
This commit is contained in:
parent
315e267eaf
commit
1b5e2f8c62
|
@ -1,5 +1,7 @@
|
||||||
package li.strolch.model.builder.params;
|
package li.strolch.model.builder.params;
|
||||||
|
|
||||||
|
import static li.strolch.model.StrolchModelConstants.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import li.strolch.model.builder.BagBuilder;
|
import li.strolch.model.builder.BagBuilder;
|
||||||
|
@ -13,6 +15,24 @@ public class StringListParamBuilder<T extends ParameterBagContainerBuilder<T>>
|
||||||
super(builder, id, name);
|
super(builder, id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public StringListParamBuilder<T> resourceRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_RESOURCE_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StringListParamBuilder<T> orderRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_ORDER_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StringListParamBuilder<T> activityRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_ACTIVITY_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StringListParameter build() {
|
public StringListParameter build() {
|
||||||
return build(new StringListParameter());
|
return build(new StringListParameter());
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package li.strolch.model.builder.params;
|
package li.strolch.model.builder.params;
|
||||||
|
|
||||||
|
import static li.strolch.model.StrolchModelConstants.*;
|
||||||
|
|
||||||
import li.strolch.model.builder.BagBuilder;
|
import li.strolch.model.builder.BagBuilder;
|
||||||
import li.strolch.model.builder.ParameterBagContainerBuilder;
|
import li.strolch.model.builder.ParameterBagContainerBuilder;
|
||||||
import li.strolch.model.parameter.StringParameter;
|
import li.strolch.model.parameter.StringParameter;
|
||||||
|
@ -11,6 +13,24 @@ public class StringParamBuilder<T extends ParameterBagContainerBuilder<T>>
|
||||||
super(builder, id, name);
|
super(builder, id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public StringParamBuilder<T> resourceRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_RESOURCE_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StringParamBuilder<T> orderRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_ORDER_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public StringParamBuilder<T> activityRef(String type) {
|
||||||
|
this.interpretation = INTERPRETATION_ACTIVITY_REF;
|
||||||
|
this.uom = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StringParameter build() {
|
public StringParameter build() {
|
||||||
return build(new StringParameter());
|
return build(new StringParameter());
|
||||||
|
|
Loading…
Reference in New Issue