FileDocCategorySizeDatePackage
JDMIpAddress.javaAPI DocJava SE 5 API1108Fri Aug 26 14:55:00 BST 2005com.sun.jmx.snmp.IPAcl

JDMIpAddress.java

/*
 * @(#)file      JDMIpAddress.java
 * @(#)author    Sun Microsystems, Inc.
 * @(#)version   4.9
 * @(#)date      05/08/26
 *
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */


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

package com.sun.jmx.snmp.IPAcl;

import java.lang.StringBuffer;
import java.net.UnknownHostException;

/** 
 * @version     4.9     12/19/03 
 * @author      Sun Microsystems, Inc. 
 */ 
class JDMIpAddress extends Host {
  protected StringBuffer address= new StringBuffer();

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

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

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

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