|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.BibcodeList
Titre : BibcodeList.java
Description : Liste de bibcodes
Copyright : Copyright (c) 2002
Société :
Field Summary | |
private java.util.ArrayList |
bibcodelist
|
private static java.lang.String |
separator
MOD-BB 05-01-04 Ajout de cet attribut. |
Constructor Summary | |
BibcodeList()
Constructeur sans parametre |
|
BibcodeList(java.util.ArrayList list)
Constructeur avec un ArrayList en parametre |
|
BibcodeList(BibcodeList blist)
Constructeur par copie |
Method Summary | |
void |
add(Bibcode bibcode)
Ajout d'un objet Bibcode |
void |
add(int index,
Bibcode bibcode)
Insertion d'un objet Bibcode a une position donnee |
void |
clear()
Suppression de tous les elements de la liste |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
Bibcode |
get(int index)
Acces aux objets Bibcode (index commence a 0) |
boolean |
isEmpty()
Teste si la liste n'a pas d'elements |
boolean |
isList()
Retourne vrai si l'objet est une liste |
java.util.Iterator |
iterator()
Retourne un iterateur sur la liste des bibcodes |
void |
remove(Bibcode bibcode)
Suppression d'un objet Bibcode |
void |
remove(int index)
Suppression d'un objet bibcode suivant sa position dans la liste |
void |
set(java.util.ArrayList list)
Positionnement de l'attribut bibcodelist |
void |
set(int index,
Bibcode bibcode)
Modification d'un objet Bibcode |
static java.lang.String |
setSeparator(java.lang.String new_separator)
MOD-BB 05-01-04 Ajout de cette methode. |
int |
size()
Retourne la taille de la liste |
java.lang.String |
toString()
Edition de la liste des Bibcodes |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static java.lang.String separator
private java.util.ArrayList bibcodelist
Constructor Detail |
public BibcodeList()
public BibcodeList(java.util.ArrayList list)
list
- liste de bibcodes sous forme d'objets Bibcode ou de chaines de caracterespublic BibcodeList(BibcodeList blist)
Method Detail |
public void add(Bibcode bibcode)
bibcode
- objet Bibcode a ajouterpublic void add(int index, Bibcode bibcode)
index
- position de l'insertionbibcode
- object Bibcode a insererpublic Bibcode get(int index) throws java.lang.IndexOutOfBoundsException
index
- index de l'element accede
java.lang.IndexOutOfBoundsException
public void set(int index, Bibcode bibcode) throws java.lang.IndexOutOfBoundsException
index
- index de l'element a modifierbibcode
- nouvel objet Bibcode
java.lang.IndexOutOfBoundsException
public void set(java.util.ArrayList list)
list
- liste de bibcodes sous forme d'objets Bibcodes ou de chaines de caracteres
(les bibcodes doivent etre normalises)public void remove(Bibcode bibcode)
bibcode
- objet bibcode a supprimerpublic void remove(int index) throws java.lang.IndexOutOfBoundsException
index
- index de l'objet a supprimer
java.lang.IndexOutOfBoundsException
public int size()
public boolean isList()
public java.util.Iterator iterator()
public void clear()
public boolean isEmpty()
public java.lang.String toString()
public static java.lang.String setSeparator(java.lang.String new_separator)
new_separator
- Le nouveau seprateur.
public boolean equals(java.lang.Object o)
o
- Objet a comparer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |