@Test public void testCreateLiteralWithLanguage() { LiteralImpl lit = NodeFactory.createLiteral("Hello", "en"); assertNotNull(lit); assertTrue(lit.isLiteral()); assertFalse(lit.isBlank()); assertFalse(lit.isResource()); assertEquals("Hello", lit.getValue()); assertEquals("en", lit.getLanguage()); assertNull(lit.getType()); }
public static LiteralImpl createLiteral(String value) { return new LiteralImpl(value); }
NodeFactory { public static LiteralImpl createLiteral(String value) { return new LiteralImpl(value); } }
NodeFactory { public static LiteralImpl createLiteral(String value) { return new LiteralImpl(value); } private  NodeFactory(); }
NodeFactory { public static LiteralImpl createLiteral(String value) { return new LiteralImpl(value); } 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 createLiteral(String value) { return new LiteralImpl(value); } 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);  }