org.openmdx.base.collection
Class MarshallingSequentialList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList
              extended by org.openmdx.base.collection.MarshallingSequentialList
All Implemented Interfaces:
Serializable, Iterable, Collection, List, Reconstructable

public class MarshallingSequentialList
extends AbstractSequentialList
implements Reconstructable, Serializable

A Marshalling Sequential List

See Also:
Serialized Form

Nested Class Summary
protected  class MarshallingSequentialList.MarshallingIterator
           
 
Field Summary
protected  List list
           
protected  CollectionMarshaller marshaller
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MarshallingSequentialList(CollectionMarshaller marshaller, List list)
          Constructor
MarshallingSequentialList(Marshaller marshaller, List list)
          Constructor
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object element)
           
 void clear()
           
 boolean contains(Object element)
           
 Object get(int index)
           
protected  List getDelegate()
           
 int indexOf(Object arg0)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 int lastIndexOf(Object arg0)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 Object remove(int index)
           
 boolean remove(Object element)
           
 Object set(int index, Object arg1)
           
 int size()
           
 void write(OutputStream stream)
          Write part of a reconstructable object's state to an OutputStream (optional operation).
 
Methods inherited from class java.util.AbstractSequentialList
addAll
 
Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, removeAll, retainAll, toArray, toArray
 

Field Detail

list

protected transient List list

marshaller

protected CollectionMarshaller marshaller
Constructor Detail

MarshallingSequentialList

public MarshallingSequentialList(CollectionMarshaller marshaller,
                                 List list)
Constructor

Parameters:
marshaller -
list -

MarshallingSequentialList

public MarshallingSequentialList(Marshaller marshaller,
                                 List list)
Constructor

Parameters:
marshaller -
list -
Method Detail

add

public void add(int index,
                Object element)
Specified by:
add in interface List
Overrides:
add in class AbstractSequentialList

add

public boolean add(Object element)
Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class AbstractList

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List
Overrides:
clear in class AbstractList

contains

public boolean contains(Object element)
Specified by:
contains in interface Collection
Specified by:
contains in interface List
Overrides:
contains in class AbstractCollection

get

public Object get(int index)
Specified by:
get in interface List
Overrides:
get in class AbstractSequentialList

getDelegate

protected List getDelegate()
Returns:

indexOf

public int indexOf(Object arg0)
Specified by:
indexOf in interface List
Overrides:
indexOf in class AbstractList

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List
Overrides:
isEmpty in class AbstractCollection

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List
Overrides:
iterator in class AbstractSequentialList

lastIndexOf

public int lastIndexOf(Object arg0)
Specified by:
lastIndexOf in interface List
Overrides:
lastIndexOf in class AbstractList

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List
Overrides:
listIterator in class AbstractList

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List
Specified by:
listIterator in class AbstractSequentialList

remove

public Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class AbstractSequentialList

remove

public boolean remove(Object element)
Specified by:
remove in interface Collection
Specified by:
remove in interface List
Overrides:
remove in class AbstractCollection

set

public Object set(int index,
                  Object arg1)
Specified by:
set in interface List
Overrides:
set in class AbstractSequentialList

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

write

public void write(OutputStream stream)
           throws ServiceException
Write part of a reconstructable object's state to an OutputStream (optional operation).

Specified by:
write in interface Reconstructable
Parameters:
stream - OutputStream that holds part of a reconstructable object's state.
Throws:
ServiceException - if partial state streaming fails
ServiceException - NOT_SUPPORTED if the instance is not reconstructable


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.