package rose;

import com.linar.jintegra.*;
/**
 * Proxy for COM Interface 'IRosePathMap'. Generated 30/01/2002 3:46:15 PM
 * from 'C:\Program Files\Rational\Rose\rationalrose.tlb'<P>
 * Generated using version 1.3.1  of <B>J-Integra[tm]</B> -- pure Java/COM integration technology from Linar Ltd.
 * See  <A HREF="http://www.linar.com/">http://www.linar.com/</A><P>
 */
public class IRosePathMapProxy extends com.linar.jintegra.Dispatch implements IRosePathMap {

  protected String getJintegraVersion() { return "1.3.1"; }

  public static final Class targetClass = rose.IRosePathMap.class;

  public IRosePathMapProxy(String CLSID, String host, AuthInfo authInfo) throws java.net.UnknownHostException, java.io.IOException{
    super(CLSID, IRosePathMap.IID, host, authInfo);
  }

  /** For internal use only */
  public IRosePathMapProxy() {}

  public IRosePathMapProxy(Object obj) throws java.io.IOException {
    super(obj, IRosePathMap.IID);
  }

  protected IRosePathMapProxy(Object obj, String iid) throws java.io.IOException {
    super(obj, iid);
  }

  protected IRosePathMapProxy(String CLSID, String iid, String host, AuthInfo authInfo) throws java.io.IOException {
    super(CLSID, iid, host, authInfo);
  }

  public void addListener(String iidStr, Object theListener, Object theSource) throws java.io.IOException {
    super.addListener(iidStr, theListener, theSource);
  }

  public void removeListener(String iidStr, Object theListener) throws java.io.IOException {
    super.removeListener(iidStr, theListener);
  }

  /**
   * getPropertyByName. Get the value of a property dynamically at run-time, based on its name
   *
   * @return    return value.  The value of the property.
   * @param     name. The name of the property to get.
   * @exception java.lang.NoSuchFieldException If the property does not exit.
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public Object getPropertyByName(String name) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
    com.linar.jintegra.Variant parameters[] = {};
    return super.invoke(name, super.getDispatchIdOfName(name), 2, parameters).getVARIANT();
  }

  /**
   * getPropertyByName. Get the value of a property dynamically at run-time, based on its name and a parameter value
   *
   * @return    return value.  The value of the property.
   * @param     name. The name of the property to get.
   * @param     rhs. Parameter used when getting the property.
   * @exception java.lang.NoSuchFieldException If the property does not exit.
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public Object getPropertyByName(String name, Object rhs) throws NoSuchFieldException, java.io.IOException, com.linar.jintegra.AutomationException {
    com.linar.jintegra.Variant parameters[] = {rhs == null ? new Variant("rhs", 10, 0x80020004L) : new Variant("rhs", 12, rhs)};
    return super.invoke(name, super.getDispatchIdOfName(name), 2, parameters).getVARIANT();
  }

  /**
   * invokeMethodByName. Invoke a method dynamically at run-time
   *
   * @return    return value.  The value returned by the method (null if none).
   * @param     name. The name of the method to be invoked
   * @param     parameters.  One element for each parameter.  Use primitive type wrappers
   *            to pass primitive types (eg Integer to pass an int).
   * @exception java.lang.NoSuchMethodException If the method does not exit.
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public Object invokeMethodByName(String name, Object[] parameters) throws NoSuchMethodException, java.io.IOException, com.linar.jintegra.AutomationException {
    com.linar.jintegra.Variant variantParameters[] = new com.linar.jintegra.Variant[parameters.length];
    for(int i = 0; i < parameters.length; i++) {
      variantParameters[i] = parameters[i] == null ? new Variant("p" + i, 10, 0x80020004L) :
	                                                   new Variant("p" + i, 12, parameters[i]);
    }
    try {
      return super.invoke(name, super.getDispatchIdOfName(name), 1, variantParameters).getVARIANT();
    } catch(NoSuchFieldException nsfe) {
      throw new NoSuchMethodException("There is no method called " + name);
    }
  }

  /**
   * deleteEntry. 
   *
   * @param     Symbol The Symbol (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public boolean deleteEntry  (
              String Symbol) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("Symbol", 8, Symbol),};
    return invoke("deleteEntry", 50, 1, parameters).getBOOL();
  }

  /**
   * getActualPath. 
   *
   * @param     VirtualPath The VirtualPath (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public String getActualPath  (
              String VirtualPath) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("VirtualPath", 8, VirtualPath),};
    return invoke("getActualPath", 51, 1, parameters).getBSTR();
  }

  /**
   * getVirtualPath. 
   *
   * @param     ActualPath The ActualPath (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public String getVirtualPath  (
              String ActualPath) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("ActualPath", 8, ActualPath),};
    return invoke("getVirtualPath", 52, 1, parameters).getBSTR();
  }

  /**
   * hasEntry. 
   *
   * @param     Symbol The Symbol (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public boolean hasEntry  (
              String Symbol) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("Symbol", 8, Symbol),};
    return invoke("hasEntry", 53, 1, parameters).getBOOL();
  }

  /**
   * addEntry. 
   *
   * @param     Symbol The Symbol (in)
   * @param     Path The Path (in)
   * @param     Comment The Comment (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public boolean addEntry  (
              String Symbol,
              String Path,
              String Comment) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("Symbol", 8, Symbol),
                                         new Variant("Path", 8, Path),
                                         new Variant("Comment", 8, Comment),};
    return invoke("addEntry", 54, 1, parameters).getBOOL();
  }

  /**
   * getActualPathWithContext. 
   *
   * @param     VirtualPath The VirtualPath (in)
   * @param     Context The Context (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public String getActualPathWithContext  (
              String VirtualPath,
              String Context) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("VirtualPath", 8, VirtualPath),
                                         new Variant("Context", 8, Context),};
    return invoke("getActualPathWithContext", 12674, 1, parameters).getBSTR();
  }

  /**
   * getVirtualPathWithContext. 
   *
   * @param     ActualPath The ActualPath (in)
   * @param     Context The Context (in)
   * @return    return value.  The return value
   * @exception java.io.IOException If there are communications problems.
   * @exception com.linar.jintegra.AutomationException If the remote server throws an exception.
   */
  public String getVirtualPathWithContext  (
              String ActualPath,
              String Context) throws java.io.IOException, com.linar.jintegra.AutomationException{
    com.linar.jintegra.Variant[] parameters = {new Variant("ActualPath", 8, ActualPath),
                                         new Variant("Context", 8, Context),};
    return invoke("getVirtualPathWithContext", 12675, 1, parameters).getBSTR();
  }

  /** Dummy reference from interface to proxy to make sure proxy gets compiled */
  static final int xxDummy = 0;
}
