Package org.sbml.jsbml.util.filters

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


   * @return the {@link SpeciesTypeState} that has the given id or null if
   * no {@link SpeciesTypeState} are found that match {@code id}.
   */
  public SpeciesTypeState getSpeciesTypeState(String id) {
    if (isSetListOfSpeciesTypeStates()) {
      return listOfSpeciesTypeStates.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here


   * @return the {@link Bond} that has the given id or null if
   * no {@link Bond} are found that match {@code id}.
   */
  public Bond getBond(String id) {
    if (isSetListOfBonds()) {
      return listOfBonds.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

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

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

   *
   * @param id
   * @return the removed element.
   */
  public Species removeSpecies(String id) {
    return getListOfSpecies().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.