|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.biojava.utils.AbstractChangeable
|
+--org.biojava.bio.seq.FeatureTypes.RepositoryImpl
A simple implementation of a Repository.
| Nested Class Summary |
| Nested classes inherited from class org.biojava.bio.Annotatable |
Annotatable.AnnotationForwarder |
| Field Summary |
| Fields inherited from interface org.biojava.bio.Annotatable |
ANNOTATION |
| Constructor Summary | |
FeatureTypes.RepositoryImpl(java.lang.String name)
Create a named repository. |
|
| Method Summary | |
FeatureTypes.Type |
createType(java.lang.String name,
FeatureFilter schema,
java.util.Set parents)
Create a new type in this repository. |
Annotation |
getAnnotation()
Should return the associated annotation object. |
protected ChangeSupport |
getChangeSupport(ChangeType ct)
Called to retrieve the ChangeSupport for this object |
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. |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
public FeatureTypes.RepositoryImpl(java.lang.String name)
name - the name of this repository| Method Detail |
protected ChangeSupport getChangeSupport(ChangeType ct)
AbstractChangeable
getChangeSupport in class AbstractChangeablepublic Annotation getAnnotation()
Annotatable
getAnnotation in interface Annotatablepublic java.lang.String getName()
FeatureTypes.RepositoryThe name of this repository.
This will be the ${repository} component of any URIs of types defined here.
getName in interface FeatureTypes.Repositorypublic java.util.Set getTypes()
FeatureTypes.Repository
getTypes in interface FeatureTypes.Repository
public FeatureTypes.Type getType(java.lang.String name)
throws java.util.NoSuchElementException
FeatureTypes.Repository
getType in interface FeatureTypes.Repositoryname - the name of the Type
java.util.NoSuchElementException - if that type can not be found
public FeatureTypes.Type createType(java.lang.String name,
FeatureFilter schema,
java.util.Set parents)
name - the Type nameschema - the FeatureFilter defining the typeparents - the Set (possibly empty) of parent URIs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||