public class SimpleDocRefAuthor extends Unchangeable implements DocRefAuthor
DocRefDocRefAuthor.Tools| Constructor and Description |
|---|
SimpleDocRefAuthor(String s)
Constructs a new author instance from a string.
|
SimpleDocRefAuthor(String name,
boolean consortium,
boolean editor)
Constructs a new author instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Document authors are compared first by name, then consortium status, then editor status.
|
boolean |
equals(Object obj)
Document references are equal if they have all fields the same.
|
String |
getExtendedName()
Returns the extended version of the authors name.
|
String |
getName()
Returns a textual description of the authors name.
|
int |
hashCode() |
boolean |
isConsortium()
Is this author actually a consortium?
|
boolean |
isEditor()
Is this author actually an editor?
|
String |
toString()
Form: "name (consortium) (ed.)" where sections in brackets are optional.
|
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarderclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic SimpleDocRefAuthor(String name, boolean consortium, boolean editor)
name - the author nameconsortium - are they a consortium?editor - are they an editor?public SimpleDocRefAuthor(String s)
s - the input string (author name with (ed.) and (consortium) suffixes).public String getName()
getName in interface DocRefAuthorpublic String getExtendedName()
getExtendedName in interface DocRefAuthorpublic boolean isEditor()
isEditor in interface DocRefAuthorpublic boolean isConsortium()
isConsortium in interface DocRefAuthorpublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
Copyright © 2014 BioJava. All rights reserved.