cdc.mf.html.adaptors.MetasAdaptor 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.Metas;
import cdc.mf.html.MfHtmlGenerationArgs;
public class MetasAdaptor extends ObjectModelAdaptor {
public MetasAdaptor(MfHtmlGenerationArgs args) {
// Ignore
}
@Override
public synchronized Object getProperty(Interpreter interp,
ST self,
Metas metas,
Object property,
String propertyName) throws STNoSuchPropertyException {
switch (propertyName) {
case "sortedMetas":
return metas.getSortedMetas();
default:
break;
}
return super.getProperty(interp, self, metas, property, propertyName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy