ta bort sysouts
This commit is contained in:
parent
4005e3d6e7
commit
804ea46ca4
src/main/java/se/su/dsv/scipro
@ -119,7 +119,6 @@ public class ProjectPartnerPage extends ProjectPage {
|
||||
wmc.add(dataView);
|
||||
wmc.setOutputMarkupId(true);
|
||||
pagingNavigator = new PagingNavigator("navigator", dataView);
|
||||
System.out.println(dataView.size());
|
||||
wmc.add(pagingNavigator);
|
||||
add(wmc);
|
||||
|
||||
|
@ -93,11 +93,9 @@ public class TurnitinComponent {
|
||||
try {
|
||||
md5 = MD5(hash);
|
||||
} catch (NoSuchAlgorithmException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
Logger.getLogger(this.getClass()).log(Level.ERROR,
|
||||
"Error with MD5 generation: " + e1.getMessage());
|
||||
} catch (UnsupportedEncodingException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
Logger.getLogger(this.getClass()).log(Level.ERROR,
|
||||
"Error with MD5 generation: " + e1.getMessage());
|
||||
}
|
||||
@ -313,46 +311,4 @@ public class TurnitinComponent {
|
||||
is.close();
|
||||
return bytes;
|
||||
}
|
||||
|
||||
public static void parseXml(String string) {
|
||||
|
||||
try {
|
||||
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
|
||||
DocumentBuilder db = dbf.newDocumentBuilder();
|
||||
|
||||
Document doc = db.parse(new InputSource(new StringReader(string)));
|
||||
doc.getDocumentElement().normalize();
|
||||
System.out.println("Root element "
|
||||
+ doc.getDocumentElement().getNodeName());
|
||||
NodeList nodeList = doc
|
||||
.getElementsByTagName("student_paper_overlap");
|
||||
Element studentPaperOverlapElement = (Element) nodeList.item(0);
|
||||
NodeList studentPaperOverlap = studentPaperOverlapElement
|
||||
.getChildNodes();
|
||||
System.out.println("Student Paper Overlap: "
|
||||
+ ((Node) studentPaperOverlap.item(0)).getNodeValue());
|
||||
|
||||
nodeList = doc.getElementsByTagName("web_overlap");
|
||||
Element webOverlapElement = (Element) nodeList.item(0);
|
||||
NodeList webPaperOverlap = webOverlapElement.getChildNodes();
|
||||
System.out.println("Web Overlap: "
|
||||
+ ((Node) webPaperOverlap.item(0)).getNodeValue());
|
||||
|
||||
nodeList = doc.getElementsByTagName("publication_overlap");
|
||||
Element publicationOverlapElement = (Element) nodeList.item(0);
|
||||
NodeList publicationOverlap = publicationOverlapElement
|
||||
.getChildNodes();
|
||||
System.out.println("Publication Overlap: "
|
||||
+ ((Node) publicationOverlap.item(0)).getNodeValue());
|
||||
|
||||
nodeList = doc.getElementsByTagName("originalityscore");
|
||||
Element originalityElement = (Element) nodeList.item(0);
|
||||
NodeList originality = originalityElement.getChildNodes();
|
||||
System.out.println("Originality Score: "
|
||||
+ ((Node) originality.item(0)).getNodeValue());
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user