1 11 12 13 14 15 package com.sun.jmx.snmp.IPAcl; 16 17 18 22 class JDMCommunities extends SimpleNode { 23 JDMCommunities(int id) { 24 super(id); 25 } 26 27 JDMCommunities(Parser p, int id) { 28 super(p, id); 29 } 30 31 public static Node jjtCreate(int id) { 32 return new JDMCommunities(id); 33 } 34 35 public static Node jjtCreate(Parser p, int id) { 36 return new JDMCommunities(p, id); 37 } 38 39 public void buildCommunities(AclEntryImpl entry){ 40 for (int i =0 ; i < children.length ; i++) 41 entry.addCommunity(((JDMCommunity)children[i]).getCommunity()); 42 } 43 } 44 | Popular Tags |