示例#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;
 }
示例#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);
 }