|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.impl.TemplateUtils
public final class TemplateUtils
Common things you may want to do with feature templates.
Method Summary | |
---|---|
static Feature.Template |
instantiateTemplate(Feature feat)
This attempts to divine the 'best' template class for a feature and return a new instance readly for pupulating. |
static Feature.Template |
makeTemplate(Feature feat)
|
static void |
populate(Feature.Template templ,
Feature feat)
This attempts to populate the fields of a template using the publically accessible information in a feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Feature.Template instantiateTemplate(Feature feat) throws BioException
This will (hopefully) be the most derived feature interface implemented by a feature class. This code assumes that feature interfaces are singly inherited. Of course, with the current template system, it is a fairly safe assumption.
BioException
public static void populate(Feature.Template templ, Feature feat) throws BioException
templ
- the Feature.Template instance to populatefeat
- the Feature to read info from
BioException
public static Feature.Template makeTemplate(Feature feat) throws BioException
BioException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |