KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)file JDMNetMask.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 1.6
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 /* Generated By:JJTree: Do not edit this line. JDMNetMask.java */
12
13 package com.sun.jmx.snmp.IPAcl;
14 import java.net.UnknownHostException JavaDoc;
15
16 class JDMNetMask extends Host {
17   protected StringBuffer JavaDoc address= new StringBuffer JavaDoc();
18     protected String JavaDoc mask = null;
19   public JDMNetMask(int id) {
20     super(id);
21   }
22
23   public JDMNetMask(Parser p, int id) {
24     super(p, id);
25   }
26 public static Node jjtCreate(int id) {
27       return new JDMNetMask(id);
28   }
29
30   public static Node jjtCreate(Parser p, int id) {
31       return new JDMNetMask(p, id);
32   }
33   
34   protected String JavaDoc getHname() {
35     return address.toString();
36   }
37   
38   protected PrincipalImpl createAssociatedPrincipal()
39     throws UnknownHostException JavaDoc {
40       return new NetMaskImpl(address.toString(), Integer.parseInt(mask));
41   }
42 }
43
Popular Tags