public int addMapElement(MapElement value) { return this.addValue(MAP_ELEMENT, value); }
public MapElement getMapElement(int index) { return (MapElement)this.getValue(MAP_ELEMENT, index); }
public MapElement[] getMapElement() { return (MapElement[])this.getValues(MAP_ELEMENT); }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, RoleMap descriptor) { Element roleMapNode = (Element) super.writeDescriptor(parent, nodeName, descriptor); appendTextChild(roleMapNode, RuntimeTagNames.DESCRIPTION, descriptor.getDescription()); setAttribute(roleMapNode, RuntimeTagNames.MAP_ID, (String) descriptor.getValue(RoleMap.MAP_ID)); // map-element* MapElement[] maps = descriptor.getMapElement(); if (maps.length>0) { MapElementNode men = new MapElementNode(); for (int i=0;i<maps.length;i++) { men.writeDescriptor(roleMapNode, RuntimeTagNames.MAP_ELEMENT, maps[i]); } } return roleMapNode; } }
public void setMapElement(int index, MapElement value) { this.setValue(MAP_ELEMENT, index, value); }
public int removeMapElement(MapElement value) { return this.removeValue(MAP_ELEMENT, value); }
public int sizeMapElement() { return this.size(MAP_ELEMENT); }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name for the descriptor * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, RoleMap descriptor) { Element roleMapNode = (Element) super.writeDescriptor(parent, nodeName, descriptor); appendTextChild(roleMapNode, RuntimeTagNames.DESCRIPTION, descriptor.getDescription()); setAttribute(roleMapNode, RuntimeTagNames.MAP_ID, (String) descriptor.getValue(RoleMap.MAP_ID)); // map-element* MapElement[] maps = descriptor.getMapElement(); if (maps.length>0) { MapElementNode men = new MapElementNode(); for (int i=0;i<maps.length;i++) { men.writeDescriptor(roleMapNode, RuntimeTagNames.MAP_ELEMENT, maps[i]); } } return roleMapNode; } }
public void setMapElement(MapElement[] value) { this.setValue(MAP_ELEMENT, value); }
public int removeMapElement(MapElement value) { return this.removeValue(MAP_ELEMENT, value); }
public int sizeMapElement() { return this.size(MAP_ELEMENT); }
public void setMapElement(int index, MapElement value) { this.setValue(MAP_ELEMENT, index, value); }
public int addMapElement(MapElement value) { return this.addValue(MAP_ELEMENT, value); }
public MapElement[] getMapElement() { return (MapElement[])this.getValues(MAP_ELEMENT); }
public MapElement getMapElement(int index) { return (MapElement)this.getValue(MAP_ELEMENT, index); }
public void setMapElement(MapElement[] value) { this.setValue(MAP_ELEMENT, value); }