org.keridwen.modelling.global.parameters
Class GlobalParametersList

java.lang.Object
  extended by org.keridwen.modelling.global.parameters.GlobalParametersList
Type Parameters:
E -
All Implemented Interfaces:
Iterable<GlobalParameter>, Collection<GlobalParameter>, List<GlobalParameter>, GlobalParameterListener

public class GlobalParametersList
extends Object
implements List<GlobalParameter>, GlobalParameterListener

Generic list of Global Parameters

Author:
J.Forest, Artenum SARL.

Constructor Summary
GlobalParametersList()
          Default constructor
 
Method Summary
 boolean add(GlobalParameter param)
           
 void add(int index, GlobalParameter param)
           
 boolean addAll(Collection<? extends GlobalParameter> c)
           
 boolean addAll(int index, Collection<? extends GlobalParameter> c)
           
 void addModelListener(GlobalParameterModelListener l)
          Register a listener for groups related change state events
 void categoryChanged(GlobalParameter updatedGlobalParameter, String category)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 void descriptionChanged(GlobalParameter updatedGlobalParameter, String newDescription)
           
 GlobalParameter get(int index)
           
 String getCategory()
          Category of the list
 String getDescription()
          Description of the list.
 int getId()
          Get the unique Id of the present list.
 String getName()
          Name of the list.
 void globalParameterChanged(GlobalParameter updatedGlobalParameter)
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<GlobalParameter> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<GlobalParameter> listIterator()
           
 ListIterator<GlobalParameter> listIterator(int index)
           
 void nameChanged(GlobalParameter updatedGlobalParameter, String newName)
           
 GlobalParameter remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 void removeModelListener(GlobalParameterModelListener l)
          Remove a listener for groups related events
 boolean retainAll(Collection<?> c)
           
 GlobalParameter set(int index, GlobalParameter param)
           
 void setCategory(String category)
          Category of the list
 void setDescription(String description)
          Description of the list.
 void setId(int id)
          Set the unique Id of the present list.
 void setName(String name)
          Name of the list.
 int size()
           
 List<GlobalParameter> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 void typeChanged(GlobalParameter updatedGlobalParameter, String newType)
           
 void unitChanged(GlobalParameter updatedGlobalParameter, String newUnit)
           
 void valueChanged(GlobalParameter updatedGlobalParameter, Object newValue)
           
 void verbosityLevelChanged(GlobalParameter updatedGlobalParameter, GlobalParameter.VerbosityLevel newVerbosityLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

GlobalParametersList

public GlobalParametersList()
Default constructor

Method Detail

getId

public int getId()
Get the unique Id of the present list.

Returns:
- unique Id.

setId

public void setId(int id)
Set the unique Id of the present list.


getName

public String getName()
Name of the list.

Returns:
- name of the list

setName

public void setName(String name)
Name of the list.


getDescription

public String getDescription()
Description of the list.

Returns:
- description of the list

setDescription

public void setDescription(String description)
Description of the list.

Parameters:
description - - description of the list

getCategory

public String getCategory()
Category of the list

Returns:
- category of the list

setCategory

public void setCategory(String category)
Category of the list

Parameters:
category - - category of the list

add

public boolean add(GlobalParameter param)
Specified by:
add in interface Collection<GlobalParameter>
Specified by:
add in interface List<GlobalParameter>

add

public void add(int index,
                GlobalParameter param)
Specified by:
add in interface List<GlobalParameter>

addAll

public boolean addAll(Collection<? extends GlobalParameter> c)
Specified by:
addAll in interface Collection<GlobalParameter>
Specified by:
addAll in interface List<GlobalParameter>

addAll

public boolean addAll(int index,
                      Collection<? extends GlobalParameter> c)
Specified by:
addAll in interface List<GlobalParameter>

clear

public void clear()
Specified by:
clear in interface Collection<GlobalParameter>
Specified by:
clear in interface List<GlobalParameter>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<GlobalParameter>
Specified by:
contains in interface List<GlobalParameter>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<GlobalParameter>
Specified by:
containsAll in interface List<GlobalParameter>

get

public GlobalParameter get(int index)
Specified by:
get in interface List<GlobalParameter>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<GlobalParameter>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<GlobalParameter>
Specified by:
isEmpty in interface List<GlobalParameter>

iterator

public Iterator<GlobalParameter> iterator()
Specified by:
iterator in interface Iterable<GlobalParameter>
Specified by:
iterator in interface Collection<GlobalParameter>
Specified by:
iterator in interface List<GlobalParameter>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<GlobalParameter>

listIterator

public ListIterator<GlobalParameter> listIterator()
Specified by:
listIterator in interface List<GlobalParameter>

listIterator

public ListIterator<GlobalParameter> listIterator(int index)
Specified by:
listIterator in interface List<GlobalParameter>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<GlobalParameter>
Specified by:
remove in interface List<GlobalParameter>

remove

public GlobalParameter remove(int index)
Specified by:
remove in interface List<GlobalParameter>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<GlobalParameter>
Specified by:
removeAll in interface List<GlobalParameter>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<GlobalParameter>
Specified by:
retainAll in interface List<GlobalParameter>

set

public GlobalParameter set(int index,
                           GlobalParameter param)
Specified by:
set in interface List<GlobalParameter>

size

public int size()
Specified by:
size in interface Collection<GlobalParameter>
Specified by:
size in interface List<GlobalParameter>

subList

public List<GlobalParameter> subList(int fromIndex,
                                     int toIndex)
Specified by:
subList in interface List<GlobalParameter>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<GlobalParameter>
Specified by:
toArray in interface List<GlobalParameter>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<GlobalParameter>
Specified by:
toArray in interface List<GlobalParameter>

addModelListener

public void addModelListener(GlobalParameterModelListener l)
Register a listener for groups related change state events


removeModelListener

public void removeModelListener(GlobalParameterModelListener l)
Remove a listener for groups related events


valueChanged

public void valueChanged(GlobalParameter updatedGlobalParameter,
                         Object newValue)
Specified by:
valueChanged in interface GlobalParameterListener

nameChanged

public void nameChanged(GlobalParameter updatedGlobalParameter,
                        String newName)
Specified by:
nameChanged in interface GlobalParameterListener

descriptionChanged

public void descriptionChanged(GlobalParameter updatedGlobalParameter,
                               String newDescription)
Specified by:
descriptionChanged in interface GlobalParameterListener

unitChanged

public void unitChanged(GlobalParameter updatedGlobalParameter,
                        String newUnit)
Specified by:
unitChanged in interface GlobalParameterListener

typeChanged

public void typeChanged(GlobalParameter updatedGlobalParameter,
                        String newType)
Specified by:
typeChanged in interface GlobalParameterListener

verbosityLevelChanged

public void verbosityLevelChanged(GlobalParameter updatedGlobalParameter,
                                  GlobalParameter.VerbosityLevel newVerbosityLevel)
Specified by:
verbosityLevelChanged in interface GlobalParameterListener

categoryChanged

public void categoryChanged(GlobalParameter updatedGlobalParameter,
                            String category)
Specified by:
categoryChanged in interface GlobalParameterListener

globalParameterChanged

public void globalParameterChanged(GlobalParameter updatedGlobalParameter)
Specified by:
globalParameterChanged in interface GlobalParameterListener

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 Artenum. All Rights Reserved.