public class SimpleDocRefAuthor extends Unchangeable implements DocRefAuthor
DocRef
DocRefAuthor.Tools
Constructor and Description |
---|
SimpleDocRefAuthor(java.lang.String s)
Constructs a new author instance from a string.
|
SimpleDocRefAuthor(java.lang.String name,
boolean consortium,
boolean editor)
Constructs a new author instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Document authors are compared first by name, then consortium status, then editor status.
|
boolean |
equals(java.lang.Object obj)
Document references are equal if they have all fields the same.
|
java.lang.String |
getExtendedName()
Returns the extended version of the authors name.
|
java.lang.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?
|
java.lang.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(java.lang.String name, boolean consortium, boolean editor)
name
- the author nameconsortium
- are they a consortium?editor
- are they an editor?public SimpleDocRefAuthor(java.lang.String s)
s
- the input string (author name with (ed.) and (consortium) suffixes).public java.lang.String getName()
getName
in interface DocRefAuthor
public java.lang.String getExtendedName()
getExtendedName
in interface DocRefAuthor
public boolean isEditor()
isEditor
in interface DocRefAuthor
public boolean isConsortium()
isConsortium
in interface DocRefAuthor
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object