Package org.sbml.jsbml.util.filters

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


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


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

  /**
   *
   * @param id
   */
  public void removeLocalRenderInformation(String id) {
    getListOfLocalRenderInformation().removeFirst(new NameFilter(id));
  }
View Full Code Here

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

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

      kl.createLocalParameter("lp1");
      fail();
    } catch (IllegalArgumentException exc) {
      logger.debug(exc.getLocalizedMessage());
      assertTrue(kl.getListOfLocalParameters()
                   .filterList(new NameFilter(parameter.getId())).size() == 1);
    }
    kl.removeLocalParameter(parameter);
    assertTrue(kl.getListOfLocalParameters()
               .filterList(new NameFilter(parameter.getId())).size() == 0);
    assertTrue(kl.getLocalParameter(parameter.getId()) == null);
    // remove ListOfLocalParameters
    ListOf<LocalParameter> listOfLP = kl.getListOfLocalParameters();
    kl.unsetListOfLocalParameters();
    assertTrue(!listOfLP.contains(parameter));
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.