KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > snmp > IPAcl > JDMIpMask


1 /*
2  * @(#)file JDMIpMask.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 4.8
5  * @(#)date 08/02/09
6  *
7  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  *
10  */

11
12
13 /* Generated By:JJTree: Do not edit this line. JDMIpMask.java */
14
15 package com.sun.jmx.snmp.IPAcl;
16
17 import java.lang.StringBuffer JavaDoc;
18 import java.net.UnknownHostException JavaDoc;
19
20 /**
21  * @version 4.8 12/19/03
22  * @author Sun Microsystems, Inc.
23  */

24 class JDMIpMask extends Host {
25
26   protected StringBuffer JavaDoc address= new StringBuffer JavaDoc();
27
28   JDMIpMask(int id) {
29     super(id);
30   }
31
32   JDMIpMask(Parser p, int id) {
33     super(p, id);
34   }
35
36   public static Node jjtCreate(int id) {
37       return new JDMIpMask(id);
38   }
39
40   public static Node jjtCreate(Parser p, int id) {
41       return new JDMIpMask(p, id);
42   }
43   
44   protected String JavaDoc getHname() {
45     return address.toString();
46   }
47   
48   protected PrincipalImpl createAssociatedPrincipal()
49     throws UnknownHostException JavaDoc {
50       return new GroupImpl(address.toString());
51   }
52 }
53
Popular Tags