cds.savot.model
Class SavotSet

java.lang.Object
  extended by cds.savot.model.SavotSet
Direct Known Subclasses:
AttributeSet, CoosysSet, DefinitionsSet, DescriptionSet, FieldRefSet, FieldSet, GroupSet, InfoSet, LinkSet, OptionSet, OtherSet, ParamRefSet, ParamSet, ResourceSet, TableSet, TDSet, TRSet, ValuesSet

public class SavotSet
extends java.lang.Object

Generic class for other set classes

Version:
2.6 Copyright CDS 2002-2005 (kickoff 31 May 02)
Author:
Andre Schaaff
See Also:
SavotSet

Constructor Summary
SavotSet()
          Constructor
 
Method Summary
 void addItem(java.lang.Object item)
          Add an item to the set
 java.lang.Object getItemAt(int index)
          Get an item at a given position (index)
 int getItemCount()
          Get the number of items
 java.util.Vector getItems()
          Get the whole set
 void removeAllItems()
          Remove all items
 void removeItemAt(int index)
          Remove an item at a given position (index)
 void setItems(java.util.Vector set)
          Set the whole set to a given set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavotSet

public SavotSet()
Constructor

Method Detail

addItem

public void addItem(java.lang.Object item)
Add an item to the set

Parameters:
item -

getItemAt

public java.lang.Object getItemAt(int index)
Get an item at a given position (index)

Parameters:
index -
Returns:
Object

removeItemAt

public void removeItemAt(int index)
Remove an item at a given position (index)

Parameters:
index -

removeAllItems

public void removeAllItems()
Remove all items


setItems

public void setItems(java.util.Vector set)
Set the whole set to a given set

Parameters:
set -

getItems

public java.util.Vector getItems()
Get the whole set

Returns:
a Vector

getItemCount

public int getItemCount()
Get the number of items

Returns:
int


Copyright © 2009 UDS/CNRS