Ejemplo n.º 1
0
  public static ModelledFeature createModelledFeature(
      String name, CvTerm featureType, Collection<Range> ranges) {

    ModelledFeature feature = new DefaultModelledFeature(name, null, featureType);
    if (ranges != null) {
      feature.getRanges().addAll(ranges);
    }
    return feature;
  }
Ejemplo n.º 2
0
  public static ModelledFeature createModelledFeature(
      String name, CvTerm featureType, Range range) {

    ModelledFeature feature = new DefaultModelledFeature(name, null, featureType);
    if (range != null) {
      feature.getRanges().add(range);
    }
    return feature;
  }