Closed Marco-Sulla closed 4 years ago
A YParameter is a template for a data variable. Due to a separation of concerns, it would be inappropriate for a YParameter to deal with runtime data values. Codelets only exist at runtime, so that's the appropriate place for any methods that handle runtime data. Closed without change.
I think it will be really more simple if
YParameter
will have a methodgetValue(Element inData)
. Now you have to get theYParameter
name and invokeAbstractCodelet.getParameterValue(String paramName)
. This is a bit strange for me.Furthermore
AbstractCodelet.getParameterValue()
is protected and can't be used in utility classes, for example. I had to create an utility that extends from aFakeAbstractCodelet
, whichexecute()
method throws aNotImplementedException
.