|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Namespace
The namespace of an entry in a database schema. Relates directly to the BioDatabase table in BioSQL. All BioEntry objects belong to namespaces.
BioEntry
Field Summary | |
---|---|
static ChangeType |
ACRONYM
|
static ChangeType |
AUTHORITY
|
static ChangeType |
DESCRIPTION
|
static ChangeType |
NAME
|
static ChangeType |
URI
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
static final ChangeType NAME
static final ChangeType AUTHORITY
static final ChangeType DESCRIPTION
static final ChangeType ACRONYM
static final ChangeType URI
Method Detail |
---|
String getName()
String getAuthority()
void setAuthority(String authority) throws ChangeVetoException
authority
- the name of the namespace authority.
ChangeVetoException
- in case of objections.String getDescription()
void setDescription(String description) throws ChangeVetoException
description
- the description of the namespace.
ChangeVetoException
- in case of objections.String getAcronym()
void setAcronym(String acronym) throws ChangeVetoException
acronym
- the acronym for the namespace.
ChangeVetoException
- in case of objections.URI getURI()
void setURI(URI URI) throws ChangeVetoException
URI
- the URI of the authority.
ChangeVetoException
- in case of objections.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |