1 11 12 13 14 15 package com.sun.jmx.snmp.IPAcl; 16 17 import java.net.UnknownHostException ; 18 19 23 class JDMHostName extends Host { 24 protected StringBuffer name = new StringBuffer (); 25 26 JDMHostName(int id) { 27 super(id); 28 } 29 30 JDMHostName(Parser p, int id) { 31 super(p, id); 32 } 33 34 public static Node jjtCreate(int id) { 35 return new JDMHostName(id); 36 } 37 38 public static Node jjtCreate(Parser p, int id) { 39 return new JDMHostName(p, id); 40 } 41 42 protected String getHname() { 43 return name.toString(); 44 } 45 46 protected PrincipalImpl createAssociatedPrincipal() 47 throws UnknownHostException { 48 return new PrincipalImpl(name.toString()); 49 } 50 } 51 | Popular Tags |