X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmir%2Fgenerator%2FCompositeGeneratorLibrary.java;h=324363fc9350f43a5983a4f36fe7902013a1a343;hb=63e0ee1fb8038eb6d8f0190cf38c3b3ab2727216;hp=d1c5651bd54d2e917ea080b0d90a84b159531654;hpb=8b91e8d8bf4a31a88440a404e83238dcf32f8f4a;p=mir.git diff --git a/source/mir/generator/CompositeGeneratorLibrary.java b/source/mir/generator/CompositeGeneratorLibrary.java index d1c5651b..324363fc 100755 --- a/source/mir/generator/CompositeGeneratorLibrary.java +++ b/source/mir/generator/CompositeGeneratorLibrary.java @@ -32,16 +32,16 @@ package mir.generator; import java.util.HashMap; import java.util.Map; -public class CompositeGeneratorLibrary implements Generator.GeneratorLibrary { +public class CompositeGeneratorLibrary implements Generator.Library { private Map generatorLibraries; - private Generator.GeneratorLibrary defaultLibrary = null; + private Generator.Library defaultLibrary = null; private static String LIBRARY_QUALIFIER_SEPARATOR = "::"; public CompositeGeneratorLibrary() { generatorLibraries = new HashMap(); } - public void addLibrary(String aQualifier, Generator.GeneratorLibrary aLibrary, boolean anIsDefault) { + public void addLibrary(String aQualifier, Generator.Library aLibrary, boolean anIsDefault) { if (anIsDefault || defaultLibrary == null) { defaultLibrary = aLibrary; } @@ -53,14 +53,14 @@ public class CompositeGeneratorLibrary implements Generator.GeneratorLibrary { String qualifier; String libraryName; int position; - Generator.GeneratorLibrary library; + Generator.Library library; position = anIdentifier.indexOf( LIBRARY_QUALIFIER_SEPARATOR ); if (position>=0) { libraryName = anIdentifier.substring(0, position); qualifier = anIdentifier.substring(position + LIBRARY_QUALIFIER_SEPARATOR.length()); - library = (Generator.GeneratorLibrary) generatorLibraries.get(libraryName); + library = (Generator.Library) generatorLibraries.get(libraryName); if (library==null) throw new GeneratorExc("CompositeGeneratorLibrary: library '"+libraryName+"' not found");