protected void
    fillgroup(DapGroup dapgroup, Group cdmgroup)
            throws DapException
    {
        // Create decls in dap group for Dimensions
        for (Dimension cdmdim : cdmgroup.getDimensions()) {
            DapDimension dapdim = builddim(cdmdim);
        }
        // Create decls in dap group for Enumerations
        for (EnumTypedef cdmenum : cdmgroup.getEnumTypedefs()) {
            String name = cdmenum.getShortName();
            DapEnumeration dapenum = buildenum(cdmenum);
            dapenum.setShortName(name);
            dapgroup.addDecl(dapenum);
        }
        // Create decls in dap group for vlen induced Sequences
        // Do this before building compound types
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            buildseqtypes(cdmvar);
        }
        // Create decls in dap group for Compound Types
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            if (cdmvar.getDataType() != DataType.STRUCTURE
                    && cdmvar.getDataType() != DataType.SEQUENCE)
                continue;
            DapStructure struct = buildcompoundtype(cdmvar, dapgroup);
        }

        // Create decls in dap group for Variables
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            DapNode newvar = buildvariable(cdmvar, dapgroup, cdmvar.getDimensions());
        }
        // Create decls in dap group for subgroups
        for (Group subgroup : cdmgroup.getGroups()) {
            DapGroup newgroup = buildgroup(subgroup);
            dapgroup.addDecl(newgroup);
        }
        // Create decls in dap group for group-level attributes
        buildattributes(dapgroup, cdmgroup.getAttributes());
    }
protected void
    fillgroup(DapGroup dapgroup, Group cdmgroup)
            throws DapException
    {
        
        for (Dimension cdmdim : cdmgroup.getDimensions()) {
            DapDimension dapdim = builddim(cdmdim);
        }
        
        for (EnumTypedef cdmenum : cdmgroup.getEnumTypedefs()) {
            String name = cdmenum.getShortName();
            DapEnumeration dapenum = buildenum(cdmenum);
            dapenum.setShortName(name);
            dapgroup.addDecl(dapenum);
        }
        
        
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            buildseqtypes(cdmvar);
        }
        
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            if (cdmvar.getDataType() != DataType.STRUCTURE
                    && cdmvar.getDataType() != DataType.SEQUENCE)
                continue;
            DapStructure struct = buildcompoundtype(cdmvar, dapgroup);
        }

        
        for (Variable cdmvar0 : cdmgroup.getVariables()) {
            Variable cdmvar = CDMUtil.unwrap(cdmvar0);
            DapNode newvar = buildvariable(cdmvar, dapgroup, cdmvar.getDimensions());
        }
        
        for (Group subgroup : cdmgroup.getGroups()) {
            DapGroup newgroup = buildgroup(subgroup);
            dapgroup.addDecl(newgroup);
        }
        
        buildattributes(dapgroup, cdmgroup.getAttributes());
    }
protected void fillgroup ( DapGroup dapgroup , Group cdmgroup ) throws DapException { // Create decls in dap group for Dimensions for ( Dimension cdmdim : cdmgroup . getDimensions ( ) ) { DapDimension dapdim = builddim ( cdmdim ) ; } // Create decls in dap group for Enumerations for ( EnumTypedef cdmenum : cdmgroup . getEnumTypedefs ( ) ) { String name = cdmenum . getShortName ( ) ; DapEnumeration dapenum = buildenum ( cdmenum ) ; dapenum . setShortName ( name ) ; dapgroup . addDecl ( dapenum ) ; } // Create decls in dap group for vlen induced Sequences // Do this before building compound types for ( Variable cdmvar0 : cdmgroup . getVariables ( ) ) { Variable cdmvar = CDMUtil . unwrap ( cdmvar0 ) ; buildseqtypes ( cdmvar ) ; } // Create decls in dap group for Compound Types for ( Variable cdmvar0 : cdmgroup . getVariables ( ) ) { Variable cdmvar = CDMUtil . unwrap ( cdmvar0 ) ; if ( cdmvar . getDataType ( ) != DataType . STRUCTURE && cdmvar . getDataType ( ) != DataType . SEQUENCE ) continue ; DapStructure struct = buildcompoundtype ( cdmvar , dapgroup ) ; } // Create decls in dap group for Variables for ( Variable cdmvar0 : cdmgroup . getVariables ( ) ) { Variable cdmvar = CDMUtil . unwrap ( cdmvar0 ) ; DapNode newvar = buildvariable ( cdmvar , dapgroup , cdmvar . getDimensions ( ) ) ; } // Create decls in dap group for subgroups for ( Group subgroup : cdmgroup . getGroups ( ) ) { DapGroup newgroup = buildgroup ( subgroup ) ; dapgroup . addDecl ( newgroup ) ; } // Create decls in dap group for group-level attributes buildattributes ( dapgroup , cdmgroup . getAttributes ( ) ) ; }
Actions
Actions