MessageDestinationRefDesc.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or 1any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer: Eric Hardesty
00022  * --------------------------------------------------------------------------
00023  * $Id: MessageDestinationRefDesc.java,v 1.3 2004/07/16 13:57:50 benoitf Exp $
00024  * --------------------------------------------------------------------------
00025  */
00026 
00027 package org.objectweb.jonas_lib.deployment.api;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.JonasMessageDestinationRef;
00030 import org.objectweb.jonas_lib.deployment.xml.MessageDestinationRef;
00031 
00036 public class MessageDestinationRefDesc {
00037 
00041     private String messageDestinationRefName = null;
00042 
00046     private String messageDestinationType = null;
00047 
00051     private String messageDestinationUsage = null;
00052 
00056     private String messageDestinationLink = null;
00057 
00061     private String jndiName = null;
00062 
00063 
00071     public MessageDestinationRefDesc(MessageDestinationRef messageDestinationRef,
00072                                       JonasMessageDestinationRef jonasMessageDestinationRef)
00073                        throws DeploymentDescException {
00074         messageDestinationRefName = messageDestinationRef.getMessageDestinationRefName();
00075         messageDestinationType = messageDestinationRef.getMessageDestinationType();
00076         messageDestinationUsage = messageDestinationRef.getMessageDestinationUsage();
00077         messageDestinationLink = messageDestinationRef.getMessageDestinationLink();
00078         jndiName = null;
00079         if (jonasMessageDestinationRef != null) {
00080             jndiName = jonasMessageDestinationRef.getJndiName();
00081         }
00082     }
00083 
00088     public String getMessageDestinationRefName() {
00089         return messageDestinationRefName;
00090     }
00091 
00096     public String getMessageDestinationType() {
00097         return messageDestinationType;
00098     }
00099 
00104     public String getMessageDestinationUsage() {
00105         return messageDestinationUsage;
00106     }
00107 
00112     public String getMessageDestinationLink() {
00113         return messageDestinationLink;
00114     }
00115 
00116 
00121     public String getJndiName() {
00122         return jndiName;
00123     }
00124 
00129     public void setJndiName(String jndiName) {
00130         this.jndiName = jndiName;
00131     }
00132 
00133 
00138     public String toString() {
00139         StringBuffer ret = new StringBuffer();
00140         ret.append("\ngetMessageDestinationRefName()=" + getMessageDestinationRefName());
00141         ret.append("\ngetMessageDestinationType()=" + getMessageDestinationType());
00142         ret.append("\ngetMessageDestinationUsage()=" + getMessageDestinationUsage());
00143         ret.append("\ngetMessageDestinationLink()=" + getMessageDestinationLink());
00144         ret.append("\ngetJndiName()=" + getJndiName());
00145         return ret.toString();
00146     }
00147 
00148 }

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