[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model ParameterBlock.java, 1.21, 1.22
Status: Pre-Alpha
Brought to you by:
henryml
From: Sebastian G. <sg...@us...> - 2011-05-24 05:53:56
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory vz-cvs-2.sog:/tmp/cvs-serv8055/src/net/sourceforge/bprocessor/model Modified Files: ParameterBlock.java Log Message: PhysicsMeshExtrude Update, new bNets fixed, parameters added Index: ParameterBlock.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/ParameterBlock.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ParameterBlock.java 5 May 2011 16:34:02 -0000 1.21 --- ParameterBlock.java 24 May 2011 05:53:54 -0000 1.22 *************** *** 145,148 **** --- 145,172 ---- } + public void putString (String key, String value) { + add(new Attribute(key, value)); + } + + public String getString (String key) { + for (Attribute current : parameters) { + if (current.getName().equals(key)) { + return ((String)(current.getValue())).toString(); + } + } + return ""; + } + + public boolean changeString (String key, String value) { + boolean successful = false; + for (Attribute current : parameters) { + if (current.getName().equals(key)) { + current.setValue(value); + successful = true; + } + } + return successful; + } + /** * |