private void loadData ( ) throws JAXBException { if ( file . exists ( ) ) { final JAXBContext jc = JAXBContext . newInstance ( Kopemedata . class ) ; final Unmarshaller unmarshaller = jc . createUnmarshaller ( ) ; data = ( Kopemedata ) unmarshaller . unmarshal ( file ) ; LOG . trace ( "Daten geladen, Daten: " + data ) ; } else { LOG . info ( "Datei {} existiert nicht" , file . getAbsolutePath ( ) ) ; data = new Kopemedata ( ) ; data . setTestcases ( new Testcases ( ) ) ; final Testcases tc = data . getTestcases ( ) ; LOG . trace ( "TC: " + tc ) ; tc . setClazz ( file . getName ( ) ) ; } }
Loads the data .