/** * * @return the listOfProducts of this Reaction. Is initialized here if not * yet set. */ public ListOf<SpeciesReference> getListOfProducts() { if (listOfProducts == null) { listOfProducts = ListOf.initListOf(this, new ListOf<SpeciesReference>(), ListOf.Type.listOfProducts); registerChild(listOfProducts); } return listOfProducts; }
/** * * @return the listOfReactants of this Reaction. Is initialized here if not * yet set. */ public ListOf<SpeciesReference> getListOfReactants() { if (listOfReactants == null) { listOfReactants = ListOf.initListOf(this, new ListOf<SpeciesReference>(), ListOf.Type.listOfReactants); registerChild(listOfReactants); } return listOfReactants; }
/** * Initializes a new {@link ListOf} object for the given * parent SBML object and with the given {@link Class} as the type of the * list. * * @param parent the ListOf parent * @param clazz the class of objects the new ListOf will contain * @return a new {@link ListOf} object for the given * parent SBML object and with the given {@link Class} as the type of the * list. */ public static <T extends SBase> ListOf<T> newInstance(SBase parent, Class<T> clazz) { /* * Again, note that the created element cannot be registered as a child in * this position. See the comment in the called method for details. */ return initListOf(parent, new ListOf<T>(), ListOf.Type.valueOf(clazz)); }