コード例 #1
0
 public void startElement(String s, String s1, String s2, Attributes attributes) {
   int i = excludeList.indexOf("," + s2 + ",");
   if (i >= 0) {
     inExcludeElement = true;
     return;
   }
   if (s2.equals("process")) {
     if (process_element_seen) {
       inDuplicateProcessElement = true;
       return;
     }
     process_element_seen = true;
   }
   if (inExcludeElement || inDuplicateProcessElement) {
     return;
   }
   if (SunOneMonitor.isElementInMakeUniqueList(s2)) {
     String s3 = process_uniqueCounter(s2, attributes);
     formulaEngine.registerElementForDerivedCounter(s3);
     return;
   }
   formulaEngine.registerElementForDerivedCounter(s2);
   writer.startElement("object name=\"" + s2 + "\"");
   int j = attributes.getLength();
   for (int k = 0; k < j; k++) {
     String s4 = attributes.getLocalName(k);
     String s5 = attributes.getValue(k);
     String s6 = s4 + "+" + s5;
     writer.emptyElement("counter name=\"" + s4 + "\" id=\"" + s6 + "\"");
   }
 }
コード例 #2
0
 private String getDerivedCountersXml() {
   return formulaEngine.generateBrowseData();
 }