Class SimpleSequenceFactory

  • All Implemented Interfaces:
    java.io.Serializable, SequenceFactory

    public class SimpleSequenceFactory
    extends java.lang.Object
    implements SequenceFactory, java.io.Serializable
    A no-frills implementation of SequenceFactory that produces SimpleSequence objects.
    Author:
    Matthew Pocock, Thomas Down
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleSequenceFactory

        public SimpleSequenceFactory()
    • Method Detail

      • getFeatureRealizer

        public FeatureRealizer getFeatureRealizer()
        Returns the FeatureRealizer set by "setFeatureRealizer".
      • setFeatureRealizer

        public void setFeatureRealizer​(FeatureRealizer fr)
        Set the FeatureRealizer used by new sequences created by this factory.
      • createSequence

        public Sequence createSequence​(SymbolList symList,
                                       java.lang.String uri,
                                       java.lang.String name,
                                       Annotation annotation)
        Description copied from interface: SequenceFactory
        Creates a sequence using these parameters.
        Specified by:
        createSequence in interface SequenceFactory
        Parameters:
        symList - the SymbolList defining the 'sequence'
        uri - the uri of the sequence. This will be returned by the getURN() method on Sequence.
        name - the name
        annotation - a hint for the annotation of the resulting sequence
        Returns:
        a new Sequence object