Package org.dmd.util.parsing

Examples of org.dmd.util.parsing.ConfigVersion


                tokens = classifier.classify(currLine, false);
               
                if (tokens.size() == 0)
                  continue;
               
                ConfigVersion currConfig = configFinder.getConfig(tokens.nth(0).getValue());

                if (tokens.nth(0).getValue().equals("?")){
                  System.out.println("");
                 
                  System.out.println(configFinder.getSearchInfo() + "\n");
                 
                  Iterator<ConfigVersion> it = configFinder.getVersions().values().iterator();
                  while(it.hasNext()){
                    ConfigVersion version = it.next();
                    ConfigLocation loc = version.getLatestVersion();
                   
                    if (loc.getJarFilename() == null){
                        System.out.println(format.sprintf(loc.getConfigName()) + "   version: " + loc.getVersion());
                      System.out.println(format.sprintf("") + " " + loc.getConfigParentDirectory() + "\n");
                    }
View Full Code Here


   
    Iterator<String> refs = moduleDMO.getDependsOnModule();
    if (refs != null){
      while(refs.hasNext()){
        String ref = refs.next();
        ConfigVersion cv = finder.getConfig(ref);
        if (cv == null){
          ResultException ex = new ResultException();
          ex.addError("MVW config not found: " + ref);
          ex.setLocationInfo(currentModule.getFile(), currentModule.getLineNumber());
          throw(ex);
        }
       
//        DebugInfo.debug("parseConfigInternal()\n\n" + cv.getLatestVersion().toString());
       
        // Check to see if we've read this config already, if not, go for it
        if (defManager.getModule(cv.getLatestVersion().getConfigName()) == null)
          parseConfigInternal(cv.getLatestVersion());
      }
    }

  }
View Full Code Here

     * NOTE: If WARNINGs are encountered, we still the schema - just check for the
     * presence of WARNINGs on the result set when parsing is complete.
     */
    SchemaDefinition parseSchemaInternal(String schemaName) throws ResultException, DmcValueException, DmcRuleExceptionSet {
//      DmsSchemaLocation  location  = finder.getLocation(schemaName);
      ConfigVersion    config    = finder.getConfig(schemaName);
      ConfigLocation    location  = null;
        SchemaDefinition    currSchema = null;
        String            currFile = null;
        SchemaDefinition    nativeSchema = null;
       
        if (config == null){
          ResultException ex = new ResultException();
          ex.addError("The specified schema couldn't be found: " + schemaName);
          throw(ex);
        }
       
        location = config.getLatestVersion();
       
        currFile = location.getFileName();

        if (!terseV)
            System.out.println("\nParsing schema: " + schemaName);
View Full Code Here

                            depSchema = dependsOnSchemas.next();
//DebugInfo.debug("Reading dependsOn: " + depSchema);
//if (depSchema.equals("dmv"))
//  DebugInfo.debugWithTrace("Parsing DMV");

                          ConfigVersion  config    = finder.getConfig(depSchema);
                          ConfigLocation  location  = null;
                           
                            if (config == null){
                              ResultException ex = new ResultException();
                              ex.addError("Couldn't find schema: " + depSchema + " on which schema: " + currSchema.getObjectName() + " depends.");
                              throw(ex);
                            }

                            location = config.getLatestVersion();
                           
                            currFile = location.getFileName();
                           
                            if (loadedFiles.containsKey(currFile) == false){
                                // Only load the schema if we haven't already parsed it
View Full Code Here

               
              tokens = classifier.classify(currLine, false);

//                DmsSchemaLocation currLoc = finder.getLocation(tokens.nth(0).getValue());
//                DmsSchemaLocation currLoc = finder.getLocation(tokens.nth(0).getValue());
              ConfigVersion    config    = finder.getConfig(tokens.nth(0).getValue());
              ConfigLocation    currLoc  = null;
             
              if (config != null)
                currLoc = config.getLatestVersion();

                if (currLine.equals("?")){
                 
                  System.out.println("");
                 
                  System.out.println(finder.getSearchInfo() + "\n");
                 
                  Iterator<ConfigVersion> it = finder.getVersions().values().iterator();
                  while(it.hasNext()){
                    ConfigVersion version = it.next();
                    ConfigLocation loc = version.getLatestVersion();
                   
                    if (loc.getJarFilename() == null){
                        System.out.println(format.sprintf(loc.getConfigName()) + "   version: " + loc.getVersion());
//                      System.out.println(format.sprintf(loc.getConfigName()) + " " + loc.getDirectory());
                      System.out.println(format.sprintf("") + " " + loc.getConfigParentDirectory() + "\n");
View Full Code Here

                currLine = s.trim();

                if (currLine.length() == 0)
                    continue;
               
                ConfigVersion currConfig = configFinder.getConfig(currLine);

                if (currLine.equals("?")){
                  System.out.println("");
                 
                  System.out.println(configFinder.getSearchInfo() + "\n");

                  Iterator<ConfigVersion> it = configFinder.getVersions().values().iterator();
                  while(it.hasNext()){
                    ConfigVersion version = it.next();
                    ConfigLocation loc = version.getLatestVersion();
                   
                    if (loc.getJarFilename() == null){
                        System.out.println(format.sprintf(loc.getConfigName()) + "   version: " + loc.getVersion());
                      System.out.println(format.sprintf("") + " " + loc.getConfigParentDirectory() + "\n");
                    }
View Full Code Here

TOP

Related Classes of org.dmd.util.parsing.ConfigVersion

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.