|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.Unchangeable
org.biojavax.SimpleDocRefAuthor
public class SimpleDocRefAuthor
Represents an author of a documentary reference.
DocRef
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojavax.DocRefAuthor |
---|
DocRefAuthor.Tools |
Constructor Summary | |
---|---|
SimpleDocRefAuthor(String s)
Constructs a new author instance from a string. |
|
SimpleDocRefAuthor(String name,
boolean consortium,
boolean editor)
Constructs a new author instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.biojava.utils.Unchangeable |
---|
addChangeListener, addChangeListener, addForwarder, getForwarders, getListeners, isUnchanging, removeChangeListener, removeChangeListener, removeForwarder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Constructor Detail |
---|
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).Method Detail |
---|
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)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |