Tabnine Logo
ExmlConfiguration.getConfigClassPackage
Code IndexAdd Tabnine to your IDE (free)

How to use
getConfigClassPackage
method
in
net.jangaroo.exml.config.ExmlConfiguration

Best Java code snippets using net.jangaroo.exml.config.ExmlConfiguration.getConfigClassPackage (Showing top 15 results out of 315)

origin: CoreMedia/jangaroo-tools

public File computeConfigClassTarget(String configClassName) {
 return CompilerUtils.fileFromQName(getConfigClassPackage(), configClassName, getOutputDirectory(), Jooc.AS_SUFFIX);
}
origin: net.jangaroo/exml-compiler

@Override
public File generateXsd() {
 // Maybe even the directory does not exist.
 File targetPackageFolder = getConfig().getResourceOutputDirectory();
 if(!targetPackageFolder.exists()) {
  //noinspection ResultOfMethodCallIgnored
  targetPackageFolder.mkdirs(); // NOSONAR
 }
 File result = new File(targetPackageFolder, getConfig().getConfigClassPackage() + ".xsd");
 Writer writer = null;
 try {
  writer = new OutputStreamWriter(new FileOutputStream(result), net.jangaroo.exml.api.Exmlc.OUTPUT_CHARSET);
  configClassRegistry.generateXsd(writer);
 } catch (Exception e) {
  throw new ExmlcException("unable to generate xsd file: " + e.getMessage(), e);
 } finally {
  try {
   if (writer != null) {
    writer.close();
   }
  } catch (IOException e) {
   //never happen
  }
 }
 return result;
}
origin: net.jangaroo/exml-compiler

private String computeConfigClassName(File exmlFile) {
 return CompilerUtils.qName(
     getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.removeExtension(exmlFile.getName())));
}
origin: CoreMedia/jangaroo-tools

@Override
public File generateXsd() {
 // Maybe even the directory does not exist.
 File targetPackageFolder = getConfig().getResourceOutputDirectory();
 if(!targetPackageFolder.exists()) {
  //noinspection ResultOfMethodCallIgnored
  targetPackageFolder.mkdirs(); // NOSONAR
 }
 File result = new File(targetPackageFolder, getConfig().getConfigClassPackage() + ".xsd");
 Writer writer = null;
 try {
  writer = new OutputStreamWriter(new FileOutputStream(result), net.jangaroo.exml.api.Exmlc.OUTPUT_CHARSET);
  configClassRegistry.generateXsd(writer);
 } catch (Exception e) {
  throw new ExmlcException("unable to generate xsd file: " + e.getMessage(), e);
 } finally {
  try {
   if (writer != null) {
    writer.close();
   }
  } catch (IOException e) {
   //never happen
  }
 }
 return result;
}
origin: CoreMedia/jangaroo-tools

private String computeConfigClassName(File exmlFile) {
 return CompilerUtils.qName(
     getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.removeExtension(exmlFile.getName())));
}
origin: net.jangaroo/exml-compiler

private String computeConfigClassNameFromTargetClassName(String targetClassName) {
 return CompilerUtils.qName(getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.className(targetClassName)));
}
origin: CoreMedia/jangaroo-tools

private String computeConfigClassNameFromTargetClassName(String targetClassName) {
 return CompilerUtils.qName(getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.className(targetClassName)));
}
origin: net.jangaroo/exml-compiler

private void scanAsFiles(Map<String, File> sourceFilesByName) {
 InputSource configPackageInputSource = sourcePathInputSource.getChild(config.getConfigClassPackage().replace('.', File.separatorChar));
 if (configPackageInputSource != null) {
  for (InputSource source : configPackageInputSource.list()) {
   File file = ((FileInputSource) source).getFile();
   if (file.isFile() && file.getName().endsWith(Jooc.AS_SUFFIX)) {
    try {
     File sourceDir = getConfig().findSourceDir(file);
     String qName = CompilerUtils.qNameFromFile(sourceDir, file);
     ConfigClass actionScriptConfigClass = findActionScriptConfigClass(qName);
     if (actionScriptConfigClass != null) {
      addSourceConfigClass(sourceFilesByName, file, actionScriptConfigClass);
     }
    } catch (IOException e) {
     throw new ExmlcException("could not read AS file", e);
    }
   }
  }
 }
}
origin: CoreMedia/jangaroo-tools

private void scanAsFiles(Map<String, File> sourceFilesByName) {
 InputSource configPackageInputSource = sourcePathInputSource.getChild(config.getConfigClassPackage().replace('.', File.separatorChar));
 if (configPackageInputSource != null) {
  for (InputSource source : configPackageInputSource.list()) {
   File file = ((FileInputSource) source).getFile();
   if (file.isFile() && file.getName().endsWith(Jooc.AS_SUFFIX)) {
    try {
     File sourceDir = getConfig().findSourceDir(file);
     String qName = CompilerUtils.qNameFromFile(sourceDir, file);
     ConfigClass actionScriptConfigClass = findActionScriptConfigClass(qName);
     if (actionScriptConfigClass != null) {
      addSourceConfigClass(sourceFilesByName, file, actionScriptConfigClass);
     }
    } catch (IOException e) {
     throw new ExmlcException("could not read AS file", e);
    }
   }
  }
 }
}
origin: net.jangaroo/exml-compiler

public ExmlSourceFile(ConfigClassRegistry configClassRegistry, File sourceFile) throws IOException {
 this.configClassRegistry = configClassRegistry;
 this.sourceFile = sourceFile;
 configClassName = CompilerUtils.qName(configClassRegistry.getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.removeExtension(sourceFile.getName())));
 File sourceDir = configClassRegistry.getConfig().findSourceDir(sourceFile);
 String exmlClassName = CompilerUtils.qNameFromFile(sourceDir, sourceFile);
 targetClassName = CompilerUtils.qName(CompilerUtils.packageName(exmlClassName),
     ExmlUtils.createComponentClassName(CompilerUtils.className(exmlClassName)));
}
origin: CoreMedia/jangaroo-tools

public ExmlSourceFile(ConfigClassRegistry configClassRegistry, File sourceFile) throws IOException {
 this.configClassRegistry = configClassRegistry;
 this.sourceFile = sourceFile;
 configClassName = CompilerUtils.qName(configClassRegistry.getConfig().getConfigClassPackage(),
     CompilerUtils.uncapitalize(CompilerUtils.removeExtension(sourceFile.getName())));
 File sourceDir = configClassRegistry.getConfig().findSourceDir(sourceFile);
 String exmlClassName = CompilerUtils.qNameFromFile(sourceDir, sourceFile);
 targetClassName = CompilerUtils.qName(CompilerUtils.packageName(exmlClassName),
     ExmlUtils.createComponentClassName(CompilerUtils.className(exmlClassName)));
}
origin: CoreMedia/jangaroo-tools

/**
 * Parses the exml file into an ExmlModel
 * @param file the file to parse
 * @return the parsed model
 * @throws IOException if the input stream could not be read
 * @throws SAXException if the XML was not well-formed
 */
public ExmlModel parse(File file) throws IOException, SAXException {
 ExmlModel model = new ExmlModel();
 String qName = CompilerUtils.qNameFromFile(registry.getConfig().findSourceDir(file), file);
 String className = CompilerUtils.className(qName);
 model.setClassName(ExmlUtils.createComponentClassName(className));
 ConfigClass configClassByName = registry.getConfigClassByName(registry.getConfig().getConfigClassPackage() + "." + ConfigClass.createConfigClassName(className));
 model.setConfigClass(configClassByName);
 model.setPackageName(CompilerUtils.packageName(qName));
 BufferedInputStream inputStream = null;
 try {
  inputStream = new BufferedInputStream(new FileInputStream(file));
  parse(inputStream, model);
 } finally {
  if (inputStream != null) {
   inputStream.close();
  }
 }
 return model;
}
origin: net.jangaroo/exml-compiler

public void generateXsd(Writer output) throws IOException, TemplateException {
 exmlConfigPackageXsdGenerator.generateXsdFile(getSourceConfigClasses(), config.getConfigClassPackage(), output);
 if (getConfig().getValidationMode() != ValidationMode.OFF) {
  try {
   new ExmlValidator(getConfig()).validateAllExmlFiles();
  } catch (Exception e) {
   throw new ExmlcException("unable to start validation", e);
  }
 }
}
origin: CoreMedia/jangaroo-tools

public void generateXsd(Writer output) throws IOException, TemplateException {
 exmlConfigPackageXsdGenerator.generateXsdFile(getSourceConfigClasses(), config.getConfigClassPackage(), output);
 if (getConfig().getValidationMode() != ValidationMode.OFF) {
  try {
   new ExmlValidator(getConfig()).validateAllExmlFiles();
  } catch (Exception e) {
   throw new ExmlcException("unable to start validation", e);
  }
 }
}
origin: net.jangaroo/exml-compiler

/**
 * Parses the exml file into an ExmlModel
 * @param file the file to parse
 * @return the parsed model
 * @throws IOException if the input stream could not be read
 * @throws SAXException if the XML was not well-formed
 */
public ExmlModel parse(File file) throws IOException, SAXException {
 ExmlModel model = new ExmlModel();
 String qName = CompilerUtils.qNameFromFile(registry.getConfig().findSourceDir(file), file);
 String className = CompilerUtils.className(qName);
 model.setClassName(ExmlUtils.createComponentClassName(className));
 ConfigClass configClassByName = registry.getConfigClassByName(registry.getConfig().getConfigClassPackage() + "." + ConfigClass.createConfigClassName(className));
 model.setConfigClass(configClassByName);
 model.setPackageName(CompilerUtils.packageName(qName));
 try (BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file))) {
  parse(inputStream, model);
 }
 return model;
}
net.jangaroo.exml.configExmlConfigurationgetConfigClassPackage

Popular methods of ExmlConfiguration

  • <init>
  • computeConfigClassTarget
  • findSourceDir
  • getOutputDirectory
  • getSourceFiles
  • getValidationMode
  • setClassPath
  • setConfigClassPackage
  • setOutputDirectory
  • setResourceOutputDirectory
  • setSourcePath
  • computeGeneratedComponentClassFile
  • setSourcePath,
  • computeGeneratedComponentClassFile,
  • getClassPath,
  • getExtAsJar,
  • getLog,
  • getResourceOutputDirectory,
  • getSourcePath,
  • isConvertToMxml,
  • isKeepExmlFiles

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JLabel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now