/************************************************************************** * * $Revision: 1.4 $ * $Date: 2004/10/21 08:02:26 $ * * Copyright (C) 2001 CERN - European Organization for Nuclear Research * All rights reserved. **************************************************************************/ package com.c2kernel.property; import java.util.ArrayList; import com.c2kernel.persistency.ClusterStorage; import com.c2kernel.persistency.outcome.Outcome; import com.c2kernel.process.Gateway; import com.c2kernel.utils.CastorHashMap; import com.c2kernel.utils.CastorXMLUtility; import com.c2kernel.utils.Logger; public class PropertyUtility { static public String getValue(ArrayList pdlist, String name) { Object[] values = pdlist.toArray(); for (Object value : values) { PropertyDescription pd = (PropertyDescription) value; if ( name.equalsIgnoreCase(pd.getName()) ) return pd.getDefaultValue(); } return null; } static public String getNames(ArrayList pdlist) { Object[] values = pdlist.toArray(); StringBuffer names = new StringBuffer(); for (Object value : values) names.append( ((PropertyDescription)value).getDefaultValue()).append(" "); return names.toString(); } static public String getClassIdNames(ArrayList pdlist) { Object[] values = pdlist.toArray(); StringBuffer names = new StringBuffer(); for (int i=0;i