cdc.mf.html.adaptors.ParamsAdaptor Maven / Gradle / Ivy
The newest version!
package cdc.mf.html.adaptors;
import org.stringtemplate.v4.Interpreter;
import org.stringtemplate.v4.ST;
import org.stringtemplate.v4.misc.ObjectModelAdaptor;
import org.stringtemplate.v4.misc.STNoSuchPropertyException;
import cdc.issues.Params;
import cdc.mf.html.MfHtmlGenerationArgs;
public class ParamsAdaptor extends ObjectModelAdaptor {
public ParamsAdaptor(MfHtmlGenerationArgs args) {
// Ignore
}
@Override
public synchronized Object getProperty(Interpreter interp,
ST self,
Params params,
Object property,
String propertyName) throws STNoSuchPropertyException {
switch (propertyName) {
case "sortedParams":
return params.getSortedParams();
default:
break;
}
return super.getProperty(interp, self, params, property, propertyName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy