Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IFeature


    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeature ofeature: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setName(ofeature.getName());
      feature.setRequired(ofeature.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(org.apache.wookie.w3c.IParam oparam : ofeature.getParameters()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setName(oparam.getName());
        param.setValue(oparam.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here


    String pass_value="feature:a9bb79c1";
    String id="029";
    String[] tests = {"lro","rlo","rtl","ltr"};
    for (String dir: tests){
      W3CWidget widget = getWidget(id,dir);
      IFeature feature = widget.getFeatures().get(0);
      assertEquals(pass_value, feature.getName());
   
  }
View Full Code Here

    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeature ofeature: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setName(ofeature.getName());
      feature.setRequired(ofeature.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(org.apache.wookie.w3c.IParam oparam : ofeature.getParameters()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setName(oparam.getName());
        param.setValue(oparam.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.IFeature

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.