Index: lutingenerator/src/java/org/codelutin/generator/models/object/xml/ObjectModelImpl.java diff -u lutingenerator/src/java/org/codelutin/generator/models/object/xml/ObjectModelImpl.java:1.17 lutingenerator/src/java/org/codelutin/generator/models/object/xml/ObjectModelImpl.java:1.18 --- lutingenerator/src/java/org/codelutin/generator/models/object/xml/ObjectModelImpl.java:1.17 Tue Aug 16 21:56:01 2005 +++ lutingenerator/src/java/org/codelutin/generator/models/object/xml/ObjectModelImpl.java Tue Dec 13 18:26:27 2005 @@ -23,10 +23,10 @@ * * @author C�dric Pineau * Copyright Code Lutin -* @version $Revision: 1.17 $ +* @version $Revision: 1.18 $ * -* Last update : $Date: 2005/08/16 21:56:01 $ -* by : $Author: bpoussin $ +* Last update : $Date: 2005/12/13 18:26:27 $ +* by : $Author: thimel $ */ package org.codelutin.generator.models.object.xml; @@ -190,26 +190,25 @@ } /** - * Returns all interfaces defined in this model. - * @see ObjectModelInterface. - * - * @return a Collection containing all ObjectModelInterface for this model. - */ + * Returns the interface corresponding to the given qualified name, or null if the model contains no interface for this qualified name. + * @param qualifiedInterfaceName - the qualified name of the interface to retrieve. + * + * @return the ObjectModelInterface of the found interface, or null if the model contains no interface for this qualified name. + */ public ObjectModelInterface getInterface(String qualifiedInterfaceName) { ObjectModelInterface result = null; result = (ObjectModelInterface)interfaces.get(qualifiedInterfaceName); if(result == null){ - throw new GeneratorException( - "Can't find interface named: " + qualifiedInterfaceName); + System.out.println("WARNING : Class "+ qualifiedInterfaceName +" not found in model"); } return result; } /** - * Returns the interface corresponding to the given qualified name, or null if the model contains no interface for this qualified name. - * @param qualifiedInterfaceName - the qualified name of the interface to retrieve. + * Returns all interfaces defined in this model. + * @see ObjectModelInterface. * - * @return the ObjectModelInterface of the found interface, or null if the model contains no interface for this qualified name. + * @return a Collection containing all ObjectModelInterface for this model. */ public Collection getInterfaces() { return interfaces.values();