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: AdminobjectDesc.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.Adminobject;
032:
033: /**
034: * This class defines the implementation of the element adminobject
035: *
036: * @author Eric Hardesty
037: */
038:
039: public class AdminobjectDesc implements Serializable {
040:
041: /**
042: * id
043: */
044: private String id = null;
045:
046: /**
047: * adminobject-interface
048: */
049: private String adminobjectInterface = null;
050:
051: /**
052: * adminobject-class
053: */
054: private String adminobjectClass = null;
055:
056: /**
057: * config-property
058: */
059: private List configPropertyList = null;
060:
061: /**
062: * Constructor
063: */
064: public AdminobjectDesc(Adminobject ao) {
065: if (ao != null) {
066: id = ao.getId();
067: adminobjectInterface = ao.getAdminobjectInterface();
068: adminobjectClass = ao.getAdminobjectClass();
069: configPropertyList = Utility.configProperty(ao
070: .getConfigPropertyList());
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 adminobject-interface
084: * @return the adminobject-interface
085: */
086: public String getAdminobjectInterface() {
087: return adminobjectInterface;
088: }
089:
090: /**
091: * Gets the adminobject-class
092: * @return the adminobject-class
093: */
094: public String getAdminobjectClass() {
095: return adminobjectClass;
096: }
097:
098: /**
099: * Gets the config-property
100: * @return the config-property
101: */
102: public List getConfigPropertyList() {
103: return configPropertyList;
104: }
105: }
|