@Test public void testCreateTypedLiteral() { LiteralImpl lit = NodeFactory.createTypedLiteral("Hello", "myType"); assertNotNull(lit); assertTrue(lit.isLiteral()); assertFalse(lit.isBlank()); assertFalse(lit.isResource()); assertEquals("Hello", lit.getValue()); assertNull(lit.getLanguage()); assertEquals("myType", lit.getType()); }
public static LiteralImpl createTypedLiteral(String value, String type) { LiteralImpl lit = new LiteralImpl(value); lit.setType(type); return lit; }
NodeFactory { public static LiteralImpl createTypedLiteral(String value, String type) { LiteralImpl lit = new LiteralImpl(value); lit.setType(type); return lit; } }
NodeFactory { public static LiteralImpl createTypedLiteral(String value, String type) { LiteralImpl lit = new LiteralImpl(value); lit.setType(type); return lit; } private  NodeFactory(); }
NodeFactory { public static LiteralImpl createTypedLiteral(String value, String type) { LiteralImpl lit = new LiteralImpl(value); lit.setType(type); return lit; } private  NodeFactory(); static LiteralImpl createLiteral(String value); static LiteralImpl createLiteral(String value, String language); static LiteralImpl createTypedLiteral(String value, String type); static BlankImpl createBlank(); static BlankImpl createBlank(String id); static Resource createResource(String uri); static QNameResource createQNameResource(String namespace, String localName); }
NodeFactory { public static LiteralImpl createTypedLiteral(String value, String type) { LiteralImpl lit = new LiteralImpl(value); lit.setType(type); return lit; } private  NodeFactory(); static LiteralImpl createLiteral(String value); static LiteralImpl createLiteral(String value, String language); static LiteralImpl createTypedLiteral(String value, String type); static BlankImpl createBlank(); static BlankImpl createBlank(String id); static Resource createResource(String uri); static QNameResource createQNameResource(String namespace, String localName);  }