001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: JonasActivationspecDesc.java 5459 2004-09-17 22:33:33Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029: import java.util.List;
030:
031: import org.objectweb.jonas_rar.deployment.xml.JonasActivationspec;
032:
033: /**
034: * This class defines the implementation of the element jonas-activationspec
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class JonasActivationspecDesc implements Serializable {
040:
041: /**
042: * id
043: */
044: private String id = null;
045:
046: /**
047: * description
048: */
049: private List descriptionList = null;
050:
051: /**
052: * jndi-name
053: */
054: private String jndiName = null;
055:
056: /**
057: * defaultAS
058: */
059: private String defaultAS = null;
060:
061: /**
062: * Constructor
063: */
064: public JonasActivationspecDesc(JonasActivationspec ja) {
065: if (ja != null) {
066: id = ja.getId();
067: descriptionList = ja.getDescriptionList();
068: jndiName = ja.getJndiName();
069: defaultAS = ja.getDefaultAS();
070: }
071: }
072:
073: /**
074: * Gets the id
075: * @return the id
076: */
077: public String getId() {
078: return id;
079: }
080:
081: /**
082: * Gets the description
083: * @return the description
084: */
085: public List getDescriptionList() {
086: return descriptionList;
087: }
088:
089: /**
090: * Gets the jndiname
091: * @return the jndiname
092: */
093: public String getJndiName() {
094: return jndiName;
095: }
096:
097: /**
098: * Gets the defaultAS
099: * @return the defaultAS
100: */
101: public String getDefaultAS() {
102: return defaultAS;
103: }
104:
105: }
|