Examples of SettingsMap


Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

      if(model != null){
        // get project file
        File pfile = model.getProject().getProjectFile();
       
        // copy settings
        SettingsMap settings = model.getOWLProject().getSettingsMap();
     
        for(Iterator i=settings.listKeys();i.hasNext();){
          String key = ""+i.next();
          map.put(key,settings.getString(key));
        }
       
        // dispose of object and file etc.
        model.getProject().dispose();
       
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

    if(l != null)
      return ""+l;
   
    // else query project
    if(model != null){
      SettingsMap map = model.getOWLProject().getSettingsMap();
      if(map.getString("table") != null){
        return "database";
      }else if(map.getString("owl_file_name") != null){
        return "file";
      }
    }
    return "";
  }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

    if(l != null)
      return ""+l;
   
    // else query project
    if(model != null){
      SettingsMap map = model.getOWLProject().getSettingsMap();
      if(map.getString("table") != null){
        return map.getString("table");
      }else if(map.getString("owl_file_name") != null){
        return map.getString("owl_file_name");
      }
    }
    return "";
  }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

      if(model != null){
        // get project file
        File pfile = model.getProject().getProjectFile();
       
        // copy settings
        SettingsMap settings = model.getOWLProject().getSettingsMap();
     
        for(Iterator i=settings.listKeys();i.hasNext();){
          String key = ""+i.next();
          map.put(key,settings.getString(key));
        }
       
        // dispose of object and file etc.
        model.getProject().dispose();
       
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

    if(l != null)
      return ""+l;
   
    // else query project
    if(model != null){
      SettingsMap map = model.getOWLProject().getSettingsMap();
      if(map.getString("table") != null){
        return "database";
      }else if(map.getString("owl_file_name") != null){
        return "file";
      }
    }
    return "";
  }
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.project.SettingsMap

    if(l != null)
      return ""+l;
   
    // else query project
    if(model != null){
      SettingsMap map = model.getOWLProject().getSettingsMap();
      if(map.getString("table") != null){
        return map.getString("table");
      }else if(map.getString("owl_file_name") != null){
        return map.getString("owl_file_name");
      }
    }
    return "";
  }
View Full Code Here

Examples of org.jscsi.parser.datasegment.SettingsMap

     * @throws InternetSCSIException This exception should be never thrown.
     */
    @Test
    public void testDeserialize () throws IOException , InternetSCSIException , DigestException {

        SettingsMap expectedKeyValuePair = new SettingsMap();
        expectedKeyValuePair.add(OperationalTextKey.TARGET_NAME, "iqn.1987-05.com.cisco.00.58031e1d068ac226d385847592c0b670.IBM-Disk");

        super.setUp(TEST_CASE_1);
        super.testDeserialize(false, true, OperationCode.TEXT_RESPONSE, 0x00000000, 0x0000004E, 0x03000000);
        super.testDataSegment(expectedKeyValuePair);

View Full Code Here

Examples of org.jscsi.parser.datasegment.SettingsMap

     * @throws InternetSCSIException This exception should be never thrown.
     */
    @Test
    public void testDeserialize1 () throws IOException , InternetSCSIException , DigestException {

        SettingsMap expectedKeyValuePair = new SettingsMap();
        expectedKeyValuePair.add(OperationalTextKey.SEND_TARGETS, "all");

        super.setUp(TEST_CASE_1);
        super.testDeserialize(true, true, OperationCode.TEXT_REQUEST, 0x00000000, 0x00000010, 0x03000000);
        super.testDataSegment(expectedKeyValuePair);

View Full Code Here

Examples of org.jscsi.parser.datasegment.SettingsMap

     * @throws DigestException This exception should be never thrown.
     */
    @Test
    public void testDeserialize () throws IOException , InternetSCSIException , DigestException {

        SettingsMap expectedKeyValuePair = new SettingsMap();
        expectedKeyValuePair.add(OperationalTextKey.AUTH_METHOD, "None");

        super.setUp(TEST_CASE_1);
        // final flag is here the transit flag
        super.testDeserialize(false, false, OperationCode.LOGIN_RESPONSE, 0x00000000, 0x00000010, 0xC8D04B81);
        super.testDataSegment(expectedKeyValuePair);
View Full Code Here

Examples of org.jscsi.parser.datasegment.SettingsMap

     * @throws DigestException This exception should be never thrown.
     */
    @Test
    public void testDeserialize2 () throws IOException , InternetSCSIException , DigestException {

        SettingsMap expectedKeyValuePair = new SettingsMap();
        expectedKeyValuePair.add(OperationalTextKey.TARGET_PORTAL_GROUP_TAG, "1");
        expectedKeyValuePair.add(OperationalTextKey.HEADER_DIGEST, "None");
        expectedKeyValuePair.add(OperationalTextKey.DATA_DIGEST, "None");
        expectedKeyValuePair.add(OperationalTextKey.DEFAULT_TIME_2_WAIT, "2");
        expectedKeyValuePair.add(OperationalTextKey.DEFAULT_TIME_2_RETAIN, "0");
        expectedKeyValuePair.add(OperationalTextKey.IF_MARKER, "No");
        expectedKeyValuePair.add(OperationalTextKey.OF_MARKER, "No");
        expectedKeyValuePair.add(OperationalTextKey.ERROR_RECOVERY_LEVEL, "0");
        expectedKeyValuePair.add(OperationalTextKey.INITIAL_R2T, "Yes");
        expectedKeyValuePair.add(OperationalTextKey.IMMEDIATE_DATA, "Yes");
        expectedKeyValuePair.add(OperationalTextKey.MAX_BURST_LENGTH, "262144");
        expectedKeyValuePair.add(OperationalTextKey.FIRST_BURST_LENGTH, "65536");
        expectedKeyValuePair.add(OperationalTextKey.MAX_OUTSTANDING_R2T, "1");
        expectedKeyValuePair.add(OperationalTextKey.MAX_CONNECTIONS, "1");
        expectedKeyValuePair.add(OperationalTextKey.DATA_PDU_IN_ORDER, "Yes");
        expectedKeyValuePair.add(OperationalTextKey.DATA_SEQUENCE_IN_ORDER, "Yes");

        super.setUp(TEST_CASE_2);
        // final flag is here the transit flag
        super.testDeserialize(false, true, OperationCode.LOGIN_RESPONSE, 0x00000000, 0x0000012C, 0x000A0000);
        super.testDataSegment(expectedKeyValuePair);
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.