Package org.cishell.reference.service.metatype

Examples of org.cishell.reference.service.metatype.BasicAttributeDefinition


    } catch (IOException e) {
      definition = new BasicObjectClassDefinition(oldDefinition.getID(), oldDefinition.getName(), oldDefinition.getDescription(), null);
    }

    definition.addAttributeDefinition(ObjectClassDefinition.REQUIRED,
        new BasicAttributeDefinition(SELECTED_CONVERTER_PARAM_ID,
            "Converter To Test",
            "The converter that you wish to test",
            AttributeDefinition.STRING,
            converterNames,
            converterNames));
   
     definition.addAttributeDefinition(ObjectClassDefinition.REQUIRED,
          new BasicAttributeDefinition(TEST_ALL_CONVS_PARAM_ID,
              "Test All Converters?",
              "Should we test all the converters or just the one selected?",
              AttributeDefinition.BOOLEAN));
     
      definition.addAttributeDefinition(ObjectClassDefinition.REQUIRED,
              new BasicAttributeDefinition(NUM_HOPS_PARAM_ID,
                  "Max Test Path Length",
                  "What is the maximum length a test path should have to be included",
                  AttributeDefinition.INTEGER,
                  "6"));
     
View Full Code Here


      myOptionLabels[counter] = programCsv.getName();
      myOptionValues[counter++] = "csv";
    }
   
   
    AttributeDefinition ad = new BasicAttributeDefinition("viewWith", "View file as", "Type of viewer", AttributeDefinition.STRING, 0, defValStringArray, null, myOptionLabels, myOptionValues);
    definition.addAttributeDefinition(ObjectClassDefinition.REQUIRED, ad);

    return definition;
  }
View Full Code Here

   * @see BasicAttributeDefinition#BasicAttributeDefinition(String, String, String, int, String)
   */
  public AttributeDefinition transform(AttributeDefinition oldAD) {
    if (shouldTransform(oldAD)) {
      return
        new BasicAttributeDefinition(
          transformID(oldAD.getID()),
          transformName(oldAD.getName()),
          transformDescription(oldAD.getDescription()),
          transformType(oldAD.getType()),
          transformDefaultValue(oldAD.getDefaultValue()));
View Full Code Here

   * @see BasicAttributeDefinition#BasicAttributeDefinition(String, String, String, int, String[], String[])
   */
  public AttributeDefinition transform(AttributeDefinition oldAD) {
    if (shouldTransform(oldAD)) {
      return
        new BasicAttributeDefinition(
          transformID(oldAD.getID()),
          transformName(oldAD.getName()),
          transformDescription(oldAD.getDescription()),
          transformType(oldAD.getType()),
          transformOptionLabels(oldAD.getOptionLabels()),
View Full Code Here

TOP

Related Classes of org.cishell.reference.service.metatype.BasicAttributeDefinition

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.