- Timestamp:
- May 10, 2010, 7:42:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/Client.java
r868 r871 1 1 package de.dass_it.vanhelsing.gui; 2 2 3 import java.util.ArrayList; 3 4 import java.util.Iterator; 4 5 5 6 import de.dass_it.www.vanhelsing.*; 6 import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;7 //import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*; 7 8 import de.dass_it.www.vanhelsing.VanHelsingStub.*; 9 8 10 /** 9 11 * Client wraps access methods and data structure of the axis client … … 164 166 } 165 167 /** 168 * Helper method to create a ResourceAttributeType[] out auf an ArrayList of type ViewItem 169 * @param array ArrayList<ViewItem> containing all key value pairs 170 * @return the created ResourceAttributeType array 171 */ 172 public ResourceAttributeType[] makeResAttrTypeArray(ArrayList<ViewItem> array){ 173 array.trimToSize(); 174 int i = 0; 175 ResourceAttributeType[] rat = new ResourceAttributeType[array.size()]; 176 for (ViewItem vi : array){ 177 rat[i] = new ResourceAttributeType(); 178 rat[i].setKey(vi.getKey()); 179 rat[i].setValue(vi.getKeyValue()); 180 i++; 181 } 182 return rat; 183 } 184 /** 166 185 * Helper method to create a ResourceAttributeType[] object out of an array of arrays of strings 167 186 * @param array contains the key-value-pairs which will be stored in the ResourceAttributeType[]
Note:
See TracChangeset
for help on using the changeset viewer.