/** ************************************************************************* * * Get the value */ public String getDisplayValue(SourceSrc ss) { StringBuffer buf = new StringBuffer(); PertDictionary pd = ss.getPertDictionary(); PertProperties pp = pd.getPerturbProps(typeKey_); String name = ss.getSourceName(srcNameKey_); buf.append(name); String useMe = pp.getAbbrev(); if (useMe == null) { buf.append(" "); buf.append(pp.getType()); } else { buf.append(useMe); } return (buf.toString()); }
/** * ************************************************************************* * * Get the sign * relationship of the source (e.g. SAME_SIGN, OPPOSITE_SIGN) */ public PertDictionary.PertLinkRelation getSign(SourceSrc ss) { PertDictionary pDict = ss.getPertDictionary(); PertProperties pprops = getExpType(pDict); if (isAProxy()) { return (pprops.getRelationWithProxy(getProxySign())); } else { return (pprops.getLinkSignRelationship()); } }
/** * ************************************************************************* * * Get the value * with a notes as bracket or superscript */ public String getDisplayValueWithFootnotes(SourceSrc ss, boolean asSuper) { PertAnnotations pa = ss.getPertAnnotations(); StringBuffer buf = new StringBuffer(); buf.append(getDisplayValue(ss)); if (!annotations_.isEmpty()) { buf.append((asSuper) ? "<sup>" : " ["); buf.append(pa.getFootnoteListAsString(annotations_)); buf.append((asSuper) ? "</sup>" : "]"); } return (buf.toString()); }
/** * ************************************************************************* * * Get the proxied * Name */ public String getProxiedSpeciesName(SourceSrc ss) { return (ss.getSourceName(proxyForKey_)); }
/** * ************************************************************************* * * Get the source * Name */ public String getSourceName(SourceSrc ss) { return (ss.getSourceName(srcNameKey_)); }