SimpleLiteral implements Literal { @Override public String toString() { if (Literals.isLanguageLiteral(this)) { StringBuilder sb = new StringBuilder(label.length() + language.length() + 3); sb.append('"').append(label).append('"'); sb.append('@').append(language); return sb.toString(); } else if (XSD.STRING.equals(datatype) || datatype == null) { StringBuilder sb = new StringBuilder(label.length() + 2); sb.append('"').append(label).append('"'); return sb.toString(); } else { StringBuilder sb = new StringBuilder(label.length() + datatype.stringValue().length() + 6); sb.append('"').append(label).append('"'); sb.append("^^<").append(datatype.toString()).append(">"); return sb.toString(); } } protected  SimpleLiteral(); protected  SimpleLiteral(String label); protected  SimpleLiteral(String label, String language); protected  SimpleLiteral(String label, IRI datatype); @Override String getLabel(); @Override Optional<String> getLanguage(); @Override IRI getDatatype(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override String stringValue(); @Override boolean booleanValue(); @Override byte byteValue(); @Override short shortValue(); @Override int intValue(); @Override long longValue(); @Override float floatValue(); @Override double doubleValue(); @Override BigInteger integerValue(); @Override BigDecimal decimalValue(); @Override XMLGregorianCalendar calendarValue();  }
@Ignore("TODO: Implement me!") @Test public final void testToString() throws Exception { fail("Not yet implemented"); }