@Test public void testFullAuthorship() throws Exception { assertNull(pn.authorshipComplete()); pn.setCombinationAuthorship(Authorship.authors("L.")); assertEquals("L.", pn.authorshipComplete()); pn.setBasionymAuthorship(Authorship.authors("Bassier")); assertEquals("(Bassier) L.", pn.authorshipComplete()); assertEquals("(Bassier) L.", pn.authorshipComplete()); pn.getCombinationAuthorship().getAuthors().add("Rohe"); assertEquals("(Bassier) L. & Rohe", pn.authorshipComplete()); assertEquals("(Bassier) L. & Rohe", pn.authorshipComplete()); pn.setSanctioningAuthor("Fr."); assertEquals("(Bassier) L. & Rohe : Fr.", pn.authorshipComplete()); }
public static String authorshipComplete(ParsedAuthorship n) { StringBuilder sb = new StringBuilder(); appendAuthorship(n, sb); return sb.length() == 0 ? null : sb.toString(); }
NameFormatter { public static String authorshipComplete(ParsedAuthorship n) { StringBuilder sb = new StringBuilder(); appendAuthorship(n, sb); return sb.length() == 0 ? null : sb.toString(); } }
NameFormatter { public static String authorshipComplete(ParsedAuthorship n) { StringBuilder sb = new StringBuilder(); appendAuthorship(n, sb); return sb.length() == 0 ? null : sb.toString(); } private  NameFormatter(); }
NameFormatter { public static String authorshipComplete(ParsedAuthorship n) { StringBuilder sb = new StringBuilder(); appendAuthorship(n, sb); return sb.length() == 0 ? null : sb.toString(); } private  NameFormatter(); static String canonical(ParsedName n); static String canonicalWithoutAuthorship(ParsedName n); static String canonicalMinimal(ParsedName n); static String canonicalComplete(ParsedName n); static String canonicalCompleteHtml(ParsedName n); static String authorshipComplete(ParsedAuthorship n); static String authorString(Authorship authors, boolean inclYear); static String buildName(ParsedName n,
                                 boolean hybridMarker,
                                 boolean rankMarker,
                                 boolean authorship,
                                 boolean genusForinfrageneric,
                                 boolean infrageneric,
                                 boolean decomposition,
                                 boolean asciiOnly,
                                 boolean showQualifier,
                                 boolean showIndet,
                                 boolean nomNote,
                                 boolean showSensu,
                                 boolean showCultivar,
                                 boolean showStrain,
                                 boolean html
  ); static void appendAuthorship(StringBuilder sb, Authorship auth, boolean includeYear); }
NameFormatter { public static String authorshipComplete(ParsedAuthorship n) { StringBuilder sb = new StringBuilder(); appendAuthorship(n, sb); return sb.length() == 0 ? null : sb.toString(); } private  NameFormatter(); static String canonical(ParsedName n); static String canonicalWithoutAuthorship(ParsedName n); static String canonicalMinimal(ParsedName n); static String canonicalComplete(ParsedName n); static String canonicalCompleteHtml(ParsedName n); static String authorshipComplete(ParsedAuthorship n); static String authorString(Authorship authors, boolean inclYear); static String buildName(ParsedName n,
                                 boolean hybridMarker,
                                 boolean rankMarker,
                                 boolean authorship,
                                 boolean genusForinfrageneric,
                                 boolean infrageneric,
                                 boolean decomposition,
                                 boolean asciiOnly,
                                 boolean showQualifier,
                                 boolean showIndet,
                                 boolean nomNote,
                                 boolean showSensu,
                                 boolean showCultivar,
                                 boolean showStrain,
                                 boolean html
  ); static void appendAuthorship(StringBuilder sb, Authorship auth, boolean includeYear); static final char HYBRID_MARKER; }