org.sbml.jsbml
public class Creator extends AnnotationElement
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
email
email of the creator
|
private java.lang.String |
familyName
Family name of the creator
|
private java.lang.String |
givenName
Given name of the creator
|
private static org.apache.log4j.Logger |
logger
A
Logger for this class. |
private java.lang.String |
organisation
Organisation name of the creator.
|
private java.util.Map<java.lang.String,java.lang.String> |
otherAttributes
Holding any additional vCard elements.
|
private static long |
serialVersionUID
Generated serial version identifier.
|
static java.lang.String |
URI_RDF_VCARD_NS
URI for the RDF syntax name space definition for VCards.
|
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
Creator()
Creates a
Creator instance. |
Creator(Creator creator)
|
Creator(java.lang.String givenName,
java.lang.String familyName,
java.lang.String organization,
java.lang.String email)
Creates a
Creator instance. |
Modifier and Type | Method and Description |
---|---|
Creator |
clone() |
boolean |
equals(java.lang.Object object) |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
java.lang.String |
getEmail()
Returns the email from the
Creator . |
java.lang.String |
getFamilyName()
Returns the familyName from the
Creator . |
java.lang.String |
getGivenName()
Returns the givenName from the
Creator . |
java.lang.String |
getOrganisation()
Returns the organisation from the
Creator . |
java.lang.String |
getOrganization()
Returns the organisation from the
Creator . |
java.lang.String |
getOtherAttribute(java.lang.String attributeName)
Deprecated.
those other attributes are not saved when writing the model
|
java.util.Map<java.lang.String,java.lang.String> |
getOtherAttributes()
Deprecated.
those other attributes are not saved when writing the model
|
int |
hashCode() |
boolean |
isSetEmail()
Returns
true or false depending on whether this
Creator 's email has been set. |
boolean |
isSetFamilyName()
Returns
true or false depending on whether this
Creator 's familyName has been set. |
boolean |
isSetGivenName()
Returns
true or false depending on whether this
Creator 's givenName has been set. |
boolean |
isSetOrganisation()
Returns
true or false depending on whether this
Creator 's organisation has been set. |
boolean |
isSetOrganization()
Returns
true or false depending on whether this
Creator 's organisation has been set. |
boolean |
isSetOtherAttributes()
Deprecated.
those other attributes are not saved when writing the model
|
boolean |
readAttribute(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Returns
true if the XML attribute is known by this Creator . |
int |
setEmail(java.lang.String email)
Sets the email if it follows the syntax rules of valid e-mail addresses
according to
http://en.wikipedia.org/wiki/E-mail_address.
|
int |
setFamilyName(java.lang.String familyName)
Sets the family name
|
int |
setGivenName(java.lang.String givenName)
Sets the given name
|
void |
setOrganisation(java.lang.String organisation)
Sets the organisation
|
void |
setOrganization(java.lang.String organization)
Sets the organisation
|
void |
setOtherAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Deprecated.
those other attributes are not saved when writing the model
|
java.lang.String |
toString()
Returns the information about the
Creator as a String . |
int |
unsetEmail()
Unsets the email of this
Creator . |
int |
unsetFamilyName()
Unsets the familyName of this
Creator . |
int |
unsetGivenName()
Unsets the givenName of this
Creator . |
void |
unsetOrganization()
Unsets the organisation of this
Creator . |
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
private static final transient org.apache.log4j.Logger logger
Logger
for this class.private static final long serialVersionUID
public static final transient java.lang.String URI_RDF_VCARD_NS
private java.lang.String email
private java.lang.String familyName
private java.lang.String givenName
private java.lang.String organisation
private java.util.Map<java.lang.String,java.lang.String> otherAttributes
public Creator()
Creator
instance. By default, the email, familyName,
givenName, organisation are null
.public Creator(Creator creator)
creator
- public Creator(java.lang.String givenName, java.lang.String familyName, java.lang.String organization, java.lang.String email)
Creator
instance.givenName
- familyName
- organization
- email
- public Creator clone()
clone
in class AbstractTreeNode
public boolean equals(java.lang.Object object)
equals
in class AbstractTreeNode
public boolean getAllowsChildren()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
public int getChildCount()
public java.lang.String getEmail()
Creator
. Returns an empty String if it is
not set.Creator
. Returns an empty String if it is
not set.public java.lang.String getFamilyName()
Creator
. Returns an empty String if
it is not set.Creator
. Returns an empty String if
it is not set.public java.lang.String getGivenName()
Creator
. Returns an empty String if
it is not set.Creator
. Returns an empty String if
it is not set.public java.lang.String getOrganisation()
Creator
. Returns an empty String
if it is not set.Creator
. Returns an empty String
if it is not set.public java.lang.String getOrganization()
Creator
. Returns an empty String
if it is not set.
Equal to getOrganisation()
Creator
. Returns an empty String
if it is not set.public int hashCode()
hashCode
in class AbstractTreeNode
public boolean isSetEmail()
true
or false depending on whether this
Creator
's email has been set.true
if the email of this Creator
is not null
.public boolean isSetFamilyName()
true
or false depending on whether this
Creator
's familyName has been set.true
if the familyName of this Creator
is not null
.public boolean isSetGivenName()
true
or false depending on whether this
Creator
's givenName has been set.true
if the givenName of this Creator
is not null
.public boolean isSetOrganisation()
true
or false depending on whether this
Creator
's organisation has been set.true
if the organisation of this Creator
is not null
.public boolean isSetOrganization()
true
or false depending on whether this
Creator
's organisation has been set.
Equal to isSetOrganisation()
true
or false depending on whether this
Creator
's organisation has been set.public boolean readAttribute(java.lang.String elementName, java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
true
if the XML attribute is known by this Creator
.true
if the XML attribute is known by this Creator
.public int setEmail(java.lang.String email)
email
- JSBML.OPERATION_SUCCESS
public int setFamilyName(java.lang.String familyName)
familyName
- JSBML.OPERATION_SUCCESS
public int setGivenName(java.lang.String givenName)
givenName
- JSBML.OPERATION_SUCCESS
public void setOrganisation(java.lang.String organisation)
organisation
- public void setOrganization(java.lang.String organization)
Equal to setOrganisation(String)
.
organization
- public void setOtherAttribute(java.lang.String attributeName, java.lang.String attributeValue)
attributeName
- attributeValue
- public java.util.Map<java.lang.String,java.lang.String> getOtherAttributes()
public boolean isSetOtherAttributes()
public java.lang.String getOtherAttribute(java.lang.String attributeName)
attributeName
- public java.lang.String toString()
Creator
as a String
.toString
in class AbstractTreeNode
Creator
as a String
.public int unsetEmail()
Creator
.JSBML.OPERATION_SUCCESS
public int unsetFamilyName()
Creator
.JSBML.OPERATION_SUCCESS
public int unsetGivenName()
Creator
.JSBML.OPERATION_SUCCESS
public void unsetOrganization()
Creator
.