use of eu.esdihumboldt.hale.common.align.custom.DefaultCustomPropertyFunctionEntity in project hale by halestudio.
the class CustomPropertyFunctionEntityEditor method getValue.
@Override
public DefaultCustomPropertyFunctionEntity getValue() {
DefaultCustomPropertyFunctionEntity result = new DefaultCustomPropertyFunctionEntity();
result.setName(nameText.getText());
result.setEager(eagerSelect.getSelection());
result.setMaxOccurrence((unboundedSelect.getSelection()) ? (ParameterDefinition.UNBOUNDED) : (maxSpinner.getSelection()));
result.setMinOccurrence(minSpinner.getSelection());
// binding type
BindingOrType bot = bindingOrType.getValue();
if (bot.isUseBinding()) {
result.setBindingType(null);
result.setBindingClass(bot.getBinding());
} else {
result.setBindingClass(null);
result.setBindingType(bot.getType());
}
result.setBindingClass(String.class);
return result;
}
Aggregations