1 11 12 13 14 15 package com.sun.jmx.snmp.IPAcl; 16 17 import java.lang.StringBuffer ; 18 import java.net.UnknownHostException ; 19 20 24 class JDMIpMask extends Host { 25 26 protected StringBuffer address= new StringBuffer (); 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 getHname() { 45 return address.toString(); 46 } 47 48 protected PrincipalImpl createAssociatedPrincipal() 49 throws UnknownHostException { 50 return new GroupImpl(address.toString()); 51 } 52 } 53 | Popular Tags |