Package net.jangaroo.exml.model

Examples of net.jangaroo.exml.model.ConfigClass


    File destDir = new File(outputFolder.getRoot(), "testNamespace/config");
    destDir.mkdirs();
    FileUtils.copyFileToDirectory(new File(getConfigClassRegistry().getConfig().getSourcePath().get(0), "testNamespace/config/testComponent.as"),
            destDir);

    ConfigClass configClass = getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent");
    Assert.assertNotNull(configClass);
    Assert.assertEquals("testNamespace.config", configClass.getPackageName());
    Assert.assertEquals("testPackage.TestComponent", configClass.getComponentClassName());
    Assert.assertEquals(5, configClass.getCfgs().size());

    // 2nd try should return the same object
    Assert.assertEquals(configClass, getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent"));
  }
View Full Code Here


  @Test
  public void testGenerateFromLocalActionScript() throws Exception {
    setUp("somewhere.else.config", "/test-module", "/ext-as");

    ConfigClass configClass = getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent");
    Assert.assertNotNull(configClass);
    Assert.assertEquals("testNamespace.config", configClass.getPackageName());
    Assert.assertEquals("testPackage.TestComponent", configClass.getComponentClassName());
    Assert.assertEquals(5, configClass.getCfgs().size());
  }
View Full Code Here

  @Test
  public void testGenerateFromClassPathActionScript() throws Exception {
    setUp("somewhere.else.config", "/test-module", "/ext-as");

    ConfigClass configClass = getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent");
    Assert.assertNotNull(configClass);
    Assert.assertEquals("testNamespace.config", configClass.getPackageName());
    Assert.assertEquals("testPackage.TestComponent", configClass.getComponentClassName());
    Assert.assertEquals(5, configClass.getCfgs().size());
  }
View Full Code Here

import java.io.InputStream;

public class ExmlToConfigClassParser {

  public ConfigClass parseExmlToConfigClass(File source) throws IOException {
    ConfigClass configClass = new ConfigClass();
    //read exml data and write it into the config class
    ExmlMetadataHandler metadataHandler = new ExmlMetadataHandler(configClass);
    parseFileWithHandler(source, metadataHandler);
    return configClass;
  }
View Full Code Here

TOP

Related Classes of net.jangaroo.exml.model.ConfigClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.