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: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: ModuleItem.java 4940 2004-06-11 08:16:53Z danesa $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.webapp.jonasadmin.common;
025:
026: /**
027: * @author Adriana.Danes@objectweb.org
028: *
029: * ModuleItem objects are used to show management information concerning
030: * modules in a J2EEApplication.
031: */
032: public class ModuleItem implements NameItem {
033: /**
034: * Module name
035: */
036: private String name = null;
037: /**
038: * OBJECT_NAME of the J2EEDeployedObject corresponding to the module
039: */
040: private String objectName = null;
041: /**
042: * Path of the source file
043: */
044: private String filePath = null;
045:
046: /**
047: * Default constructor
048: */
049: public ModuleItem() {
050: }
051:
052: /**
053: * Constructor
054: * @param name the module's name
055: * @param objectName the OBJECT_NAME of the J2EEDeployedObject corresponding to the module
056: * @param filePath the path of the source file
057: */
058: public ModuleItem(String name, String objectName, String filePath) {
059: this .name = name;
060: this .objectName = objectName;
061: this .filePath = filePath;
062: }
063:
064: /**
065: * @return Returns the module's name.
066: */
067: public String getName() {
068: return name;
069: }
070:
071: /**
072: * @param name the module name
073: */
074: public void setName(String name) {
075: this .name = name;
076: }
077:
078: /**
079: * @return Returns the OBJECT_NAME of the corresponding MBean.
080: */
081: public String getObjectName() {
082: return objectName;
083: }
084:
085: /**
086: * @param objectName The OBJECT_NAME to set.
087: */
088: public void setObjectName(String objectName) {
089: this .objectName = objectName;
090: }
091:
092: /**
093: * @return Returns the filePath.
094: */
095: public String getFilePath() {
096: return filePath;
097: }
098:
099: /**
100: * @param filePath The filePath to set.
101: */
102: public void setFilePath(String filePath) {
103: this.filePath = filePath;
104: }
105:
106: }
|