Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Class FieldMapCollection

java.lang.Object
  extended by com.softwarefx.chartfx.server.FieldMapCollection
All Implemented Interfaces:
Iterable<FieldMap>, Collection<FieldMap>

public class FieldMapCollection
extends Object
implements Iterable<FieldMap>, Collection<FieldMap>

Provides access to the FieldMapCollection object.


Constructor Summary
FieldMapCollection()
           
FieldMapCollection(DataSourceSettings dataSourceSettings)
           
 
Method Summary
 boolean add(FieldMap o)
          Appends the specified element to the FieldMapCollection collection.
 boolean addAll(Collection<? extends FieldMap> c)
          Adds all of the elements in the specified collection to the FieldMapCollection collection.
 void addRange(FieldMap[] items)
          Adds an array of objects to the FieldMapCollection collection.
 void clear()
          Removes all of the elements from this collection.
 boolean contains(Object o)
          Returns true if the FieldMapCollection contains the specified element.
 boolean containsAll(Collection<?> c)
          Returns true if the FieldMapCollection collection contains all of the elements in the specified collection.
 void copyTo(FieldMap[] items, int index)
          Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
 void fillFromSchema()
          Fills the FieldMapCollection from the columns available in the current datasource using defaults to assign a use for each column.
 FieldMap get(int n)
          Returns the element at the specified position in the FieldMapCollection.
 int indexOf(FieldMap obj)
          Returns the index in the FieldMapCollection of the first occurrence of the specified element, or -1 if this list does not contain this element.
 void insert(int index, FieldMap item)
          Inserts an element into the ArrayList at the specified index.
 boolean isEmpty()
          Returns true if this collection contains no elements.
static boolean isNullOrEmpty(FieldMapCollection fields)
          Indicates whether the specified FieldMapCollection is null reference or an empty collection.
 Iterator<FieldMap> iterator()
          Returns an iterator over the elements in this collection.
 boolean remove(Object o)
          Removes the specified element from the FieldMapCollection collection.
 boolean removeAll(Collection<?> c)
          Removes all of the elements in the specified collection from the FieldMapCollection collection.
 void removeAt(int index)
          Removes the element in the specified position from the FieldMapCollection collection.
 boolean retainAll(Collection<?> c)
          Retains only the elements in the FieldMapCollection collection that are contained in the specified collection.
 void set(int n, FieldMap value)
          Replaces the element at the specified position in the FieldMapCollection collection with the specified element.
 int size()
          Returns the number of elements in this collection.
 Object[] toArray()
          Returns an array containing all of the elements in this collection in proper sequence.
<T> T[]
toArray(T[] a)
          Returns an array containing all of the elements in this collection in proper sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

FieldMapCollection

public FieldMapCollection()

FieldMapCollection

public FieldMapCollection(DataSourceSettings dataSourceSettings)
Method Detail

add

public boolean add(FieldMap o)

Appends the specified element to the FieldMapCollection collection.

Specified by:
add in interface Collection<FieldMap>
Parameters:
o - The item to add to the FieldMapCollection collection.

addAll

public boolean addAll(Collection<? extends FieldMap> c)

Adds all of the elements in the specified collection to the FieldMapCollection collection.

Specified by:
addAll in interface Collection<FieldMap>
Parameters:
c - Elements to be inserted into this collection.

addRange

public void addRange(FieldMap[] items)

Adds an array of objects to the FieldMapCollection collection.

Parameters:
items - An array of objects to add to the collection.

clear

public void clear()

Removes all of the elements from this collection.

Specified by:
clear in interface Collection<FieldMap>

contains

public boolean contains(Object o)

Returns true if the FieldMapCollection contains the specified element.

Specified by:
contains in interface Collection<FieldMap>
Parameters:
o - Element whose presence in this collection is to be tested.

containsAll

public boolean containsAll(Collection<?> c)

Returns true if the FieldMapCollection collection contains all of the elements in the specified collection.

Specified by:
containsAll in interface Collection<FieldMap>
Parameters:
c - Collection to be checked for containment in this collection.

copyTo

public void copyTo(FieldMap[] items,
                   int index)

Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Parameters:
items - The one-dimensional Array that is the destination of the elements copied from FieldMapCollection. The Array must have zero-based indexing.
index - The zero-based index in array at which copying begins.

fillFromSchema

public void fillFromSchema()

Fills the FieldMapCollection from the columns available in the current datasource using defaults to assign a use for each column.


get

public FieldMap get(int n)

Returns the element at the specified position in the FieldMapCollection.

Parameters:
n - Index of element to return.

indexOf

public int indexOf(FieldMap obj)

Returns the index in the FieldMapCollection of the first occurrence of the specified element, or -1 if this list does not contain this element.

Parameters:
obj - Element to search for.

insert

public void insert(int index,
                   FieldMap item)

Inserts an element into the ArrayList at the specified index.

Parameters:
index - The zero-based index at which position should be inserted.
item - The item to insert.

isEmpty

public boolean isEmpty()

Returns true if this collection contains no elements.

Specified by:
isEmpty in interface Collection<FieldMap>

isNullOrEmpty

public static boolean isNullOrEmpty(FieldMapCollection fields)

Indicates whether the specified FieldMapCollection is null reference or an empty collection.

Parameters:
fields - a FieldMapCollection reference.

iterator

public Iterator<FieldMap> iterator()

Returns an iterator over the elements in this collection.

Specified by:
iterator in interface Iterable<FieldMap>
Specified by:
iterator in interface Collection<FieldMap>

remove

public boolean remove(Object o)

Removes the specified element from the FieldMapCollection collection.

Specified by:
remove in interface Collection<FieldMap>
Parameters:
o - The item to remove from the FieldMapCollection collection.

removeAll

public boolean removeAll(Collection<?> c)

Removes all of the elements in the specified collection from the FieldMapCollection collection.

Specified by:
removeAll in interface Collection<FieldMap>
Parameters:
c - Elements to be removed from this collection.

removeAt

public void removeAt(int index)

Removes the element in the specified position from the FieldMapCollection collection.

Parameters:
index - The index of the item to remove from the FieldMapCollection collection.

retainAll

public boolean retainAll(Collection<?> c)

Retains only the elements in the FieldMapCollection collection that are contained in the specified collection.

Specified by:
retainAll in interface Collection<FieldMap>
Parameters:
c - Elements to be retained in this collection.

set

public void set(int n,
                FieldMap value)

Replaces the element at the specified position in the FieldMapCollection collection with the specified element.

Parameters:
n - The index of the item to add to the FieldMapCollection collection.
value - The item to add to the FieldMapCollection collection

size

public int size()

Returns the number of elements in this collection.

Specified by:
size in interface Collection<FieldMap>

toArray

public Object[] toArray()

Returns an array containing all of the elements in this collection in proper sequence.

Specified by:
toArray in interface Collection<FieldMap>

toArray

public <T> T[] toArray(T[] a)

Returns an array containing all of the elements in this collection in proper sequence.

Specified by:
toArray in interface Collection<FieldMap>

http://www.softwarefx.com

2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.