Author: seelmann
Date: Mon Mar 12 14:46:34 2007
New Revision: 517413
URL: http://svn.apache.org/viewvc?view=rev&rev=517413
Log:
Code cleaning and Javadocs.
Removed:
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/AbstractEntryEditorListenerAction.java
Modified:
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidget.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetCellModifier.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetConfiguration.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetContentProvider.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetFilter.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetLabelProvider.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetPreferences.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetQuickFilterWidget.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetSorter.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetSorterDialog.java
directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidget.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidget.java?view=diff&rev=517413&r1=517412&r2=517413
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidget.java (original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidget.java Mon Mar 12 14:46:34 2007
@@ -21,7 +21,11 @@
package org.apache.directory.ldapstudio.browser.ui.widgets.entryeditor;
+import org.apache.directory.ldapstudio.browser.ui.dialogs.LdifEntryEditorDialog;
+import org.apache.directory.ldapstudio.browser.ui.dialogs.MultivaluedDialog;
+import org.apache.directory.ldapstudio.browser.ui.editors.entry.EntryEditor;
import org.apache.directory.ldapstudio.browser.ui.widgets.ViewFormWidget;
+import org.apache.directory.ldapstudio.browser.ui.wizards.NewEntryAttributesWizardPage;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.SWT;
@@ -34,53 +38,76 @@
import org.eclipse.swt.widgets.TreeColumn;
+/**
+ * The EntryEditorWidget is a reusable widget to display and edit the attributes of an entry.
+ * It is used by {@link EntryEditor}, {@link MultivaluedDialog},
+ * {@link LdifEntryEditorDialog} and {@link NewEntryAttributesWizardPage}.
+ *
+ * It provides a context menu and a local toolbar with actions to
+ * manage attributes. Further there is an instant search feature to filter
+ * the visible attributes.
+ *
+ * @author Apache Directory Project
+ * @version $Rev$, $Date$
+ */
public class EntryEditorWidget extends ViewFormWidget
{
+ /** The configuration. */
private EntryEditorWidgetConfiguration configuration;
+ /** The quick filter widget. */
private EntryEditorWidgetQuickFilterWidget quickFilterWidget;
+ /** The tree. */
private Tree tree;
+ /** The viewer. */
private TreeViewer viewer;
+ /**
+ * Creates a new instance of EntryEditorWidget.
+ *
+ * @param configuration the configuration
+ */
public EntryEditorWidget( EntryEditorWidgetConfiguration configuration )
{
this.configuration = configuration;
}
+ /**
+ * {@inheritDoc}
+ */
protected Control createContent( Composite parent )
{
-
- this.quickFilterWidget = new EntryEditorWidgetQuickFilterWidget( this.configuration.getFilter(), this );
- this.quickFilterWidget.createComposite( parent );
+ quickFilterWidget = new EntryEditorWidgetQuickFilterWidget( configuration.getFilter(), this );
+ quickFilterWidget.createComposite( parent );
// create tree widget and viewer
- this.tree = new Tree( parent, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION
+ tree = new Tree( parent, SWT.MULTI | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION
| SWT.HIDE_SELECTION );
GridData data = new GridData( GridData.FILL_BOTH );
data.widthHint = 450;
data.heightHint = 250;
- this.tree.setLayoutData( data );
- this.tree.setHeaderVisible( true );
- this.tree.setLinesVisible( true );
- this.viewer = new TreeViewer( this.tree );
- this.viewer.setUseHashlookup( true );
+ tree.setLayoutData( data );
+ tree.setHeaderVisible( true );
+ tree.setLinesVisible( true );
+ viewer = new TreeViewer( tree );
+ viewer.setUseHashlookup( true );
// set tree columns
for ( int i = 0; i < EntryEditorWidgetTableMetadata.COLUM_NAMES.length; i++ )
{
- TreeColumn column = new TreeColumn( this.tree, SWT.LEFT, i );
+ TreeColumn column = new TreeColumn( tree, SWT.LEFT, i );
column.setText( EntryEditorWidgetTableMetadata.COLUM_NAMES[i] );
column.setWidth( 200 );
column.setResizable( true );
}
- this.viewer.setColumnProperties( EntryEditorWidgetTableMetadata.COLUM_NAMES );
- this.tree.addControlListener( new ControlAdapter()
+ viewer.setColumnProperties( EntryEditorWidgetTableMetadata.COLUM_NAMES );
+ tree.addControlListener( new ControlAdapter()
{
public void controlResized( ControlEvent e )
{
@@ -98,67 +125,88 @@
} );
// setup sorter, filter and layout
- this.configuration.getSorter().connect( this.viewer );
- this.configuration.getFilter().connect( this.viewer );
- this.configuration.getPreferences().connect( this.viewer );
+ configuration.getSorter().connect( viewer );
+ configuration.getFilter().connect( viewer );
+ configuration.getPreferences().connect( viewer );
// setup providers
- this.viewer.setContentProvider( configuration.getContentProvider( this ) );
- this.viewer.setLabelProvider( configuration.getLabelProvider( this.viewer ) );
+ viewer.setContentProvider( configuration.getContentProvider( this ) );
+ viewer.setLabelProvider( configuration.getLabelProvider( viewer ) );
// set table cell editors
- this.viewer.setCellModifier( configuration.getCellModifier( this.viewer ) );
+ viewer.setCellModifier( configuration.getCellModifier( viewer ) );
CellEditor[] editors = new CellEditor[EntryEditorWidgetTableMetadata.COLUM_NAMES.length];
- this.viewer.setCellEditors( editors );
+ viewer.setCellEditors( editors );
- return this.tree;
+ return tree;
}
+ /**
+ * Sets the focus to the tree viewer.
+ */
public void setFocus()
{
- this.viewer.getTree().setFocus();
+ viewer.getTree().setFocus();
}
+ /**
+ * {@inheritDoc}
+ */
public void dispose()
{
- if ( this.viewer != null )
+ if ( viewer != null )
{
- this.configuration.dispose();
- this.configuration = null;
+ configuration.dispose();
+ configuration = null;
- if ( this.quickFilterWidget != null )
+ if ( quickFilterWidget != null )
{
- this.quickFilterWidget.dispose();
- this.quickFilterWidget = null;
+ quickFilterWidget.dispose();
+ quickFilterWidget = null;
}
- this.tree.dispose();
- this.tree = null;
- this.viewer = null;
+ tree.dispose();
+ tree = null;
+ viewer = null;
}
super.dispose();
}
+ /**
+ * Gets the viewer.
+ *
+ * @return the viewer
+ */
public TreeViewer getViewer()
{
return viewer;
}
+ /**
+ * Gets the quick filter widget.
+ *
+ * @return the quick filter widget
+ */
public EntryEditorWidgetQuickFilterWidget getQuickFilterWidget()
{
return quickFilterWidget;
}
+ /**
+ * Enables or disables this widget.
+ *
+ * @param enabled true to enable this widget, false to disable this widget
+ */
public void setEnabled( boolean enabled )
{
- this.tree.setEnabled( enabled );
+ tree.setEnabled( enabled );
}
}
Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetCellModifier.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetCellModifier.java?view=diff&rev=517413&r1=517412&r2=517413
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetCellModifier.java (original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetCellModifier.java Mon Mar 12 14:46:34 2007
@@ -25,31 +25,49 @@
import org.apache.directory.ldapstudio.browser.core.model.ModelModificationException;
import org.apache.directory.ldapstudio.browser.core.model.schema.SchemaUtils;
import org.apache.directory.ldapstudio.browser.ui.valueeditors.internal.ValueEditorManager;
-
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Item;
+/**
+ * The EntryEditorWidgetCellModifier implements the {@link ICellModifier} interface
+ * for the entry editor widget.
+ *
+ * @author Apache Directory Project
+ * @version $Rev$, $Date$
+ */
public class EntryEditorWidgetCellModifier implements ICellModifier
{
+ /** The value editor manager. */
private ValueEditorManager valueEditorManager;
+ /**
+ * Creates a new instance of EntryEditorWidgetCellModifier.
+ *
+ * @param valueEditorManager
+ */
public EntryEditorWidgetCellModifier( ValueEditorManager valueEditorManager )
{
this.valueEditorManager = valueEditorManager;
}
+ /**
+ * Disposes this object.
+ */
public void dispose()
{
- this.valueEditorManager = null;
+ valueEditorManager = null;
}
+ /**
+ * {@inheritDoc}
+ */
public boolean canModify( Object element, String property )
{
if ( element != null && element instanceof IValue )
@@ -78,6 +96,9 @@
}
+ /**
+ * {@inheritDoc}
+ */
public Object getValue( Object element, String property )
{
if ( element != null && element instanceof IValue )
@@ -106,9 +127,13 @@
}
+ /**
+ * {@inheritDoc}
+ *
+ * TODO: Remove value modification from value editors
+ */
public void modify( Object element, String property, Object newRawValue )
{
-
if ( element != null && element instanceof Item )
{
element = ( ( Item ) element ).getData();
@@ -118,11 +143,7 @@
{
IValue attributeValue = ( IValue ) element;
- if ( EntryEditorWidgetTableMetadata.KEY_COLUMN_NAME.equals( property ) )
- {
- // no modification
- }
- else if ( EntryEditorWidgetTableMetadata.VALUE_COLUMN_NAME.equals( property ) )
+ if ( EntryEditorWidgetTableMetadata.VALUE_COLUMN_NAME.equals( property ) )
{
try
{
@@ -135,14 +156,6 @@
.getMessage() );
}
}
- else
- {
- // no modification
- }
- }
- else
- {
- ;
}
}
Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetConfiguration.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetConfiguration.java?view=diff&rev=517413&r1=517412&r2=517413
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetConfiguration.java (original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetConfiguration.java Mon Mar 12 14:46:34 2007
@@ -25,127 +25,219 @@
import org.eclipse.jface.viewers.TreeViewer;
+/**
+ * The BrowserConfiguration contains the content provider,
+ * label provider, sorter, filter the context menu manager and the
+ * preferences for the browser widget.
+ *
+ * @author Apache Directory Project
+ * @version $Rev$, $Date$
+ */
public class EntryEditorWidgetConfiguration
{
+ /** The disposed flag */
private boolean disposed = false;
+ /** The sorter. */
protected EntryEditorWidgetSorter sorter;
+ /** The filter. */
protected EntryEditorWidgetFilter filter;
+ /** The preferences. */
protected EntryEditorWidgetPreferences preferences;
+ /** The content provider. */
protected EntryEditorWidgetContentProvider contentProvider;
+ /** The label provider. */
protected EntryEditorWidgetLabelProvider labelProvider;
+ /** The cell modifier. */
protected EntryEditorWidgetCellModifier cellModifier;
+ /** The value editor manager. */
protected ValueEditorManager valueEditorManager;
+ /**
+ * Creates a new instance of EntryEditorWidgetConfiguration.
+ */
public EntryEditorWidgetConfiguration()
{
}
+ /**
+ * Disposes this configuration.
+ */
public void dispose()
{
- if ( !this.disposed )
+ if ( !disposed )
{
+ if ( sorter != null )
+ {
+ sorter.dispose();
+ sorter = null;
+ }
+
+ if ( filter != null )
+ {
+ filter.dispose();
+ filter = null;
+ }
+
+ if ( preferences != null )
+ {
+ preferences.dispose();
+ preferences = null;
+ }
+
+ if ( contentProvider != null )
+ {
+ contentProvider.dispose();
+ contentProvider = null;
+ }
+
+ if ( labelProvider != null )
+ {
+ labelProvider.dispose();
+ labelProvider = null;
+ }
+
+ if ( cellModifier != null )
+ {
+ cellModifier.dispose();
+ cellModifier = null;
+ }
+
+ if ( valueEditorManager != null )
+ {
+ valueEditorManager.dispose();
+ valueEditorManager = null;
+ }
- if ( this.sorter != null )
- this.sorter.dispose();
- this.sorter = null;
-
- if ( this.filter != null )
- this.filter.dispose();
- this.filter = null;
-
- if ( this.preferences != null )
- this.preferences.dispose();
- this.preferences = null;
-
- if ( this.contentProvider != null )
- this.contentProvider.dispose();
- this.contentProvider = null;
-
- if ( this.labelProvider != null )
- this.labelProvider.dispose();
- this.labelProvider = null;
-
- if ( this.cellModifier != null )
- this.cellModifier.dispose();
- this.cellModifier = null;
-
- if ( this.valueEditorManager != null )
- this.valueEditorManager.dispose();
- this.valueEditorManager = null;
-
- this.disposed = true;
+ disposed = true;
}
}
+ /**
+ * Gets the content provider.
+ *
+ * @param mainWidget the main widget
+ *
+ * @return the content provider
+ */
public EntryEditorWidgetContentProvider getContentProvider( EntryEditorWidget mainWidget )
{
- if ( this.contentProvider == null )
- this.contentProvider = new EntryEditorWidgetContentProvider( this.getPreferences(), mainWidget );
+ if ( contentProvider == null )
+ {
+ contentProvider = new EntryEditorWidgetContentProvider( getPreferences(), mainWidget );
+ }
return contentProvider;
}
+ /**
+ * Gets the label provider.
+ *
+ * @param viewer the viewer
+ *
+ * @return the label provider
+ */
public EntryEditorWidgetLabelProvider getLabelProvider( TreeViewer viewer )
{
- if ( this.labelProvider == null )
- this.labelProvider = new EntryEditorWidgetLabelProvider( this.getValueEditorManager( viewer ) );
+ if ( labelProvider == null )
+ {
+ labelProvider = new EntryEditorWidgetLabelProvider( getValueEditorManager( viewer ) );
+ }
return labelProvider;
}
+ /**
+ * Gets the cell modifier.
+ *
+ * @param viewer the viewer
+ *
+ * @return the cell modifier
+ */
public EntryEditorWidgetCellModifier getCellModifier( TreeViewer viewer )
{
- if ( this.cellModifier == null )
- this.cellModifier = new EntryEditorWidgetCellModifier( this.getValueEditorManager( viewer ) );
+ if ( cellModifier == null )
+ {
+ cellModifier = new EntryEditorWidgetCellModifier( getValueEditorManager( viewer ) );
+ }
return cellModifier;
}
+ /**
+ * Gets the value editor manager.
+ *
+ * @param viewer the viewer
+ *
+ * @return the value editor manager
+ */
public ValueEditorManager getValueEditorManager( TreeViewer viewer )
{
- if ( this.valueEditorManager == null )
- this.valueEditorManager = new ValueEditorManager( viewer.getTree() );
+ if ( valueEditorManager == null )
+ {
+ valueEditorManager = new ValueEditorManager( viewer.getTree() );
+ }
return valueEditorManager;
}
+ /**
+ * Gets the sorter.
+ *
+ * @return the sorter
+ */
public EntryEditorWidgetSorter getSorter()
{
- if ( this.sorter == null )
- this.sorter = new EntryEditorWidgetSorter( getPreferences() );
+ if ( sorter == null )
+ {
+ sorter = new EntryEditorWidgetSorter( getPreferences() );
+ }
return sorter;
}
+ /**
+ * Gets the filter.
+ *
+ * @return the filter
+ */
public EntryEditorWidgetFilter getFilter()
{
- if ( this.filter == null )
- this.filter = new EntryEditorWidgetFilter();
+ if ( filter == null )
+ {
+ filter = new EntryEditorWidgetFilter();
+ }
return filter;
}
+ /**
+ * Gets the preferences.
+ *
+ * @return the preferences
+ */
public EntryEditorWidgetPreferences getPreferences()
{
- if ( this.preferences == null )
- this.preferences = new EntryEditorWidgetPreferences();
+ if ( preferences == null )
+ {
+ preferences = new EntryEditorWidgetPreferences();
+ }
return preferences;
}
Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetContentProvider.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetContentProvider.java?view=diff&rev=517413&r1=517412&r2=517413
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetContentProvider.java (original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/widgets/entryeditor/EntryEditorWidgetContentProvider.java Mon Mar 12 14:46:34 2007
@@ -31,19 +31,34 @@
import org.apache.directory.ldapstudio.browser.core.model.IValue;
import org.apache.directory.ldapstudio.browser.ui.BrowserUIConstants;
import org.apache.directory.ldapstudio.browser.ui.BrowserUIPlugin;
-
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
+/**
+ * The EntryEditorWidgetContentProvider implements the content provider for
+ * the entry editor widget. It accepts an {@link IEntry} or an
+ * {@link AttributeHierarchy} as input.
+ *
+ * @author Apache Directory Project
+ * @version $Rev$, $Date$
+ */
public class EntryEditorWidgetContentProvider implements ITreeContentProvider
{
+ /** The preferences. */
protected EntryEditorWidgetPreferences preferences;
+ /** The main widget. */
protected EntryEditorWidget mainWidget;
+ /**
+ * Creates a new instance of EntryEditorWidgetContentProvider.
+ *
+ * @param preferences the preferences
+ * @param mainWidget the main widget
+ */
public EntryEditorWidgetContentProvider( EntryEditorWidgetPreferences preferences, EntryEditorWidget mainWidget )
{
this.preferences = preferences;
@@ -51,6 +66,11 @@
}
+ /**
+ * {@inheritDoc}
+ *
+ * This implementations updates the enabled state and the info text.
+ */
public void inputChanged( Viewer viewer, Object oldInput, Object newInput )
{
@@ -73,26 +93,34 @@
enabled = false;
}
- if ( this.mainWidget.getInfoText() != null && !this.mainWidget.getInfoText().isDisposed() )
+ if ( mainWidget.getInfoText() != null && !mainWidget.getInfoText().isDisposed() )
{
- this.mainWidget.getInfoText().setText( dn );
+ mainWidget.getInfoText().setText( dn );
}
- if ( this.mainWidget.getQuickFilterWidget() != null )
+ if ( mainWidget.getQuickFilterWidget() != null )
{
- this.mainWidget.getQuickFilterWidget().setEnabled( enabled );
+ mainWidget.getQuickFilterWidget().setEnabled( enabled );
}
- if ( this.mainWidget.getViewer() != null && !this.mainWidget.getViewer().getTree().isDisposed() )
+ if ( mainWidget.getViewer() != null && !mainWidget.getViewer().getTree().isDisposed() )
{
- this.mainWidget.getViewer().getTree().setEnabled( enabled );
+ mainWidget.getViewer().getTree().setEnabled( enabled );
}
}
+ /**
+ * {@inheritDoc}
+ */
public void dispose()
{
+ preferences = null;
+ mainWidget = null;
}
+ /**
+ * {@inheritDoc}
+ */
public Object[] getElements( Object inputElement )
{
@@ -107,8 +135,7 @@
InitializeAttributesJob job = new InitializeAttributesJob( new IEntry[]
{ entry }, soa );
job.execute();
- return new Object[]
- {};
+ return new Object[0];
}
else
{
@@ -126,15 +153,21 @@
}
else
{
- return new Object[]
- {};
+ return new Object[0];
}
}
+ /**
+ * Gets the values of the given attributes.
+ *
+ * @param attributes the attributes
+ *
+ * @return the values
+ */
private Object[] getValues( IAttribute[] attributes )
{
- List valueList = new ArrayList();
+ List