Examples of EnumTypedef


Examples of ucar.nc2.EnumTypedef

        if ((v != null) && (v.getDataType() != null)) {
          v.setParentGroup(ncGroup);
          ncGroup.addVariable(v);

          if (v.getDataType().isEnum()) {
            EnumTypedef enumTypedef = ncGroup.findEnumeration(facadeNested.name);
            if (enumTypedef == null) {
              enumTypedef = new EnumTypedef(facadeNested.name, facadeNested.dobj.mdt.map);
              ncGroup.addEnumeration(enumTypedef);
            }
            v.setEnumTypedef(enumTypedef);
          }

          Vinfo vinfo = (Vinfo) v.getSPobject();
          if (debugV) debugOut.println("  made Variable " + v.getFullName() + "  vinfo= " + vinfo + "\n" + v);
        }

      } else if (facadeNested.isTypedef) {
        if (debugReference && facadeNested.dobj.mdt.type == 7) debugOut.println(facadeNested);

        if (facadeNested.dobj.mdt.map != null) {
          EnumTypedef enumTypedef = ncGroup.findEnumeration(facadeNested.name);
          if (enumTypedef == null) {
            enumTypedef = new EnumTypedef(facadeNested.name, facadeNested.dobj.mdt.map);
            ncGroup.addEnumeration(enumTypedef);
          }
        }
        if (debugV) debugOut.println("  made enumeration " + facadeNested.name);
View Full Code Here

Examples of ucar.nc2.EnumTypedef

    v.setDataType(dt);

    // set the enumTypedef
    if (dt.isEnum()) {
      Group ncGroup = v.getParentGroup();
      EnumTypedef enumTypedef = ncGroup.findEnumeration( mdt.enumTypeName);
      if (enumTypedef == null) { // if shared object, wont have a name, shared version gets added later
        enumTypedef = new EnumTypedef( mdt.enumTypeName, mdt.map);
        // LOOK ncGroup.addEnumeration(enumTypedef);
      }
      v.setEnumTypedef(enumTypedef);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.