Examples of IFeature


Examples of es.unex.sextante.dataObjects.IFeature

        SimpleFeature gtFeat = m_Iter.next();
        Object values[] = new Object[gtFeat.getAttributeCount() - 1];
        for (int i = 1; i < gtFeat.getAttributeCount(); i++) {
          values[i - 1] = gtFeat.getAttribute(i);
      }
        IFeature feat = new FeatureImpl((Geometry) gtFeat.getDefaultGeometry(), values);
        return feat;
      }
      else{
        return null;
      }
View Full Code Here

Examples of es.unex.sextante.dataObjects.IFeature

        SimpleFeature gtFeat = m_Iter.next();
        Object values[] = new Object[gtFeat.getAttributeCount() - 1];
        for (int i = 1; i < gtFeat.getAttributeCount(); i++) {
          values[i - 1] = gtFeat.getAttribute(i);
      }
        IFeature feat = new FeatureImpl((Geometry) gtFeat.getDefaultGeometry(), values);
        return feat;
      }
      else{
        return null;
      }
View Full Code Here

Examples of org.apache.wookie.beans.IFeature

    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeatureEntity featureEntity: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setFeatureName(featureEntity.getName());
      feature.setRequired(featureEntity.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(IParamEntity paramEntity : featureEntity.getParams()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setParameterName(paramEntity.getName());
        param.setParameterValue(paramEntity.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here

Examples of org.apache.wookie.beans.IFeature

    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeatureEntity featureEntity: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setFeatureName(featureEntity.getName());
      feature.setRequired(featureEntity.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(IParamEntity paramEntity : featureEntity.getParams()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setParameterName(paramEntity.getName());
        param.setParameterValue(paramEntity.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here

Examples of org.apache.wookie.beans.IFeature

    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeatureEntity featureEntity: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setFeatureName(featureEntity.getName());
      feature.setRequired(featureEntity.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(IParamEntity paramEntity : featureEntity.getParams()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setParameterName(paramEntity.getName());
        param.setParameterValue(paramEntity.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here

Examples of org.apache.wookie.beans.IFeature

    }
  }

  private static void createFeatures(IPersistenceManager persistenceManager, W3CWidget model, IWidget widget){
    for(IFeatureEntity featureEntity: model.getFeatures()){
            IFeature feature = persistenceManager.newInstance(IFeature.class);
      feature.setFeatureName(featureEntity.getName());
      feature.setRequired(featureEntity.isRequired());
            widget.getFeatures().add(feature);
      // now attach all parameters to this feature.
      for(IParamEntity paramEntity : featureEntity.getParams()){
              IParam param = persistenceManager.newInstance(IParam.class);
        param.setParameterName(paramEntity.getName());
        param.setParameterValue(paramEntity.getValue());
              feature.getParameters().add(param);
      }
    }
  }
View Full Code Here

Examples of org.apache.wookie.feature.IFeature

   * @throws Exception if the feature cannot be instantiated
   */
  @SuppressWarnings("unchecked")
    private IFeature getFeatureInstanceForName(String featureName) throws Exception{
    Class<? extends IFeature> klass = (Class<? extends IFeature>) Class.forName(featureName);
    IFeature theFeature = (IFeature) klass.newInstance();
    return theFeature;
  }
View Full Code Here

Examples of org.apache.wookie.feature.IFeature

   * @throws Exception if the feature cannot be instantiated
   */
  @SuppressWarnings("unchecked")
    private IFeature getFeatureInstanceForName(String featureName) throws Exception{
    Class<? extends IFeature> klass = (Class<? extends IFeature>) Class.forName(featureName);
    IFeature theFeature = (IFeature) klass.newInstance();
    return theFeature;
  }
View Full Code Here

Examples of org.apache.wookie.feature.IFeature

   * @throws Exception if the feature cannot be instantiated
   */
  @SuppressWarnings("unchecked")
    private IFeature getFeatureInstanceForName(String featureName) throws Exception{
    Class<? extends IFeature> klass = (Class<? extends IFeature>) Class.forName(featureName);
    IFeature theFeature = (IFeature) klass.newInstance();
    return theFeature;
  }
View Full Code Here

Examples of org.apache.wookie.feature.IFeature

   * @throws Exception if the feature cannot be instantiated
   */
  @SuppressWarnings("unchecked")
    private IFeature getFeatureInstanceForName(String featureName) throws Exception{
    Class<? extends IFeature> klass = (Class<? extends IFeature>) Class.forName(featureName);
    IFeature theFeature = (IFeature) klass.newInstance();
    return theFeature;
  }
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.