Package org.sbml.jsbml.util.filters

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


   * @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

   *         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

   *         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

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

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

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

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

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

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

TOP

Related Classes of org.sbml.jsbml.util.filters.NameFilter

Copyright © 2018 www.massapicom. 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.