1 11 12 13 package com.sun.jmx.snmp.IPAcl; 14 import java.net.UnknownHostException ; 15 16 class JDMNetMask extends Host { 17 protected StringBuffer address= new StringBuffer (); 18 protected String 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 getHname() { 35 return address.toString(); 36 } 37 38 protected PrincipalImpl createAssociatedPrincipal() 39 throws UnknownHostException { 40 return new NetMaskImpl(address.toString(), Integer.parseInt(mask)); 41 } 42 } 43 | Popular Tags |