public boolean isGeneratorActive(String className) { Generator[] generators = getActiveRegisteredGenerator(); for (int i = 0; i < generators.length; i++) { Generator generator = generators[i]; if (generator.getClassName().equals(className)) { return generator.getActive(); } } return false; }
public Format[] getFormatsForGeneratorClass(String className) { Generator[] generators = wpsClientConfigXMLBeans.getDatahandlers().getGeneratorList().getGeneratorArray(); for (int i = 0; i < generators.length; i++) { Generator generator = generators[i]; if (generator.getClassName().equals(className)) { return generator.getFormatArray(); } } return (Format[]) Array.newInstance(Format.class, 0); }