|
||||||||||
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. |
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" |
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 Namespace
acronym
- the acronym for the namespace.
ChangeVetoException
- in case of objections.public void setAuthority(String authority) throws ChangeVetoException
setAuthority
in interface Namespace
authority
- the name of the namespace authority.
ChangeVetoException
- in case of objections.public void setDescription(String description) throws ChangeVetoException
setDescription
in interface Namespace
description
- the description of the namespace.
ChangeVetoException
- in case of objections.public void setURI(URI URI) throws ChangeVetoException
setURI
in interface Namespace
URI
- the URI of the authority.
ChangeVetoException
- in case of objections.public String getAcronym()
getAcronym
in interface Namespace
public String getAuthority()
getAuthority
in interface Namespace
public String getDescription()
getDescription
in interface Namespace
public String getName()
getName
in interface Namespace
public URI getURI()
getURI
in interface Namespace
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Integer getId()
public void setId(Integer id)
id
- the Hibernate ID, if using Hibernate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |