public interface Namespace extends Comparable, Changeable
BioEntry
Modifier and Type | Field and Description |
---|---|
static ChangeType |
ACRONYM |
static ChangeType |
AUTHORITY |
static ChangeType |
DESCRIPTION |
static ChangeType |
NAME |
static ChangeType |
URI |
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
static final ChangeType NAME
static final ChangeType AUTHORITY
static final ChangeType DESCRIPTION
static final ChangeType ACRONYM
static final ChangeType URI
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.Copyright © 2014 BioJava. All rights reserved.