Package org.dmd.dms

Examples of org.dmd.dms.EnumDefinition


    }
   
    Iterator<EnumDefinition>  enums = sd.getEnumDefList();
    if (enums != null){
      while(enums.hasNext()){
        EnumDefinition ed = enums.next();
       
        String enumPrimitive = sd.getSchemaPackage() + ".generated.enums." + ed.getName().getNameString();
       
        GenUtility.dumpIterable(dmwdir, sd.getDmwPackage(), enumPrimitive, ed.getName().getNameString(), "", fileHeader, progress);
      }
    }
  }
View Full Code Here


    }
   
    Iterator<EnumDefinition> enums = schema.getEnumDefList();
    if (enums != null){
      while(enums.hasNext()){
        EnumDefinition ed = enums.next();
        sb.append("    public static EnumDefinition _" + ed.getName() + ";\n");
        allVars.add(new VarToObject("_" + ed.getName(), ed, "EnumDefinition"));
        enumVars.add(new VarToObject("_" + ed.getName(), ed, "EnumDefinition"));
      }
      sb.append("\n");
      allVars.add(new VarToObject("", null, null));
    }
   
View Full Code Here

    }
   
    if (enumMappings.size() > 0){
      for(EnumMapping mapping: enumMappings.values()){
        if (mapping.getDefinedInModule() == codeGenModule){
          EnumDefinition ed = readSchemas.isEnum(mapping.getEnumName());
          if (ed == null){
            if (errors == null)
              errors = new ResultException();
           
            errors.addError(mapping.getEnumName() + " is not a known enum type.");
            errors.result.lastResult().fileName(mapping.getFile());
            errors.result.lastResult().lineNumber(mapping.getLineNumber());
          }
          else{
            mapping.setEnumDef(ed);
         
            EnumValue ev = ed.getEnumValue(mapping.getUnsetValue());
            if (ev == null){
              if (errors == null)
                errors = new ResultException();
             
              errors.addError(mapping.getUnsetValue() + " is not a valid member of enum: " + ed.getName());
              errors.result.lastResult().fileName(mapping.getFile());
              errors.result.lastResult().lineNumber(mapping.getLineNumber());
             
            }
          }
View Full Code Here

    }
   
    Iterator<EnumDefinition>  enums = sd.getEnumDefList();
    if (enums != null){
      while(enums.hasNext()){
        EnumDefinition ed = enums.next();
       
        String enumPrimitive = sd.getSchemaPackage() + ".generated.enums." + ed.getName().getNameString();
       
        GenUtility.dumpIterable(dmwdir, sd.getDmwPackage(), enumPrimitive, ed.getName().getNameString(), "", fileHeader, progress);
      }
    }
   
    Iterator<ComplexTypeDefinition>  ctypes = sd.getComplexTypeDefList();
    if (ctypes != null){
View Full Code Here

    }
   
    Iterator<EnumDefinition>  enums = sd.getEnumDefList();
    if (enums != null){
      while(enums.hasNext()){
        EnumDefinition ed = enums.next();
       
        String enumPrimitive = sd.getSchemaPackage() + ".generated.enums." + ed.getName().getNameString();
       
        GenUtility.dumpIterable(dmwdir, sd.getDmwPackage(), enumPrimitive, ed.getName().getNameString(), "", fileHeader, progress);
      }
    }
   
    Iterator<ComplexTypeDefinition>  ctypes = sd.getComplexTypeDefList();
    if (ctypes != null){
View Full Code Here

TOP

Related Classes of org.dmd.dms.EnumDefinition

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.