Exemplo n.º 1
0
 /**
  * This method was created in VisualAge.
  *
  * @param fd VisualDCTPackage.FieldData
  */
 public void addField(VDBFieldData fd) {
   if (fd != null)
     if (!fields.containsKey(fd.name)) {
       fields.put(fd.name, fd);
       fieldsV.addElement(fd);
     }
 }
Exemplo n.º 2
0
  /**
   * This method was created in VisualAge.
   *
   * @param dbd DBDData
   */
  public String getDTYPLinkType() {

    // !!!! what if this is a template record !!!
    VDBFieldData dtypField = (VDBFieldData) (fields.get("DTYP"));
    if (dtypField == null) {
      System.out.println(
          "Error: Record " + name + " does not have DTYP field! Assuming CONSTANT link type.");
      return null;
    }

    if (dtypField.getValue().equals(com.cosylab.vdct.Constants.NONE)) return null;
    // if (dtypField.getValue().indexOf("$")!=-1) return null;

    DBDDeviceData dev =
        (DBDDeviceData)
            (DataProvider.getInstance()
                .getDbdDB()
                .getDBDDeviceData(record_type + "/" + dtypField.getValue()));
    if (dev == null) return null;

    return dev.getLink_type();
  }
Exemplo n.º 3
0
 /**
  * This method was created in VisualAge.
  *
  * @return epics.vdb.VDBFieldData
  * @param fieldName java.lang.String
  */
 public VDBFieldData getField(String fieldName) {
   return (VDBFieldData) (fields.get(fieldName));
 }