/** {@inheritDoc} */ public void serializeTo(Element element) throws DocumentSerializationException { for (Iterator i = transportMetrics.iterator(); i.hasNext(); ) { TransportMetric transportMetric = (TransportMetric) i.next(); DocumentSerializableUtilities.addDocumentSerializable( element, "transportMetric", transportMetric); } if (moduleClassID != null) { DocumentSerializableUtilities.addString(element, "moduleClassID", moduleClassID.toString()); } }
/** {@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); } }