|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojavax.SimpleNamespace
public class SimpleNamespace
A basic Namespace implemenation.
| Field Summary |
|---|
| Fields inherited from interface org.biojavax.Namespace |
|---|
ACRONYM, AUTHORITY, DESCRIPTION, NAME |
| Constructor Summary | |
|---|---|
protected |
SimpleNamespace()
|
|
SimpleNamespace(String name)
Creates a new instance of SimpleNamespace with the given name, which cannot be null. |
| Method Summary | |
|---|---|
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. |
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 |
setURI(URI URI)
Sets an optional URI for the namespace. |
String |
toString()
Form: "name" |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| 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 SimpleNamespace(String name)
name - the name of the namespace.protected SimpleNamespace()
| Method Detail |
|---|
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()
getName in interface Namespacepublic URI getURI()
getURI in interface Namespacepublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||