KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)file JDMHostName.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 4.9
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
12
13 /* Generated By:JJTree: Do not edit this line. JDMHostName.java */
14
15 package com.sun.jmx.snmp.IPAcl;
16
17 import java.net.UnknownHostException JavaDoc;
18
19 /**
20  * @version 4.9 12/19/03
21  * @author Sun Microsystems, Inc.
22  */

23 class JDMHostName extends Host {
24   protected StringBuffer JavaDoc name = new StringBuffer JavaDoc();
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 JavaDoc getHname() {
43     return name.toString();
44   }
45   
46   protected PrincipalImpl createAssociatedPrincipal()
47     throws UnknownHostException JavaDoc {
48       return new PrincipalImpl(name.toString());
49   }
50 }
51
Popular Tags