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