ActivationConfigDesc.java

00001 
00028 package org.objectweb.jonas_ejb.deployment.api;
00029 
00030 import java.util.LinkedList;
00031 import java.util.List;
00032 
00033 import org.objectweb.jonas_ejb.deployment.xml.ActivationConfig;
00034 import org.objectweb.jonas_ejb.deployment.xml.ActivationConfigProperty;
00035 
00036 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00037 
00038 
00045 public class ActivationConfigDesc {
00046 
00050     private String description = null;
00051 
00052 
00056     private List activationConfigPropertyList = null;
00057 
00061     public ActivationConfigDesc(ActivationConfig ac) {
00062         if (ac != null) {
00063             description = ac.getDescription();
00064             activationConfigPropertyList = convert(ac.getActivationConfigPropertyList());
00065         } else {
00066             activationConfigPropertyList = new LinkedList();
00067         }
00068     }
00069 
00074     public String getDescription() {
00075         return description;
00076     }
00077 
00082     public List getActivationConfigPropertyList() {
00083         return activationConfigPropertyList;
00084     }
00085 
00086     private List convert(JLinkedList acpl) {
00087         ActivationConfigProperty acp = null;
00088         LinkedList ll = new LinkedList();
00089         for (int i = 0; i < acpl.size(); i++) {
00090             acp = (ActivationConfigProperty) acpl.get(i);
00091             ll.add(new ActivationConfigPropertyDesc(acp));
00092         }
00093         return ll;
00094     }
00095 }

Generated on Tue Feb 15 15:05:43 2005 for JOnAS by  doxygen 1.3.9.1