View Javadoc
1 /* ------------------------------------------------------------------- 2 * Java source file for the class IndexedValueGetter 3 * 4 * Copyright (c), 2002, Masahiro Takatsuka. 5 * All Rights Researved. 6 * 7 * Original Author: Masahiro Takatsuka (masa@jbeans.net) 8 * $Author: takatsukam $ 9 * 10 * $Date: 2003/07/25 04:51:46 $ 11 * 12 * $Id: IndexedValueGetter.java,v 1.1.1.1 2003/07/25 04:51:46 takatsukam Exp $ 13 * 14 * Reference: Document no: 15 * ___ ___ 16 * 17 * To Do: 18 * ___ 19 * 20 ------------------------------------------------------------------- */ 21 22 /* --------------------------- Package ---------------------------- */ 23 package net.jbeans.lang.reflect; 24 25 /* ------------------ Import classes (packages) ------------------- *//package-summary/html">color="#329900"> ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900"> ------------------ Import classes (packages) ------------------- */ 26 import java.beans.*; 27 28 /*==================================================================== 29 Implementation of class IndexedValueGetter 30 ====================================================================*/ 31 /*** 32 * IndexedValueGetter defines methods which should be implementd by 33 * the class has "getValueAt(int index)" method. 34 * 35 * @version $Revision: 1.1.1.1 $ 36 * @author Masahiro Takatsuka (masa@jbeans.net) 37 */ 38 39 public interface IndexedValueGetter { 40 /*** 41 * a string represents the name of method "setValueAt". 42 */ 43 public static final String GETTER_NAME = "getValueAt"; 44 public static final String GETTER_PREFIX = "getValueOf"; 45 public static final String GETTER_INDEX_SEPARATOR = "_"; 46 47 /*** 48 * returns the number of available index. 49 */ 50 int getNumberOfGetter(); 51 52 /*** 53 * sets the number of index. 54 */ 55 void setNumberOfGetter(int num); 56 57 /*** 58 * Method to set value at the specified index. 59 */ 60 Object getValueAt(int index); 61 62 /*** 63 * set the setter method name for the specified index. 64 */ 65 void setGetterNameAt(int index, String name); 66 67 /*** 68 * get the setter method name for the specified index. 69 */ 70 String getGetterNameAt(int index); 71 }

This page was automatically generated by Maven