@Test public void testValidation() throws FileNotFoundException, JAXBException, IOException, SAXException { JAXBContext jaxb = XmlRegression.context(); JAXBSource source = new JAXBSource(jaxb, reg); Validator validator = Schemas.Modelling.newValidator(); validator.validate(source); }
public static synchronized JAXBContext context() throws JAXBException{ List<Class> xmlClasses = xmlClasses(); xmlClasses.add(XmlRegression.class); JAXBContext jaxb = JAXBContext.newInstance(xmlClasses.toArray(new Class[xmlClasses.size()])); return jaxb; }
XmlRegression { public static synchronized JAXBContext context() throws JAXBException{ List<Class> xmlClasses = xmlClasses(); xmlClasses.add(XmlRegression.class); JAXBContext jaxb = JAXBContext.newInstance(xmlClasses.toArray(new Class[xmlClasses.size()])); return jaxb; } }
XmlRegression { public static synchronized JAXBContext context() throws JAXBException{ List<Class> xmlClasses = xmlClasses(); xmlClasses.add(XmlRegression.class); JAXBContext jaxb = JAXBContext.newInstance(xmlClasses.toArray(new Class[xmlClasses.size()])); return jaxb; }  }
XmlRegression { public static synchronized JAXBContext context() throws JAXBException{ List<Class> xmlClasses = xmlClasses(); xmlClasses.add(XmlRegression.class); JAXBContext jaxb = JAXBContext.newInstance(xmlClasses.toArray(new Class[xmlClasses.size()])); return jaxb; }  List<XmlRegressionItem> getItems(); boolean isEmpty(); static List<Class> xmlClasses(); static synchronized JAXBContext context(); }
XmlRegression { public static synchronized JAXBContext context() throws JAXBException{ List<Class> xmlClasses = xmlClasses(); xmlClasses.add(XmlRegression.class); JAXBContext jaxb = JAXBContext.newInstance(xmlClasses.toArray(new Class[xmlClasses.size()])); return jaxb; }  List<XmlRegressionItem> getItems(); boolean isEmpty(); static List<Class> xmlClasses(); static synchronized JAXBContext context();  }