public NativeValue getNativeValue(Value value) { if (value instanceof Resource) { return getNativeResource((Resource)value); } else if (value instanceof Literal) { return getNativeLiteral((Literal)value); } else { throw new IllegalArgumentException("Unknown value type: " + value.getClass()); } }
public NativeValue getNativeValue(Value value) { if (value instanceof Resource) { return getNativeResource((Resource)value); } else if (value instanceof Literal) { return getNativeLiteral((Literal)value); } else { throw new IllegalArgumentException("Unknown value type: " + value.getClass()); } }