Ignore:
Timestamp:
May 10, 2010, 7:42:51 PM (14 years ago)
Author:
tobias
Message:

additional clients can be added to the configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/Client.java

    r868 r871  
    11package de.dass_it.vanhelsing.gui;
    22
     3import java.util.ArrayList;
    34import java.util.Iterator;
    45
    56import de.dass_it.www.vanhelsing.*;
    6 import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;
     7//import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;
    78import de.dass_it.www.vanhelsing.VanHelsingStub.*;
     9
    810/**
    911 * Client wraps access methods and data structure of the axis client
     
    164166        }
    165167        /**
     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        /**
    166185         * Helper method to create a ResourceAttributeType[] object out of an array of arrays of strings
    167186         * @param array contains the key-value-pairs which will be stored in the ResourceAttributeType[]
Note: See TracChangeset for help on using the changeset viewer.