public String getPostalAddress() { return this.postalAddress != null ? this.postalAddress.getValue() : null; }
public String getPhysicalProperties() { return this.physicalProperties != null ? this.physicalProperties.getValue() : null; }
public String getUrl() { return this.url != null ? this.url.getValue() : null; }
if (annotation.getValue() != null && value != null){ return annotation.getValue().equalsIgnoreCase(value); else if (annotation.getValue() == null && value == null){ return true; if (annotation.getValue() != null && value != null){ return annotation.getValue().equalsIgnoreCase(value); else if (annotation.getValue() == null && value == null){ return true;
public void writeAnnotation(Annotation annotation) throws IOException { if (annotation != null){ // write topic first writeCvTermName(annotation.getTopic()); // write text after if (annotation.getValue() != null){ getWriter().write(MitabUtils.XREF_SEPARATOR); escapeAndWriteString(annotation.getValue()); } } }
/** * * @param annot * @return the hashcode consistent with the equals method for this comparator */ public static int hashCode(Annotation annot){ if (unambiguousAnnotationComparator == null){ unambiguousAnnotationComparator = new UnambiguousAnnotationComparator(); } if (annot == null){ return 0; } int hashcode = 31; CvTerm topic = annot.getTopic(); hashcode = 31*hashcode + UnambiguousCvTermComparator.hashCode(topic); String text = annot.getValue(); hashcode = 31*hashcode + (text != null ? text.toLowerCase().trim().hashCode() : 0); return hashcode; } }
getDatabase().getAnnotations(), Annotation.SEARCH_URL_MI, Annotation.SEARCH_URL); if (searchUrlAnnot != null){ searchUrl = searchUrlAnnot.getValue();
int emptyEmailCount = 0; for ( Annotation email : emails ) { final String address = email.getValue(); if ( address == null || address.trim().length() == 0 ) { emptyEmailCount++;