public static class DocRefAuthor.Tools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateAuthorString(java.util.List authors,
boolean useAnd)
Takes a set of authors and creates a comma-separated string.
|
static java.util.List |
parseAuthorString(java.lang.String authors)
Takes a list of authors and returns a set of DocRefAuthor objects.
|
public static java.util.List parseAuthorString(java.lang.String authors)
authors
- a comma-separated list of authorspublic static java.lang.String generateAuthorString(java.util.List authors, boolean useAnd)
authors
- set of authorsuseAnd
- whether or not to do the and thing, otherwise
use all commas.