Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }