/** * Get the Id. * * @return the id */ public Integer getId() { if (imObj instanceof InterMineObject) { return ((InterMineObject) imObj).getId(); } return null; }
public StringConstructor getoBJECT() { if (!org.intermine.model.bio.OntologyEvidenceShadow.class.equals(getClass())) { return NotXmlRenderer.render(this); } StringConstructor sb = new StringConstructor(); sb.append("$_^org.intermine.model.bio.OntologyEvidence"); if (code != null) { sb.append("$_^rcode$_^").append(code.getId()); } if (id != null) { sb.append("$_^aid$_^").append(id); } return sb; } public void setoBJECT(String notXml, ObjectStore os) {
/** * Appends a boolean onto the end of this object. * * @param b a boolean * @return this */ public StringConstructor append(boolean b) { return append(String.valueOf(b)); }
protected void setIds(Collection<FastPathObject> c) throws Exception { int i=1; for (Object o : c) { if (o instanceof InterMineObject) { ((InterMineObject) o).setId(new Integer(i++)); } } } }
/** * Writes the given StringConstructor to the stream in modified UTF-8 format, following its * length in bytes as a four-byte integer. * * @param str the StringConstructor * @return the number of bytes written to the OutputStream * @throws IOException if there is an error writing to the underlying OutputStream */ public int writeLargeUTF(StringConstructor str) throws IOException { return writeLargeUTF(str.getStrings()); }
public StringConstructor getoBJECT() { if (!org.intermine.model.bio.OntologyEvidenceShadow.class.equals(getClass())) { return NotXmlRenderer.render(this); } StringConstructor sb = new StringConstructor(); sb.append("$_^org.intermine.model.bio.OntologyEvidence"); if (code != null) { sb.append("$_^rcode$_^").append(code.getId()); } if (id != null) { sb.append("$_^aid$_^").append(id); } return sb; } public void setoBJECT(String notXml, ObjectStore os) {
/** * Appends an int onto the end of this object. * * @param i an int * @return this */ public StringConstructor append(int i) { return append(String.valueOf(i)); }
/** * Get the Id. * * @return the id */ public Integer getId() { if (imObj instanceof InterMineObject) { return ((InterMineObject) imObj).getId(); } return null; }
/** * Writes the given StringConstructor to the stream in modified UTF-8 format, following its * length in bytes as a four-byte integer. * * @param str the StringConstructor * @return the number of bytes written to the OutputStream * @throws IOException if there is an error writing to the underlying OutputStream */ public int writeLargeUTF(StringConstructor str) throws IOException { return writeLargeUTF(str.getStrings()); }
public StringConstructor getoBJECT() { if (!org.intermine.model.bio.OrthologueEvidenceShadow.class.equals(getClass())) { return NotXmlRenderer.render(this); } StringConstructor sb = new StringConstructor(); sb.append("$_^org.intermine.model.bio.OrthologueEvidence"); if (evidenceCode != null) { sb.append("$_^revidenceCode$_^").append(evidenceCode.getId()); } if (id != null) { sb.append("$_^aid$_^").append(id); } return sb; } public void setoBJECT(String notXml, ObjectStore os) {
/** * Appends an int onto the end of this object. * * @param i an int * @return this */ public StringConstructor append(int i) { return append(String.valueOf(i)); }
/** * Appends an Object onto the end of this object. * * @param o an Object * @return this */ public StringConstructor append(Object o) { return append(o.toString()); }
/** * Appends a double onto the end of this object. * * @param d a double * @return this */ public StringConstructor append(double d) { return append(String.valueOf(d)); }
/** * Appends a float onto the end of this object. * * @param f a float * @return this */ public StringConstructor append(float f) { return append(String.valueOf(f)); }
/** * Appends a double onto the end of this object. * * @param d a double * @return this */ public StringConstructor append(double d) { return append(String.valueOf(d)); }
/** * Appends a long onto the end of this object. * * @param l a long * @return this */ public StringConstructor append(long l) { return append(String.valueOf(l)); }
/** * Appends a float onto the end of this object. * * @param f a float * @return this */ public StringConstructor append(float f) { return append(String.valueOf(f)); }
/** * Appends an Object onto the end of this object. * * @param o an Object * @return this */ public StringConstructor append(Object o) { return append(o.toString()); }
/** * Appends a boolean onto the end of this object. * * @param b a boolean * @return this */ public StringConstructor append(boolean b) { return append(String.valueOf(b)); }
/** * Appends a long onto the end of this object. * * @param l a long * @return this */ public StringConstructor append(long l) { return append(String.valueOf(l)); }