KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jmx > adaptor > snmp > config > notification > Mapping


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.jmx.adaptor.snmp.config.notification;
23
24 /**
25  * Simple POJO class to model XML data
26  *
27  * @author <a HREF="mailto:dimitris@jboss.org">Dimitris Andreadis</a>
28  *
29  * @version $Revision: 37459 $
30  */

31 public class Mapping
32 {
33    // Private Data --------------------------------------------------
34

35    private String JavaDoc notificationType;
36    private int generic;
37    private int specific;
38    private String JavaDoc enterprise;
39    private VarBindList varBindList;
40
41    // Constructors -------------------------------------------------
42

43   /**
44    * Default CTOR
45    */

46   public Mapping()
47   {
48      // empty
49
}
50
51   // Accessors/Modifiers -------------------------------------------
52

53    public String JavaDoc getEnterprise()
54    {
55       return enterprise;
56    }
57
58    public int getGeneric()
59    {
60       return generic;
61    }
62
63    public String JavaDoc getNotificationType()
64    {
65       return notificationType;
66    }
67
68    public int getSpecific()
69    {
70       return specific;
71    }
72
73    public VarBindList getVarBindList()
74    {
75       return varBindList;
76    }
77
78    public void setEnterprise(String JavaDoc enterprise)
79    {
80       this.enterprise = enterprise;
81    }
82
83    public void setGeneric(int generic)
84    {
85       this.generic = generic;
86    }
87    
88    public void setNotificationType(String JavaDoc notificationType)
89    {
90       this.notificationType = notificationType;
91    }
92
93    public void setSpecific(int specific)
94    {
95       this.specific = specific;
96    }
97
98    public void setVarBindList(VarBindList varBindList)
99    {
100       this.varBindList = varBindList;
101    }
102    
103    // Object overrides ----------------------------------------------
104

105    public String JavaDoc toString()
106    {
107       StringBuffer JavaDoc sbuf = new StringBuffer JavaDoc(256);
108       
109       sbuf.append('[')
110       .append("notificationType=").append(notificationType)
111       .append(", generic=").append(generic)
112       .append(", specific=").append(specific)
113       .append(", enterprise=").append(enterprise)
114       .append(", varBindList=").append(varBindList)
115       .append(']');
116       
117       return sbuf.toString();
118    }
119 }
120
Popular Tags