org.datamixer.collections
Class DatamixerCollection

java.lang.Object
  extended byorg.datamixer.collections.DatamixerCollection
All Implemented Interfaces:
java.util.Collection
Direct Known Subclasses:
CollectionWrapper, DatamixerList

public abstract class DatamixerCollection
extends java.lang.Object
implements java.util.Collection


Field Summary
protected  int dataType_
          datatype
protected  boolean debugEnabled_
          true if debugging is enabled
protected  java.lang.String formatPattern_
          format pattern
protected  java.lang.String id_
          default id for iterators
protected  boolean initialized_
          true if initialized
protected  org.apache.log4j.Logger logger_
          logger
protected  java.lang.String name_
          default name for iterators
protected  boolean repeat_
          default repeat flag for iterators
 
Constructor Summary
DatamixerCollection()
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 boolean addAll(java.util.Collection c)
           
 void clear()
           
abstract  boolean contains(java.lang.Object o)
           
abstract  boolean containsAll(java.util.Collection c)
           
protected abstract  DatamixerIterator createIterator()
          Returns an iterator over the elements contained in this collection.
protected abstract  int doGetSize()
           
protected  void doInitialize()
           
protected  void error(java.lang.String errmsg)
           
 DatamixerIterator getDatamixerIterator()
          Returns a DatamixerIterator over the elements in this collection.
 int getDataType()
           
 java.lang.String getFormatPattern()
          Returns the format pattern.
 java.lang.String getId()
          Returns this iterator's id.
 java.lang.String getName()
          Returns the value name.
 boolean getRepeat()
          Returns the repeat flag.
 int getSize()
          Returns the number of elements in this collection.
protected  void initialize()
          Initialize this instance.
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection c)
           
 boolean retainAll(java.util.Collection c)
           
 void setDataType(int value)
           
 void setFormatPattern(java.lang.String value)
          Sets the format pattern.
 void setId(java.lang.String id)
          Sets this iterator's id.
 void setName(java.lang.String name)
          Set the value name.
 void setRepeat(boolean value)
          Sets the repeat flag.
 int size()
           
abstract  java.lang.Object[] toArray()
           
abstract  java.lang.Object[] toArray(java.lang.Object[] target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

id_

protected java.lang.String id_
default id for iterators


repeat_

protected boolean repeat_
default repeat flag for iterators


dataType_

protected int dataType_
datatype


formatPattern_

protected java.lang.String formatPattern_
format pattern


name_

protected java.lang.String name_
default name for iterators


initialized_

protected boolean initialized_
true if initialized


logger_

protected org.apache.log4j.Logger logger_
logger


debugEnabled_

protected boolean debugEnabled_
true if debugging is enabled

Constructor Detail

DatamixerCollection

public DatamixerCollection()
Method Detail

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection

addAll

public boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.Collection

clear

public void clear()
Specified by:
clear in interface java.util.Collection

contains

public abstract boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection

containsAll

public abstract boolean containsAll(java.util.Collection c)
Specified by:
containsAll in interface java.util.Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.Collection

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection

removeAll

public boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.Collection

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.Collection

size

public int size()
Specified by:
size in interface java.util.Collection

toArray

public abstract java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection

toArray

public abstract java.lang.Object[] toArray(java.lang.Object[] target)
Specified by:
toArray in interface java.util.Collection

getId

public java.lang.String getId()
Returns this iterator's id.


setId

public void setId(java.lang.String id)
Sets this iterator's id.


getRepeat

public boolean getRepeat()
Returns the repeat flag.


setRepeat

public void setRepeat(boolean value)
Sets the repeat flag.


getDataType

public int getDataType()

setDataType

public void setDataType(int value)

getFormatPattern

public java.lang.String getFormatPattern()
Returns the format pattern.


setFormatPattern

public void setFormatPattern(java.lang.String value)
Sets the format pattern.


getName

public java.lang.String getName()
Returns the value name.


setName

public void setName(java.lang.String name)
Set the value name.


getDatamixerIterator

public DatamixerIterator getDatamixerIterator()
Returns a DatamixerIterator over the elements in this collection. This is a convenience method that simply casts the return value from iterator() to a DatamixerIterator.


getSize

public int getSize()
Returns the number of elements in this collection. Throws a RuntimeException if the collection has no upper bound. Otherwise if the collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:
the number of elements in this collection.

doGetSize

protected abstract int doGetSize()

initialize

protected void initialize()
                   throws DatamixerException
Initialize this instance.

Throws:
DatamixerException

doInitialize

protected void doInitialize()
                     throws DatamixerException
Throws:
DatamixerException

createIterator

protected abstract DatamixerIterator createIterator()
Returns an iterator over the elements contained in this collection.

Returns:
an iterator over the elements contained in this collection.

error

protected void error(java.lang.String errmsg)
              throws DatamixerException
Throws:
DatamixerException


Copyright © 2004-2006 datamixer.org. All Rights Reserved.