edu.iris.Fissures.seed.container
Class DictionaryBlocketteHolder

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--edu.iris.Fissures.seed.container.DictionaryBlocketteHolder
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class DictionaryBlocketteHolder
extends java.util.Vector

Title:

Description:

Copyright: Copyright (c) 2003

Company:

See Also:
Serialized Form

Field Summary
(package private)  int[] lookupCount
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 Blockette getBlocketteByID(int num)
           
static DictionaryBlocketteHolder getInstance()
           
 int getLookupID(Blockette blk)
          given a blockette of type dictionary (30-34), get the lookup ID of this type and add it to my lookup container.
 int getLookupID(int blkNum, java.lang.String[] vals)
          given a blockette of type dictionary (30-34), get the lookup ID of this type and add it to my lookup container.
 java.util.Iterator iterator()
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
static void main(java.lang.String[] args)
           
 Blockette makeLookupBlockette(int num, RespItem ri, java.util.Vector vect)
          This method creates blockettes for use as dictionary lookup blockettes given an initialization string.
 Blockette makeLookupBlockette30(java.lang.String val, java.util.Vector stringVals)
          This method creates blockettes for use as dictionary lookup blockettes given a vector of initialization strings.
 Blockette makeLookupBlockette31(java.lang.String val)
           
 Blockette makeLookupBlockette32(java.lang.String name, java.lang.String date, java.lang.String publisher)
           
 Blockette makeLookupBlockette33(java.lang.String abbreviation)
           
 Blockette makeLookupBlockette34(java.lang.String name)
           
 Blockette makeLookupBlockette35(java.util.Vector stas, java.util.Vector locs, java.util.Vector chans, java.util.Vector subChans, java.util.Vector weights)
           
protected  int setLookupBlockette(Blockette newB, Blockette tmp, int fieldpos)
           
 void setRespSeedObjectBuilder(RespSeedObjectBuilder tsob)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lookupCount

int[] lookupCount
Method Detail

getInstance

public static DictionaryBlocketteHolder getInstance()

listIterator

public java.util.ListIterator listIterator(int index)
Overrides:
listIterator in class java.util.AbstractList

listIterator

public java.util.ListIterator listIterator()
Overrides:
listIterator in class java.util.AbstractList

iterator

public java.util.Iterator iterator()
Overrides:
iterator in class java.util.AbstractList

getLookupID

public int getLookupID(Blockette blk)
given a blockette of type dictionary (30-34), get the lookup ID of this type and add it to my lookup container. This will avoid duplicates in the dictionary blockettes.
Parameters:
blk -  
Returns:
 

getBlocketteByID

public Blockette getBlocketteByID(int num)

getLookupID

public int getLookupID(int blkNum,
                       java.lang.String[] vals)
given a blockette of type dictionary (30-34), get the lookup ID of this type and add it to my lookup container. This will avoid duplicates in the dictionary blockettes.
Parameters:
blk -  
Returns:
 

makeLookupBlockette30

public Blockette makeLookupBlockette30(java.lang.String val,
                                       java.util.Vector stringVals)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception
This method creates blockettes for use as dictionary lookup blockettes given a vector of initialization strings.
Parameters:
num -  
indexPos - - position in the blockette that holds the value that needs to be looked up
vals -  
Returns:
 
Throws:
edu.iris.Fissures.seed.exception.SeedException -  

makeLookupBlockette31

public Blockette makeLookupBlockette31(java.lang.String val)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception

makeLookupBlockette32

public Blockette makeLookupBlockette32(java.lang.String name,
                                       java.lang.String date,
                                       java.lang.String publisher)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception

makeLookupBlockette33

public Blockette makeLookupBlockette33(java.lang.String abbreviation)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception

makeLookupBlockette34

public Blockette makeLookupBlockette34(java.lang.String name)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception

makeLookupBlockette35

public Blockette makeLookupBlockette35(java.util.Vector stas,
                                       java.util.Vector locs,
                                       java.util.Vector chans,
                                       java.util.Vector subChans,
                                       java.util.Vector weights)
                                throws edu.iris.Fissures.seed.exception.SeedException,
                                       edu.iris.Fissures.seed.exception.BuilderException,
                                       java.lang.Exception

makeLookupBlockette

public Blockette makeLookupBlockette(int num,
                                     RespItem ri,
                                     java.util.Vector vect)
                              throws edu.iris.Fissures.seed.exception.SeedException,
                                     edu.iris.Fissures.seed.exception.BuilderException,
                                     java.lang.Exception
This method creates blockettes for use as dictionary lookup blockettes given an initialization string.
Parameters:
num -  
indexPos - - position in the blockette that holds the value that needs to be looked up
vals -  
Returns:
 
Throws:
edu.iris.Fissures.seed.exception.SeedException -  

setLookupBlockette

protected int setLookupBlockette(Blockette newB,
                                 Blockette tmp,
                                 int fieldpos)
                          throws edu.iris.Fissures.seed.exception.SeedException

setRespSeedObjectBuilder

public void setRespSeedObjectBuilder(RespSeedObjectBuilder tsob)

main

public static void main(java.lang.String[] args)