Examples of NameFilter


Examples of org.sbml.jsbml.util.filters.NameFilter

   * @return the {@link FunctionDefinition} of the listOfFunstionDefinitions
   *         which has 'id' as id (or name depending on the level and version).
   *         Null if if the listOfFunctionDefinitions is not set.
   */
  public FunctionDefinition getFunctionDefinition(String id) {
    return getListOfFunctionDefinitions().firstHit(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   * @return the {@link Parameter} of the listOfParameters which has 'id' as id
   *         (or name depending on the level and version). Null if it doesn't
   *         exist.
   */
  public Parameter getParameter(String id) {
    return getListOfParameters().firstHit(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   * @return the {@link Reaction} of the listOfReactions which has 'id' as id
   *         (or name depending on the level and version). Null if it doesn't
   *         exist.
   */
  public Reaction getReaction(String id) {
    return getListOfReactions().firstHit(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   * @param id
   * @return the {@link Species} of the listOfSpecies which has 'id' as id (or
   *         name depending on the level and version). Null if it doesn't exist.
   */
  public Species getSpecies(String id) {
    return getListOfSpecies().firstHit(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   *         id (or name depending on the level and version). Null if it doesn't
   *         exist.
   */
  @Deprecated
  public SpeciesType getSpeciesType(String id) {
    return getListOfSpeciesTypes().firstHit(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   *         id (or name depending on the level and version). Null if it doesn't
   *         exist.
   */
  public UnitDefinition getUnitDefinition(String id) {
    UnitDefinition unitDefinition = getListOfUnitDefinitions().firstHit(
      new NameFilter(id));
   
    // Checking if it is not one of the predefined default units.
    if (unitDefinition == null) {
      unitDefinition = getPredefinedUnitDefinition(id);
    }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   *
   * @param id
   * @return the removed {@link Compartment}.
   */
  public Compartment removeCompartment(String id) {
    return getListOfCompartments().removeFirst(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   * @param id
   * @return the removed element.
   */
  @Deprecated
  public CompartmentType removeCompartmentType(String id) {
    return getListOfCompartmentTypes().removeFirst(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   *
   * @param id
   * @return the removed element.
   */
  public Event removeEvent(String id) {
    return getListOfEvents().removeFirst(new NameFilter(id));
  }
View Full Code Here

Examples of org.sbml.jsbml.util.filters.NameFilter

   *
   * @param id
   * @return the removed element.
   */
  public FunctionDefinition removeFunctionDefinition(String id) {
    return getListOfFunctionDefinitions().removeFirst(new NameFilter(id));
  }
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.