All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.intelie.liverig.plugin.widgets.PipesMacroService Maven / Gradle / Ivy

The newest version!
package net.intelie.liverig.plugin.widgets;

import net.intelie.live.Live;
import net.intelie.live.Query;

public class PipesMacroService {

    private final Live.Queries queries;

    public PipesMacroService(Live.Queries queries) {
        this.queries = queries;
    }

    public boolean macroExists(String macroName) {
        try {
            queries.analyze(new Query("@@" + macroName));
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy