KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.ArrayList JavaDoc;
25 import java.util.List JavaDoc;
26
27 /**
28  * Simple POJO class to model XML data
29  *
30  * @author <a HREF="mailto:dimitris@jboss.org">Dimitris Andreadis</a>
31  *
32  * @version $Revision: 37459 $
33  */

34 public class VarBindList
35 {
36    // Private Data --------------------------------------------------
37

38    private String JavaDoc wrapperClass;
39    private List JavaDoc varBindList = new ArrayList JavaDoc();
40
41    // Constructors -------------------------------------------------
42

43    /**
44     * Default CTOR
45     */

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

53    public String JavaDoc getWrapperClass()
54    {
55       return wrapperClass;
56    }
57    
58    public List JavaDoc getVarBindList()
59    {
60       return varBindList;
61    }
62    
63    public void setWrapperClass(String JavaDoc wrapperClass)
64    {
65       this.wrapperClass = wrapperClass;
66    }
67    
68    public void setVarBindList(List JavaDoc varBindList)
69    {
70       this.varBindList = varBindList;
71    }
72    
73    public void addVarBind(VarBind varBind)
74    {
75       varBindList.add(varBind);
76    }
77
78    // Object overrides ----------------------------------------------
79

80    public String JavaDoc toString()
81    {
82       StringBuffer JavaDoc sbuf = new StringBuffer JavaDoc(256);
83       
84       sbuf.append('[')
85       .append("wrapperClass=").append(wrapperClass)
86       .append(", varBindList=").append(varBindList)
87       .append(']');
88       
89       return sbuf.toString();
90    }
91 }
92
Popular Tags