FileDocCategorySizeDatePackage
JDMHostName.javaAPI DocJava SE 6 API1061Tue Jun 10 00:22:04 BST 2008com.sun.jmx.snmp.IPAcl

JDMHostName.java

/*
 * @(#)file      JDMHostName.java
 * @(#)author    Sun Microsystems, Inc.
 * @(#)version   4.10
 * @(#)date      08/06/10
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */


/* Generated By:JJTree: Do not edit this line. JDMHostName.java */

package com.sun.jmx.snmp.IPAcl;

import java.net.UnknownHostException;

/** 
 * @version     4.10     11/17/05 
 * @author      Sun Microsystems, Inc. 
 */ 
class JDMHostName extends Host {
  protected StringBuffer name = new StringBuffer();

  JDMHostName(int id) {
    super(id);
  }

  JDMHostName(Parser p, int id) {
    super(p, id);
  }

  public static Node jjtCreate(int id) {
      return new JDMHostName(id);
  }

  public static Node jjtCreate(Parser p, int id) {
      return new JDMHostName(p, id);
  }
  
  protected String getHname() {
	return name.toString();
  }
  
  protected PrincipalImpl createAssociatedPrincipal() 
    throws UnknownHostException { 
      return new PrincipalImpl(name.toString());
  }
}