001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software 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 software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.jmx.adaptor.snmp.config.notification;
023:
024: /**
025: * Simple POJO class to model XML data
026: *
027: * @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>
028: *
029: * @version $Revision: 57210 $
030: */
031: public class Mapping {
032: // Private Data --------------------------------------------------
033:
034: private String notificationType;
035: private int generic;
036: private int specific;
037: private String enterprise;
038: private VarBindList varBindList;
039:
040: // Constructors -------------------------------------------------
041:
042: /**
043: * Default CTOR
044: */
045: public Mapping() {
046: // empty
047: }
048:
049: // Accessors/Modifiers -------------------------------------------
050:
051: public String getEnterprise() {
052: return enterprise;
053: }
054:
055: public int getGeneric() {
056: return generic;
057: }
058:
059: public String getNotificationType() {
060: return notificationType;
061: }
062:
063: public int getSpecific() {
064: return specific;
065: }
066:
067: public VarBindList getVarBindList() {
068: return varBindList;
069: }
070:
071: public void setEnterprise(String enterprise) {
072: this .enterprise = enterprise;
073: }
074:
075: public void setGeneric(int generic) {
076: this .generic = generic;
077: }
078:
079: public void setNotificationType(String notificationType) {
080: this .notificationType = notificationType;
081: }
082:
083: public void setSpecific(int specific) {
084: this .specific = specific;
085: }
086:
087: public void setVarBindList(VarBindList varBindList) {
088: this .varBindList = varBindList;
089: }
090:
091: // Object overrides ----------------------------------------------
092:
093: public String toString() {
094: StringBuffer sbuf = new StringBuffer(256);
095:
096: sbuf.append('[').append("notificationType=").append(
097: notificationType).append(", generic=").append(generic)
098: .append(", specific=").append(specific).append(
099: ", enterprise=").append(enterprise).append(
100: ", varBindList=").append(varBindList).append(
101: ']');
102:
103: return sbuf.toString();
104: }
105: }
|