Package org.sbml.jsbml.util.filters

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


   * @return the {@link SpeciesReference} of the {@link #listOfProducts} which has 'id' as id
   *         (or name depending on the level and version). Can be null if it
   *         doesn't exist.
   */
  public SpeciesReference getProduct(String id) {
    return getListOfProducts().firstHit(new NameFilter(id));
  }
View Full Code Here


   * @return the {@link SpeciesReference} of the listOfReactants which has
   *         'id' as id (or name depending on the level and version). Can be
   *         null if it doesn't exist.
   */
  public SpeciesReference getReactant(String id) {
    return getListOfReactants().firstHit(new NameFilter(id));
  }
View Full Code Here

   * @param id the id of the element to be removed from the list
   * @return {@code true} if the list contained the specified element
   * @see List#remove(Object)
   */
  public boolean removeSubmodel(String id) {
    Submodel removedSM = getListOfSubmodels().removeFirst(new NameFilter(id));

    if (removedSM != null) {
      return true;
    }

View Full Code Here

    }
    getListOfMemberConstraints().remove(i);
  }

  public void removeMemberConstraint(String id) {
    getListOfMemberConstraints().removeFirst(new NameFilter(id));
  }
View Full Code Here

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

    if (isSetListOfTransitions()) {
      Model m = getModel();
      if (m != null) {
        return (Transition) m.findNamedSBase(id);
      }
      return listOfTransitions.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

   * Removes an element from the listOfDeletions with the given id.
   *
   * @param i the id of the {@link Deletion} element to remove.
   */
  public void removeDeletion(String id) {
    getListOfDeletions().removeFirst(new NameFilter(id));
  }
View Full Code Here

   * Removes an element from the listOfExternalModelDefinitions with the given id.
   *
   * @param id the id of the {@link ExternalModelDefinition} to remove
   */
  public void removeExternalModelDefinition(String id) {
    getListOfExternalModelDefinitions().removeFirst(new NameFilter(id));
  }
View Full Code Here

   * Removes an element from the listOfModelDefinitions with the given id.
   *
   * @param id the id of the {@link ModelDefinition} to remove
   */
  public void removeModelDefinition(String id) {
    getListOfModelDefinitions().removeFirst(new NameFilter(id));
  }
View Full Code Here

   * @return the {@link PossibleValue} that has the given id or null if
   * no {@link PossibleValue} are found that match {@code id}.
   */
  public PossibleValue getPossibleValue(String id) {
    if (isSetListOfPossibleValues()) {
      return listOfPossibleValues.firstHit(new NameFilter(id));
    }
    return null;
  }
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.