1 /* 2 * @(#)IDLNameTranslator.java 1.9 04/06/21 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package com.sun.corba.se.spi.presentation.rmi ; 9 10 import java.lang.reflect.Method ; 11 12 /** Translates between methods on an interface and RMI-IIOP encodings 13 * of those methods as names. 14 */ 15 public interface IDLNameTranslator 16 { 17 /** Get the interfaces that this IDLNameTranslator describes. 18 */ 19 Class[] getInterfaces() ; 20 21 /** Get all methods for this remote interface. 22 * The methods are returned in a canonical order, that is, 23 * they are always in the same order for a particular interface. 24 */ 25 Method[] getMethods() ; 26 27 /** Get the method from this IDLNameTranslator's interfaces that 28 * corresponds to the mangled name idlName. Returns null 29 * if there is no matching method. 30 */ 31 Method getMethod( String idlName ) ; 32 33 /** Get the mangled name that corresponds to the given method 34 * on this IDLNameTranslator's interface. Returns null 35 * if there is no matching name. 36 */ 37 String getIDLName( Method method ) ; 38 } 39 40