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

JDMNetMask.java

/*
 * @(#)file      JDMNetMask.java
 * @(#)author    Sun Microsystems, Inc.
 * @(#)version   1.6
 * @(#)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. JDMNetMask.java */

package com.sun.jmx.snmp.IPAcl;
import java.net.UnknownHostException;

class JDMNetMask extends Host {
  protected StringBuffer address= new StringBuffer();
    protected String mask = null;  
  public JDMNetMask(int id) {
    super(id);
  }

  public JDMNetMask(Parser p, int id) {
    super(p, id);
  }
public static Node jjtCreate(int id) {
      return new JDMNetMask(id);
  }

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