org.gcube.vremanagement.softwaregateway.impl.repositorymanager.parsing
Class XmlParse

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.impl.repositorymanager.parsing.XmlParse

public class XmlParse
extends Object

Class for XML parsing

Author:
Roberto Cirillo (ISTI - CNR)

Constructor Summary
XmlParse()
           
 
Method Summary
 void filterElements(Node parent, GCubeCoordinates coord)
          filter all package elements whose tag name = filter
 String getURlFromSearch(String xml, String groupName, String artifact, String extension, String ver, boolean pom, String classifier)
          Extract a URL from a valid Nexus response
 File updateFile(File file, GCubeCoordinates coord)
          Update a file profile.xml remove from the file the package related to the input parameter coord
 File updateProfile(File profile, Coordinates coordinates)
           
 String xmlToString(Node node)
          Trasform a dom structure in a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParse

public XmlParse()
Method Detail

getURlFromSearch

public String getURlFromSearch(String xml,
                               String groupName,
                               String artifact,
                               String extension,
                               String ver,
                               boolean pom,
                               String classifier)
                        throws IOException,
                               SAXException
Extract a URL from a valid Nexus response

Parameters:
xml - nexus response
groupName -
artifact -
extension -
ver -
pom -
classifier -
Returns:
Throws:
IOException
SAXException

updateProfile

public File updateProfile(File profile,
                          Coordinates coordinates)
                   throws ServiceNotAvaiableFault
Parameters:
profile -
coordinates -
Returns:
Throws:
ServiceNotAvaiableFault

updateFile

public File updateFile(File file,
                       GCubeCoordinates coord)
Update a file profile.xml remove from the file the package related to the input parameter coord

Parameters:
file - profile.xml
coord - gCubePackage coordinates
Returns:

filterElements

public void filterElements(Node parent,
                           GCubeCoordinates coord)
filter all package elements whose tag name = filter


xmlToString

public String xmlToString(Node node)
Trasform a dom structure in a string

Parameters:
node -
Returns:


Copyright © 2013. All Rights Reserved.