Package org.pathvisio.libgpml.model
Class Pathway.Author
java.lang.Object
org.pathvisio.libgpml.model.Pathway.Author
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- Pathway
public class Pathway.Author
extends java.lang.Object
implements java.lang.Cloneable
This class stores information for an Author. An Author must have name and
optionally username, order, and Xref.
- Author:
- finterly
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
Author(java.lang.String name)
Instantiates an author with only required property. -
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
Clones this author.java.lang.String
getName()
Returns the name of this author.int
getOrder()
Returns the authorship order of this author.java.lang.String
getUsername()
Returns the username of this author.org.bridgedb.Xref
getXref()
Returns the Xref for the author.void
setName(java.lang.String v)
Sets the name of this author.void
setOrder(int v)
Sets the authorship order of this author.void
setUsername(java.lang.String v)
Sets the username of this author.void
setXref(org.bridgedb.Xref v)
Sets the Xref for the author.java.lang.String
toString()
Writes author out as a string.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
name
private java.lang.String name -
username
private java.lang.String username -
order
private int order -
xref
private org.bridgedb.Xref xref
-
-
Constructor Details
-
Author
private Author(java.lang.String name)Instantiates an author with only required property. Use set methods for optional author properties. This private constructor is called byPathway.addAuthor(String name)
.- Parameters:
name
- the author name.
-
-
Method Details
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClones this author.- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
getName
public java.lang.String getName()Returns the name of this author.- Returns:
- name the name of this author.
-
setName
public void setName(java.lang.String v)Sets the name of this author.- Parameters:
v
- the name of this author.
-
getUsername
public java.lang.String getUsername()Returns the username of this author.- Returns:
- username the username of this author.
-
setUsername
public void setUsername(java.lang.String v)Sets the username of this author.- Parameters:
v
- the username of this author.
-
getOrder
public int getOrder()Returns the authorship order of this author.- Returns:
- order the authorship order.
-
setOrder
public void setOrder(int v)Sets the authorship order of this author.- Parameters:
v
- the authorship order.
-
getXref
public org.bridgedb.Xref getXref()Returns the Xref for the author.- Returns:
- xref the xref of the author.
-
setXref
public void setXref(org.bridgedb.Xref v)Sets the Xref for the author.- Parameters:
v
- the xref of the author.
-
toString
public java.lang.String toString()Writes author out as a string.- Overrides:
toString
in classjava.lang.Object
-