org.biojava.bio.seq
Interface FeatureTypes.Repository
- All Superinterfaces:
- Annotatable, Changeable
- All Known Implementing Classes:
- FeatureTypes.RepositoryImpl
- Enclosing interface:
- FeatureTypes
- public static interface FeatureTypes.Repository
- extends Annotatable
A named collection of Types.
- Since:
- 1.3
- Author:
- Matthew Pocock
Method Summary |
java.lang.String |
getName()
The name of this repository. |
FeatureTypes.Type |
getType(java.lang.String name)
Find the type for a name. |
java.util.Set |
getTypes()
Get a set of all type names defined in this repository. |
getName
public java.lang.String getName()
The name of this repository.
This will be the ${repository} component of any URIs of types defined
here.
- Returns:
- the name of the repository
getTypes
public java.util.Set getTypes()
- Get a set of all type names defined in this repository.
- Returns:
- a Set of Type names as Strings
getType
public FeatureTypes.Type getType(java.lang.String name)
throws java.util.NoSuchElementException
- Find the type for a name.
- Parameters:
name
- the name of the Type
- Returns:
- the Type of that name
- Throws:
java.util.NoSuchElementException
- if that type can not be found