1 23 24 29 30 package com.sun.enterprise.deployment.runtime.connector; 31 32 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 33 34 41 public class RoleMap extends RuntimeDescriptor 42 { 43 44 static public final String DESCRIPTION = "Description"; static public final String MAP_ELEMENT = "MapElement"; static public final String MAP_ID = "MapId"; 47 48 public void setMapElement(int index, MapElement value) 50 { 51 this.setValue(MAP_ELEMENT, index, value); 52 } 53 54 public MapElement getMapElement(int index) 56 { 57 return (MapElement)this.getValue(MAP_ELEMENT, index); 58 } 59 60 public void setMapElement(MapElement[] value) 62 { 63 this.setValue(MAP_ELEMENT, value); 64 } 65 66 public MapElement[] getMapElement() 68 { 69 return (MapElement[])this.getValues(MAP_ELEMENT); 70 } 71 72 public int sizeMapElement() 74 { 75 return this.size(MAP_ELEMENT); 76 } 77 78 public int addMapElement(MapElement value) 80 { 81 return this.addValue(MAP_ELEMENT, value); 82 } 83 84 public int removeMapElement(MapElement value) 89 { 90 return this.removeValue(MAP_ELEMENT, value); 91 } 92 93 public boolean verify() 95 { 96 return true; 97 } 98 } 99 | Popular Tags |