public static org.fcrepo.server.types.gen.RelationshipTuple convertRelsTupleToGenRelsTuple(org.fcrepo.server.storage.types.RelationshipTuple in) { if (in == null) { return null; } org.fcrepo.server.types.gen.RelationshipTuple out = new org.fcrepo.server.types.gen.RelationshipTuple(); out.setSubject(in.subject); out.setPredicate(in.predicate); out.setObject(in.object); out.setIsLiteral(in.isLiteral); if (in.datatype == null) out.setDatatype(null); else out.setDatatype(in.datatype.toString()); return out; }
public static org.fcrepo.server.types.gen.RelationshipTuple convertRelsTupleToGenRelsTuple(org.fcrepo.server.storage.types.RelationshipTuple in) { if (in == null) { return null; } org.fcrepo.server.types.gen.RelationshipTuple out = new org.fcrepo.server.types.gen.RelationshipTuple(); out.setSubject(in.subject); out.setPredicate(in.predicate); out.setObject(in.object); out.setIsLiteral(in.isLiteral); if (in.datatype == null) out.setDatatype(null); else out.setDatatype(in.datatype.toString()); return out; }