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

JDMCommunities.java

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

package com.sun.jmx.snmp.IPAcl;


/** 
 * @version     4.7     12/19/03 
 * @author      Sun Microsystems, Inc. 
 */ 
class JDMCommunities extends SimpleNode {
  JDMCommunities(int id) {
    super(id);
  }

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

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

  public static Node jjtCreate(Parser p, int id) {
      return new JDMCommunities(p, id);
  }
  
  public void buildCommunities(AclEntryImpl entry){
	for (int i =0 ; i < children.length ; i++)
	  entry.addCommunity(((JDMCommunity)children[i]).getCommunity());
  }
}