public interface Namespace extends java.lang.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 |
|---|---|
java.lang.String |
getAcronym()
If the namespace has an acronym, this will return it.
|
java.lang.String |
getAuthority()
This method will return the authority that governs the namespace.
|
java.lang.String |
getDescription()
Returns a description of this namespace.
|
java.lang.String |
getName()
The name of the namespace is immutable and must be set by the constructor
of the instantiating class.
|
java.net.URI |
getURI()
If the namespace has a URI, this will return it.
|
void |
setAcronym(java.lang.String acronym)
Sets an optional acronym for the namespace.
|
void |
setAuthority(java.lang.String authority)
This method sets the authority that governs the namespace.
|
void |
setDescription(java.lang.String description)
This method sets a description for the namespace.
|
void |
setURI(java.net.URI URI)
Sets an optional URI for the namespace.
|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerstatic final ChangeType NAME
static final ChangeType AUTHORITY
static final ChangeType DESCRIPTION
static final ChangeType ACRONYM
static final ChangeType URI
java.lang.String getName()
java.lang.String getAuthority()
void setAuthority(java.lang.String authority)
throws ChangeVetoException
authority - the name of the namespace authority.ChangeVetoException - in case of objections.java.lang.String getDescription()
void setDescription(java.lang.String description)
throws ChangeVetoException
description - the description of the namespace.ChangeVetoException - in case of objections.java.lang.String getAcronym()
void setAcronym(java.lang.String acronym)
throws ChangeVetoException
acronym - the acronym for the namespace.ChangeVetoException - in case of objections.java.net.URI getURI()
void setURI(java.net.URI URI)
throws ChangeVetoException
URI - the URI of the authority.ChangeVetoException - in case of objections.