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: JonasAdminobjectDesc.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.JonasAdminobject;
032:
033: /**
034: * This class defines the implementation of the element jonas-adminobject
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class JonasAdminobjectDesc 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: * jndiname
053: */
054: private String jndiName = null;
055:
056: /**
057: * jonas-config-property
058: */
059: private List jonasConfigPropertyList = null;
060:
061: /**
062: * Constructor
063: */
064: public JonasAdminobjectDesc(JonasAdminobject ja) {
065: if (ja != null) {
066: id = ja.getId();
067: descriptionList = ja.getDescriptionList();
068: jndiName = ja.getJndiName();
069: jonasConfigPropertyList = Utility.jonasConfigProperty(ja
070: .getJonasConfigPropertyList());
071: }
072: }
073:
074: /**
075: * Gets the id
076: * @return the id
077: */
078: public String getId() {
079: return id;
080: }
081:
082: /**
083: * Gets the description
084: * @return the description
085: */
086: public List getDescriptionList() {
087: return descriptionList;
088: }
089:
090: /**
091: * Gets the jndiName
092: * @return the jndiname
093: */
094: public String getJndiName() {
095: return jndiName;
096: }
097:
098: /**
099: * Gets the jonas-config-property
100: * @return the jonas-config-property
101: */
102: public List getJonasConfigPropertyList() {
103: return jonasConfigPropertyList;
104: }
105:
106: }
|