org.gcube.data.spd.gbifplugin.search
Class Utils

java.lang.Object
  extended by org.gcube.data.spd.gbifplugin.search.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
protected static boolean checkEndElement(XMLEvent event, String tagName)
           
protected static boolean checkStartElement(XMLEvent event, String tagName)
           
protected static String createProductsKey(String scientificName, String dataProviderKey, String dataResourceKey, String taxonConceptKey, String properties)
           
protected static String elaborateProductsKey(String id)
           
protected static String elaborateProps(org.gcube.data.spd.model.Condition[] properties)
           
static String getCoordinateAsString(org.gcube.data.spd.model.Coordinate coordinate, org.gcube.data.spd.model.Condition prop)
           
static String getDateAsString(Calendar date, org.gcube.data.spd.model.Condition prop)
           
protected static String readCharacters(XMLEventReader eventReader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

elaborateProps

protected static String elaborateProps(org.gcube.data.spd.model.Condition[] properties)
                                throws Exception
Throws:
Exception

elaborateProductsKey

protected static String elaborateProductsKey(String id)

createProductsKey

protected static String createProductsKey(String scientificName,
                                          String dataProviderKey,
                                          String dataResourceKey,
                                          String taxonConceptKey,
                                          String properties)

checkStartElement

protected static boolean checkStartElement(XMLEvent event,
                                           String tagName)

checkEndElement

protected static boolean checkEndElement(XMLEvent event,
                                         String tagName)

readCharacters

protected static String readCharacters(XMLEventReader eventReader)
                                throws Exception
Throws:
Exception

getCoordinateAsString

public static String getCoordinateAsString(org.gcube.data.spd.model.Coordinate coordinate,
                                           org.gcube.data.spd.model.Condition prop)

getDateAsString

public static String getDateAsString(Calendar date,
                                     org.gcube.data.spd.model.Condition prop)


Copyright © 2013. All Rights Reserved.