Ejemplo n.º 1
0
  /** {@inheritDoc} */
  public void serializeTo(Element element) throws DocumentSerializationException {
    DocumentSerializableUtilities.addString(element, "description", description);

    for (Iterator i = serviceMonitorFilters.values().iterator(); i.hasNext(); ) {
      ServiceMonitorFilter serviceMonitorFilter = (ServiceMonitorFilter) i.next();

      Element serviceElement = DocumentSerializableUtilities.createChildElement(element, "service");

      DocumentSerializableUtilities.addString(
          serviceElement, "moduleClassID", serviceMonitorFilter.getModuleClassID().toString());
      DocumentSerializableUtilities.addDocumentSerializable(
          serviceElement, "serviceFilter", serviceMonitorFilter);
    }
  }
Ejemplo n.º 2
0
 /**
  * Get Iterator of all ServiceMonitorFilters subfilters
  *
  * @return Iterator of all ServiceMonitorFilters subfilters
  */
 public Iterator getServiceMonitorFilters() {
   return serviceMonitorFilters.values().iterator();
 }