org.gcube.vremanagement.vremodeler.impl.util
Class Util
java.lang.Object
org.gcube.vremanagement.vremodeler.impl.util.Util
public class Util
- extends java.lang.Object
- Author:
- Lucio Lelii
Constructor Summary |
Util()
|
Method Summary |
static org.w3c.dom.Element |
addElements(org.w3c.dom.Document doc,
java.lang.String root,
org.w3c.dom.Element[] elements)
|
static org.w3c.dom.Element |
createTextElement(org.w3c.dom.Document doc,
java.lang.String tag,
java.lang.String text)
|
static java.lang.String |
docToString(org.w3c.dom.Document doc)
transform a Document into string |
static ResourceManagerPortType |
getResourceMangerPT(GCUBEScope scope)
|
static java.util.List<CollectionType> |
prepareCollections(java.sql.ResultSet res,
java.util.ArrayList<java.lang.String> relatedCollection)
it creates the XML output for VDLGenerator |
static java.util.List<FunctionalityItem> |
prepareFunctionalities(java.sql.ResultSet res,
java.util.ArrayList<java.lang.Integer> selectedFunct,
java.util.ArrayList<java.lang.String> selectedCS)
|
static java.util.List<GHNType> |
prepareGHNs(java.sql.ResultSet res,
java.util.ArrayList<java.lang.String> relatedGHNs,
java.lang.String candidateGHN)
|
static java.lang.String |
prepareQualityXML()
|
static VREDescription |
prepareVREDescription(java.sql.ResultSet res)
|
static java.util.List<Report> |
prepareVREsList(java.sql.ResultSet res)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
prepareCollections
public static java.util.List<CollectionType> prepareCollections(java.sql.ResultSet res,
java.util.ArrayList<java.lang.String> relatedCollection)
- it creates the XML output for VDLGenerator
- Parameters:
res
- the result set of the query on database
- Returns:
- String the XML
prepareGHNs
public static java.util.List<GHNType> prepareGHNs(java.sql.ResultSet res,
java.util.ArrayList<java.lang.String> relatedGHNs,
java.lang.String candidateGHN)
- Parameters:
res
- relatedGHNs
- candidateGHN
-
- Returns:
prepareQualityXML
public static java.lang.String prepareQualityXML()
- Returns:
- the XML representing the quality string
prepareFunctionalities
public static java.util.List<FunctionalityItem> prepareFunctionalities(java.sql.ResultSet res,
java.util.ArrayList<java.lang.Integer> selectedFunct,
java.util.ArrayList<java.lang.String> selectedCS)
- Parameters:
res
- selectedFunct
- selectedCS
-
- Returns:
prepareVREDescription
public static VREDescription prepareVREDescription(java.sql.ResultSet res)
throws java.lang.Exception
- Parameters:
res
-
- Returns:
- a String representing the message
- Throws:
java.lang.Exception
prepareVREsList
public static java.util.List<Report> prepareVREsList(java.sql.ResultSet res)
throws java.lang.Exception
- Parameters:
res
-
- Returns:
-
- Throws:
java.lang.Exception
docToString
public static java.lang.String docToString(org.w3c.dom.Document doc)
- transform a Document into string
- Parameters:
doc
- Document
- Returns:
- a String
addElements
public static org.w3c.dom.Element addElements(org.w3c.dom.Document doc,
java.lang.String root,
org.w3c.dom.Element[] elements)
- Parameters:
doc
- the root Documentroot
- the element tag nameelements
- elements to add
- Returns:
- the result element
createTextElement
public static org.w3c.dom.Element createTextElement(org.w3c.dom.Document doc,
java.lang.String tag,
java.lang.String text)
- Parameters:
doc
- the root DocumentTag
- the element tag nametext
- the text to add at the element
- Returns:
- the result element
getResourceMangerPT
public static ResourceManagerPortType getResourceMangerPT(GCUBEScope scope)
throws java.lang.Exception
- Throws:
java.lang.Exception