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, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public SimpleNamespace(String name)
name
- the name of the namespace.protected SimpleNamespace()
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()
public int compareTo(Object o)
compareTo
in interface Comparable
public Integer getId()
Copyright © 2014 BioJava. All rights reserved.