@Test public void testSeqMarshalling() throws InvocationTargetException, DatatypeConfigurationException, OslcCoreApplicationException, IllegalAccessException, IOException { final Model expectedModel = RDFHelper.loadResourceModel("container-element.ttl"); final Container container = new Container(); container.setAbout(URI.create("urn:containerA")); final ImmutableList<Element> children = ImmutableList.of(element("A"), element("B")); container.setChildrenL(children); container.setChildrenB(children); final Model actualModel = JenaModelHelper.createJenaModel(new Object[]{container}); assertThat(actualModel).isomorphicWith(expectedModel); }
public static Model createJenaModel(final Object[] objects) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, OslcCoreApplicationException { return createJenaModel(null, null, null, objects, null); }
JenaModelHelper { public static Model createJenaModel(final Object[] objects) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, OslcCoreApplicationException { return createJenaModel(null, null, null, objects, null); } }
JenaModelHelper { public static Model createJenaModel(final Object[] objects) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, OslcCoreApplicationException { return createJenaModel(null, null, null, objects, null); } private  JenaModelHelper(); }
JenaModelHelper { public static Model createJenaModel(final Object[] objects) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, OslcCoreApplicationException { return createJenaModel(null, null, null, objects, null); } private  JenaModelHelper(); static Model createJenaModel(final Object[] objects); static T unmarshalSingle(final Model model, Class<T> clazz); @SuppressWarnings({"unchecked", "deprecation"}) static T unmarshal(final Resource resource, Class<T> clazz); @Deprecated static Object fromJenaResource(final Resource resource, Class<?> beanClass); @SuppressWarnings({"unchecked", "deprecation"}) static T[] unmarshal(final Model model, Class<T> clazz); @Deprecated static Object[] fromJenaModel(final Model model, final Class<?> beanClass); static R followLink(final Model m, final Link l,
                                                     final Class<R> rClass); static void skolemize(final Model m); static void skolemize(final Model m, Function<BlankNodeId, String> skolemUriFunction); }
JenaModelHelper { public static Model createJenaModel(final Object[] objects) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, OslcCoreApplicationException { return createJenaModel(null, null, null, objects, null); } private  JenaModelHelper(); static Model createJenaModel(final Object[] objects); static T unmarshalSingle(final Model model, Class<T> clazz); @SuppressWarnings({"unchecked", "deprecation"}) static T unmarshal(final Resource resource, Class<T> clazz); @Deprecated static Object fromJenaResource(final Resource resource, Class<?> beanClass); @SuppressWarnings({"unchecked", "deprecation"}) static T[] unmarshal(final Model model, Class<T> clazz); @Deprecated static Object[] fromJenaModel(final Model model, final Class<?> beanClass); static R followLink(final Model m, final Link l,
                                                     final Class<R> rClass); static void skolemize(final Model m); static void skolemize(final Model m, Function<BlankNodeId, String> skolemUriFunction);  }