org.gcube.informationsystem.glitebridge.harvester.sam
Class SAMSiteParser

java.lang.Object
  extended by org.gcube.informationsystem.glitebridge.harvester.sam.SAMSiteParser

public abstract class SAMSiteParser
extends java.lang.Object

Author:
Luca Frosini (ISTI-CNR)

Constructor Summary
SAMSiteParser()
           
 
Method Summary
static java.util.Map<java.lang.String,SAMSite> parseXML(java.lang.String xml)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMSiteParser

public SAMSiteParser()
Method Detail

parseXML

public static java.util.Map<java.lang.String,SAMSite> parseXML(java.lang.String xml)
                                                        throws java.lang.Exception
Parameters:
xml - containing Sites retrieved from SAM should be in the format: d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu d4science.research-infrastructures.eu
Returns:
For each element the key is the UniqueID of the site and the associated value is an instance of SiteType with just the uniqueID set
Throws:
java.lang.Exception - if fails