public class SimpleNamespace extends AbstractChangeable implements Namespace
ACRONYM, AUTHORITY, DESCRIPTION, NAME| Modifier | Constructor and Description |
|---|---|
protected |
SimpleNamespace() |
|
SimpleNamespace(String name)
Creates a new instance of SimpleNamespace with the given name,
which cannot be null.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Namespaces are compared only by name.
|
boolean |
equals(Object obj)
Namespaces are equal only by name.
|
String |
getAcronym()
If the namespace has an acronym, this will return it.
|
String |
getAuthority()
This method will return the authority that governs the namespace.
|
String |
getDescription()
Returns a description of this namespace.
|
Integer |
getId()
Gets the Hibernate ID.
|
String |
getName()
The name of the namespace is immutable and must be set by the constructor
of the instantiating class.
|
URI |
getURI()
If the namespace has a URI, this will return it.
|
int |
hashCode() |
void |
setAcronym(String acronym)
Sets an optional acronym for the namespace.
|
void |
setAuthority(String authority)
This method sets the authority that governs the namespace.
|
void |
setDescription(String description)
This method sets a description for the namespace.
|
void |
setId(Integer id)
Sets the Hibernate ID.
|
void |
setURI(URI URI)
Sets an optional URI for the namespace.
|
String |
toString()
Form: "name"
|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic SimpleNamespace(String name)
name - the name of the namespace.protected SimpleNamespace()
public void setAcronym(String acronym) throws ChangeVetoException
setAcronym in interface Namespaceacronym - the acronym for the namespace.ChangeVetoException - in case of objections.public void setAuthority(String authority) throws ChangeVetoException
setAuthority in interface Namespaceauthority - the name of the namespace authority.ChangeVetoException - in case of objections.public void setDescription(String description) throws ChangeVetoException
setDescription in interface Namespacedescription - the description of the namespace.ChangeVetoException - in case of objections.public void setURI(URI URI) throws ChangeVetoException
setURI in interface NamespaceURI - the URI of the authority.ChangeVetoException - in case of objections.public String getAcronym()
getAcronym in interface Namespacepublic String getAuthority()
getAuthority in interface Namespacepublic String getDescription()
getDescription in interface Namespacepublic String getName()
public int compareTo(Object o)
compareTo in interface Comparablepublic Integer getId()
Copyright © 2020 BioJava. All rights reserved.