Package org.dmd.util

Examples of org.dmd.util.BooleanVar


        out.write("package " + schemaPackage + ".generated.dmo;\n\n");
     
        out.write("import java.io.Serializable;\n");
        out.write("import org.dmd.dms.extended.ActionTriggerInfo;\n");
       
    BooleanVar  anyMVAttributes = new BooleanVar(false);
    BooleanVar  anySVAttributes = new BooleanVar(false);

       
        out.write(GenUtility.getImports(ad, allAttr, anySVAttributes, anyMVAttributes) + "\n");
       
//        out.write("import org.dmd.dmc.DmcValueException;\n");
View Full Code Here


   * @param allAttr   An array that will be populated with all attribute definitions of the class.
   * @param sb        The buffer where the import statements are accumulated.
   */
//  static public void getAttributesAndImports(ClassDefinition cd, String baseClass, ArrayList<AttributeDefinition> allAttr, StringBuffer sb){
  static public void getAttributesAndImports(ClassDefinition cd, String baseClass, TreeMap<StringName,AttributeDefinition> allAttr, StringBuffer sb){
    BooleanVar      needJavaUtil  = new BooleanVar(false);
    TreeMap<StringName,TypeDefinition>  types = new TreeMap<StringName,TypeDefinition>();
   
    collectAllAttributes(cd,allAttr,types,needJavaUtil);
   
//    Iterator<AttributeDefinition> may = cd.getMay();
//    if (may != null){
//      while(may.hasNext()){
//        AttributeDefinition ad = may.next();
//        TypeDefinition td = ad.getType();
//        types.put(td.getName(), td);
//        if (ad.getIsMultiValued())
//          needJavaUtil = true;
//       
//        allAttr.add(ad);
//      }
//    }
//   
//    Iterator<AttributeDefinition> must = cd.getMust();
//    if (must != null){
//      while(must.hasNext()){
//        AttributeDefinition ad = must.next();
//        TypeDefinition td = ad.getType();
//        types.put(td.getName(), td);
//        if (ad.getIsMultiValued())
//          needJavaUtil = true;
//       
//        allAttr.add(ad);
//      }
//    }
   
    if (needJavaUtil.booleanValue())
      sb.append("import java.util.*;\n\n");
   
    if (cd.getIsNamedBy() != null){
      sb.append("import org.dmd.dmc.DmcAttribute;\n");
    }
View Full Code Here

      */
    public void exists()
    {
        optionFound = true;
        if (optionType == OptionType.FLAG){
            BooleanVar b = (BooleanVar) option;
            b.set(true);
        }
    }
View Full Code Here

        if (fileHeader != null)
          out.write(fileHeader);

        out.write("package " + cd.getDefinedIn().getSchemaPackage() + ".generated.dmo;\n\n");
       
        BooleanVar anyMVAttributes = new BooleanVar(false);
        BooleanVar anySVAttributes = new BooleanVar(false);

        out.write(getImports(cd,anySVAttributes,anyMVAttributes));
       
//        out.write("import org.dmd.dms.generated.dmo.MetaVCAG;\n");
//        out.write("import org.dmd.dmc.DmcClassInfo;\n");
View Full Code Here

   * @throws ResultException
   */
  private void dumpAUX(ClassDefinition cd, String outdir) throws IOException, ResultException {
    allAttr = new ArrayList<AttributeDefinition>();
   
    BooleanVar  anyMVAttributes = new BooleanVar(false);
    BooleanVar  anySVAttributes = new BooleanVar(false);
   
//    String ofn = outdir + File.separator + cd.getName().getNameString() + "DMO.java";
   
   
//        BufferedWriter   out = new BufferedWriter( new FileWriter(ofn) );
        BufferedWriter   out = FileUpdateManager.instance().getWriter(outdir, cd.getName().getNameString() + "DMO.java");
       
//        if (progress != null)
//          progress.println("    Generating " + ofn);
       
        if (fileHeader != null)
          out.write(fileHeader);

//        out.write("package " + cd.getDefinedIn().getSchemaPackage() + ".generated.auxw;\n\n");
        out.write("package " + cd.getDefinedIn().getSchemaPackage() + ".generated.dmo;\n\n");
       
        // This call updates allAttr and staticNames
        out.write(getImports(cd,anySVAttributes,anyMVAttributes));
       
        out.write(getClassHeader(cd,DebugInfo.getWhereWeAreNow()));
       
        out.write(" {\n\n");
       
        out.write("    public final static String _auxClass = \"" + cd.getName() + "\";\n");
       
        StringBuffer staticInit = new StringBuffer();
//        out.write(getDmcAttributeInfo(cd,staticInit) + "\n");
       
        out.write("\n");
        out.write("    static {\n");
        out.write(staticInit.toString());
        out.write("    }\n");

       
      
        out.write(getCommonAUXFunctions(anySVAttributes.booleanValue(),anyMVAttributes.booleanValue()));
       
        out.write(getAUXAccessFunctions(cd));
       
        out.write("\n");
       
View Full Code Here

    return usesCentralRPCErrorHandler;
  }
 
  public boolean usesRunContext(){
    if (usesRunContext == null){
      usesRunContext = new BooleanVar();
     
      if (getHandlesEventHasValue())
        usesRunContext.set(true);
      else if (getFiresEventHasValue())
        usesRunContext.set(true);
View Full Code Here

TOP

Related Classes of org.dmd.util.BooleanVar

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.