Generates a List of Item based on it's List of Model using the interceptor

@param models the List of Model which will be used to create the List of Item
@return the generated List of Item
327622
public List<Item> intercept(List<Model> models) {
        List<Item> items = new ArrayList<>(models.size());
        Item item;
        for (Model model : models) {
            item = intercept(model);
            if (item == null) continue;
            items.add(item);
        }
        return items;
    }
788971
public RouteResponse withResponseModels(java.util.Map<String, String> responseModels) {
        setResponseModels(responseModels);
        return this;
    }
290519
public static List<CommerceDiscountUserSegmentRel> toModels(
		CommerceDiscountUserSegmentRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceDiscountUserSegmentRel> models = new ArrayList<CommerceDiscountUserSegmentRel>(soapModels.length);

		for (CommerceDiscountUserSegmentRelSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
167932
public static List<CPDefinitionOptionRel> toModels(
		CPDefinitionOptionRelSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPDefinitionOptionRel> models = new ArrayList<CPDefinitionOptionRel>(soapModels.length);

		for (CPDefinitionOptionRelSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
1141717
function generateTypeDefs(models) {

    types = Object.assign({}, types, getCustomTypeDefs());

    _.forEach(models, (model) => {
        mapType(model);
        mapInputType(model);
    });

    return types;
}
507871
public static List<CommerceShipmentItem> toModels(
		CommerceShipmentItemSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceShipmentItem> models = new ArrayList<CommerceShipmentItem>(soapModels.length);

		for (CommerceShipmentItemSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
670133
public List<Model> getModels() {
        ArrayList<Model> list = new ArrayList<>(mItems.size());
        for (Item item : mItems.getItems()) {
            if (mReverseInterceptor != null) {
                list.add(mReverseInterceptor.intercept(item));
            } else if (item instanceof IModelItem) {
                list.add((Model) ((IModelItem) item).getModel());
            } else {
                throw new RuntimeException("to get the list of models, the item either needs to implement `IModelItem` or you have to provide a `reverseInterceptor`");
            }
        }
        return list;
    }
569010
@SuppressWarnings("unchecked")
  public static <T extends ModelElementInstance> Collection<T> getModelElementCollection(Collection<DomElement> view, ModelInstanceImpl model) {
    List<ModelElementInstance> resultList = new ArrayList<ModelElementInstance>();
    for (DomElement element : view) {
      resultList.add(getModelElement(element, model));
    }
    return (Collection<T>) resultList;
  }
725219
public void generateClasses() throws IOException {
		for (PrefsEntity item : model.getEntities()) {
			BindSharedPreferencesBuilder.generate(elementUtils, filer, item);
		}
	}
835386
public Interceptors<Beans<T>> getOrCreateInterceptors()
   {
      Node node = childNode.getOrCreate("interceptors");
      Interceptors<Beans<T>> interceptors = new InterceptorsImpl<Beans<T>>(this, "interceptors", childNode, node);
      return interceptors;
   }
802178
public ModelAdapter<Model, Item> setNewList(List<Model> items) {
        return setNewList(items, false);
    }
315549
public static List<CommerceAddressRestriction> toModels(
		CommerceAddressRestrictionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CommerceAddressRestriction> models = new ArrayList<CommerceAddressRestriction>(soapModels.length);

		for (CommerceAddressRestrictionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
146322
@SafeVarargs
    public static <E> List<E> buildList(E... objects) {
        return Arrays.asList(objects);
    }
716666
public List<EDBObject> convertModelsToEDBObjects(List<OpenEngSBModel> models, ConnectorInformation info) {
        List<EDBObject> result = new ArrayList<>();
        if (models != null) {
            for (Object model : models) {
                result.addAll(convertModelToEDBObject(model, info));
            }
        }
        return result;
    }
72907
public static List<CPOption> toModels(CPOptionSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPOption> models = new ArrayList<CPOption>(soapModels.length);

		for (CPOptionSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
700379
public static List<CPMeasurementUnit> toModels(
		CPMeasurementUnitSoap[] soapModels) {
		if (soapModels == null) {
			return null;
		}

		List<CPMeasurementUnit> models = new ArrayList<CPMeasurementUnit>(soapModels.length);

		for (CPMeasurementUnitSoap soapModel : soapModels) {
			models.add(toModel(soapModel));
		}

		return models;
	}
821792
def models(self, model=None):
        
        for query in self.__queries:
            if isinstance(query, orb.Query):
                yield query.model(model)
            else:
                for model in query.models(model):
                    yield model