public class XmlParse extends Object
| Constructor and Description |
|---|
XmlParse() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public String getURlFromSearch(String xml, String groupName, String artifact, String extension, String ver, boolean pom, String classifier) throws IOException, SAXException
xml - nexus responsegroupName - artifact - extension - ver - pom - classifier - IOExceptionSAXExceptionpublic File updateProfile(File profile, Coordinates coordinates) throws ServiceNotAvaiableFault
profile - coordinates - ServiceNotAvaiableFaultpublic File updateFile(File file, GCubeCoordinates coord)
file - profile.xmlcoord - gCubePackage coordinatespublic void filterElements(Node parent, GCubeCoordinates coord)
Copyright © 2015. All Rights Reserved.