Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.ac.man.bioinf.sequence
Class DefaultEditableSequence

    java.lang.Object
      |
      +--uk.ac.man.bioinf.sequence.AbstractSequence
            |
            +--uk.ac.man.bioinf.sequence.AbstractMutableSequence
                  |
                  +--uk.ac.man.bioinf.sequence.AbstractEditableSequence
                        |
                        +--uk.ac.man.bioinf.sequence.DefaultEditableSequence

All Implemented Interfaces:
  EditableSequence, Identifiable, MutableSequence, Sequence, SequenceEventProvider

public class DefaultEditableSequence
extends AbstractEditableSequence
implements EditableSequence

DefaultEditableSequence.java Created: Thu Mar 2 20:27:46 2000

Version:
  $Id: DefaultEditableSequence.java,v 1.6 2001/04/11 17:04:43 lord Exp $
Author:
  Phillip Lord

Constructor Summary
`DefaultEditableSequence(Element[] elements, SequenceType type, Identifier identifier)`
`DefaultEditableSequence(Sequence sequence)`
`DefaultEditableSequence(Sequence sequence, SequenceType type)`

Method Summary
`protected Element` | `deleteElementAtQuietly(int index)` Do the actual deletion but dont do any event signalling.
`Element` | `getElementAt(int index)` Returns an element at a given location.
`Identifier` | `getIdentifier()`
`int` | `getLength()` Returns the length of the sequence.
`Element[]` | `getSequenceAsElements()` Returns the sequence as an array of elements.
`protected void` | `insertElementAtQuietly(Element elem, int index)`
`protected Element` | `setElementAtQuietly(Element elem, int index)`

Methods inherited from class uk.ac.man.bioinf.sequence.AbstractEditableSequence
`deleteElementAt, deleteElementAt, insertElementAt, insertElementAt, setElementAt, setElementAt`

Methods inherited from class uk.ac.man.bioinf.sequence.AbstractMutableSequence
`addSequenceListener, addVetoableSequenceListener, fireSequenceEvent, fireVetoableSequenceEvent, hasListeners, removeSequenceListener, removeVetoableSequenceListener`

Methods inherited from class uk.ac.man.bioinf.sequence.AbstractSequence
`checkRange, checkSequenceType, checkSequenceType, getElementAtAsChar, getSequenceAsChars, getSequenceIndexException, getSequenceType, getSequenceTypeException, getSubSequence`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface uk.ac.man.bioinf.sequence.EditableSequence
`deleteElementAt, deleteElementAt, insertElementAt, insertElementAt, setElementAt, setElementAt`

Methods inherited from interface uk.ac.man.bioinf.sequence.Sequence
`getElementAtAsChar, getSequenceAsChars, getSequenceType, getSubSequence`

Methods inherited from interface uk.ac.man.bioinf.sequence.event.SequenceEventProvider
`addSequenceListener, addVetoableSequenceListener, removeSequenceListener, removeVetoableSequenceListener`

Constructor Detail

### DefaultEditableSequence

    public DefaultEditableSequence(Element[] elements,
                                   SequenceType type,
                                   Identifier identifier)

### DefaultEditableSequence

    public DefaultEditableSequence(Sequence sequence,
                                   SequenceType type)

### DefaultEditableSequence

    public DefaultEditableSequence(Sequence sequence)

Method Detail

### getIdentifier

    public Identifier getIdentifier()

  Specified by:
    `getIdentifier` in interface `Identifiable`

### getElementAt

    public Element getElementAt(int index)

  Description copied from interface: `Sequence`
  Returns an element at a given location.

  Specified by:
    `getElementAt` in interface `Sequence`
  Parameters:
    `index` - the location of the target element
  Returns:
    the element

### getLength

    public int getLength()

  Description copied from interface: `Sequence`
  Returns the length of the sequence.

  Specified by:
    `getLength` in interface `Sequence`
  Returns:
    the length of the sequence

### getSequenceAsElements

    public Element[] getSequenceAsElements()

  Description copied from interface: `Sequence`
  Returns the sequence as an array of elements.

  Specified by:
    `getSequenceAsElements` in interface `Sequence`
  Returns:
    the sequence

### setElementAtQuietly

    protected Element setElementAtQuietly(Element elem,
                                          int index)

  Specified by:
    `setElementAtQuietly` in class `AbstractEditableSequence`

### insertElementAtQuietly

    protected void insertElementAtQuietly(Element elem,
                                          int index)

  Specified by:
    `insertElementAtQuietly` in class `AbstractEditableSequence`

### deleteElementAtQuietly

    protected Element deleteElementAtQuietly(int index)

  Description copied from class: `AbstractEditableSequence`
  Do the actual deletion but dont do any event signalling. This enables all the deletions to use this method without causing multiple events for deletions longer than one in length

  Specified by:
    `deleteElementAtQuietly` in class `AbstractEditableSequence`
  Parameters:
    `index` - the element to delete
  Returns:
    the element just deleted

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD