3737import org .simpleframework .xml .*;
3838
3939@ Root (name ="Collection" )
40- public class GXSimpleCollection <T > extends Vector <T > implements Serializable , IGxJSONAble , IGxJSONSerializable {
40+ public class GXSimpleCollection <T > extends GXBaseList <T > {
4141
4242 @ ElementList (entry ="item" ,inline =true )
4343 GXSimpleCollection <T > list ;
@@ -50,6 +50,7 @@ public class GXSimpleCollection<T> extends Vector<T> implements Serializable, IG
5050
5151 public GXSimpleCollection ()
5252 {
53+ super ();
5354 }
5455
5556 public GXSimpleCollection (Class <T > elementsType , String elementsName , String containedXmlNamespace )
@@ -69,6 +70,7 @@ public GXSimpleCollection(Class<T> elementsType, String elementsName, String con
6970
7071 public GXSimpleCollection (Class <T > elementsType , String elementsName , String containedXmlNamespace , Vector data , int remoteHandle )
7172 {
73+ super ();
7274 this .elementsType = elementsType ;
7375 this .elementsName = elementsName ;
7476 xmlElementsName = elementsName ;
@@ -432,11 +434,6 @@ public Object currentItem()
432434
433435 //-- Este add se usa cuando se quiere agregar a las lineas de un BC sin usar la logica de manteniomiento del estado
434436 // de la linea
435- @ SuppressWarnings ("unchecked" )
436- public void addBase ( Object item )
437- {
438- super .add ((T )item );
439- }
440437 protected String getMethodName (boolean isGet , String method )
441438 {
442439 String getName = elementsType .getName ();
@@ -456,19 +453,6 @@ public void addInternal(Object item)
456453 super .add ((T )item );
457454 }
458455
459- @ SuppressWarnings ("unchecked" )
460- public void add (Object item , int index )
461- {
462- if (index < 1 || index > size ())
463- {
464- add ((T )item ); //this.add, GXBCLevelCollection.add for example
465- }
466- else
467- {
468- super .add (index - 1 , (T )item ); //Vector insert element
469- }
470- }
471-
472456 public void add (byte item )
473457 {
474458 addInternal (new Byte (item ));
@@ -520,11 +504,6 @@ public void addIntegralConstant(double item)
520504 }
521505 }
522506
523- @ SuppressWarnings ("unchecked" )
524- public void addObject (Object obj ){
525- super .add ((T )obj );
526- }
527-
528507 public void add (long item )
529508 {
530509 addInternal (new Long (item ));
@@ -602,11 +581,6 @@ public void add(double item, int index)
602581 addIntegralConstant (item , index );
603582 }
604583
605- public void removeAllItems ()
606- {
607- super .clear ();
608- }
609-
610584 public void clearCollection ()
611585 {
612586 removeAllItems ();
@@ -694,30 +668,6 @@ public boolean remove(char item)
694668 return remove (new Character (item ));
695669 }
696670
697- public byte removeItem (int index )
698- {
699- T item = null ;
700- if (index > 0 && index <= size ())
701- {
702- item = super .remove ((int )index - 1 );//Vector.remove(int)
703- return (byte )1 ;
704- }
705- return (byte )0 ;
706- }
707-
708- public byte removeElement (double index )
709- {
710- if (index > 0 && index <= size ())
711- {
712- super .remove ((int )index - 1 );//Vector.remove(int)
713- return (byte )1 ;
714- }
715- else
716- {
717- return (byte )0 ;
718- }
719- }
720-
721671 /** Ordena la Collection de acuerdo a un proc pasado por parametro
722672 * El proc tiene que recibir como parms
723673 * parm(IN: &SDT1, IN: &SDT2, OUT: INT)
0 commit comments