org.duracloud.serviceconfig.xml
Class ServiceSummaryListDocumentBinding

java.lang.Object
  extended by org.duracloud.serviceconfig.xml.ServiceSummaryListDocumentBinding

public class ServiceSummaryListDocumentBinding
extends Object

This class is a helper utility for binding multiple ServiceInfo objects to a multi-service xml config document.

Author:
Andrew Woods Date: Nov 17, 2009

Constructor Summary
ServiceSummaryListDocumentBinding()
           
 
Method Summary
static ServiceSummariesDocument createDocumentFrom(List<ServiceSummary> summaryList)
          This method serializes a list of ServiceInfo objects into a multi-service-config xml document.
static List<ServiceSummary> createServiceSummaryListFrom(InputStream xml)
          This method binds a list of ServiceInfo objects to the content of the arg multi-service xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceSummaryListDocumentBinding

public ServiceSummaryListDocumentBinding()
Method Detail

createServiceSummaryListFrom

public static List<ServiceSummary> createServiceSummaryListFrom(InputStream xml)
This method binds a list of ServiceInfo objects to the content of the arg multi-service xml.

Parameters:
xml - multi-service document to be bound to ServiceInfo objects
Returns:
list of ServiceInfo objects

createDocumentFrom

public static ServiceSummariesDocument createDocumentFrom(List<ServiceSummary> summaryList)
This method serializes a list of ServiceInfo objects into a multi-service-config xml document.

Parameters:
summaryList - list of ServiceInfo objects to be serialized
Returns:
multi-service xml document


Copyright © 2009-2011 DuraSpace. All Rights Reserved.