/** * @see org.objectweb.fractal.julia.TypeComponentMixin#getFcInterface(java.lang.String) */ public java.lang.Object getFcInterface(final java.lang.String interfaceName) throws org.objectweb.fractal.api.NoSuchInterfaceException { if ((interfaceName.indexOf('/')) == 0) { return getFcInterface$0(interfaceName); } org.objectweb.fractal.api.type.ComponentType compType = ((org.objectweb.fractal.api.type.ComponentType) (getFcType())); org.objectweb.fractal.api.type.InterfaceType itfType; try { itfType = compType.getFcInterfaceType(interfaceName); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.ChainedNoSuchInterfaceException(null, this, interfaceName); } java.lang.Object result; try { result = getFcInterface$0(interfaceName); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { if (itfType.isFcCollectionItf()) { result = getFcInterface$0(("/collection/" + (itfType.getFcItfName()))); result = ((org.objectweb.fractal.julia.ComponentInterface) (result)).clone(); ((org.objectweb.fractal.julia.ComponentInterface) (result)).setFcItfName(interfaceName); fcInterfaces.put(interfaceName, result); }else { throw e; } } return result; }
/** * @see org.objectweb.fractal.julia.TypeComponentMixin#getFcInterface(java.lang.String) */ public java.lang.Object getFcInterface(final java.lang.String interfaceName) throws org.objectweb.fractal.api.NoSuchInterfaceException { if ((interfaceName.indexOf('/')) == 0) { return getFcInterface$0(interfaceName); } org.objectweb.fractal.api.type.ComponentType compType = ((org.objectweb.fractal.api.type.ComponentType) (getFcType())); org.objectweb.fractal.api.type.InterfaceType itfType; try { itfType = compType.getFcInterfaceType(interfaceName); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { throw new org.objectweb.fractal.julia.ChainedNoSuchInterfaceException(null, this, interfaceName); } java.lang.Object result; try { result = getFcInterface$0(interfaceName); } catch (org.objectweb.fractal.api.NoSuchInterfaceException e) { if (itfType.isFcCollectionItf()) { result = getFcInterface$0(("/collection/" + (itfType.getFcItfName()))); result = ((org.objectweb.fractal.julia.ComponentInterface) (result)).clone(); ((org.objectweb.fractal.julia.ComponentInterface) (result)).setFcItfName(interfaceName); fcInterfaces.put(interfaceName, result); }else { throw e; } } return result; }
/** * @see org.objectweb.fractal.julia.TypeComponentMixin#getFcInterface(java.lang.String) */ public Object getFcInterface(final String interfaceName) throws NoSuchInterfaceException { if ((interfaceName.indexOf('/')) == 0) { return getFcInterface$0(interfaceName); } ComponentType compType = ((ComponentType)(getFcType())); InterfaceType itfType; try { itfType = compType.getFcInterfaceType(interfaceName); } catch (NoSuchInterfaceException e) { throw new ChainedNoSuchInterfaceException(null , this , interfaceName); } Object result; try { result = getFcInterface$0(interfaceName); } catch (NoSuchInterfaceException e) { if (itfType.isFcCollectionItf()) { result = getFcInterface$0(("/collection/" + (itfType.getFcItfName()))); result = ((ComponentInterface)(result)).clone(); ((ComponentInterface)(result)).setFcItfName(interfaceName); fcInterfaces.put(interfaceName ,result); } else { throw e; } } return result; }