public class SimpleDocRefAuthor extends Unchangeable implements DocRefAuthor
DocRef
DocRefAuthor.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, removeForwarder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public 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 DocRefAuthor
public String getExtendedName()
getExtendedName
in interface DocRefAuthor
public boolean isEditor()
isEditor
in interface DocRefAuthor
public boolean isConsortium()
isConsortium
in interface DocRefAuthor
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object obj)
Copyright © 2014 BioJava. All rights reserved.