Package org.sbml.jsbml.util.filters

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


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


   * @param id the id of the {@link FluxObjective} to remove.
   * @throws IndexOutOfBoundsException if the listOf is not set or
   * if the index is out of bound (index < 0 || index > list.size)
   */
  public void removeFluxObjective(String id) {
    getListOfFluxObjectives().removeFirst(new NameFilter(id));
  }
View Full Code Here

   * @param id
   * @return
   */
  public CompartmentGlyph getCompartmentGlyph(String id) {
    if (isSetListOfCompartmentGlyphs()) {
      return getListOfCompartmentGlyphs().firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

   * @param id
   * @return
   */
  public ReactionGlyph getReactionGlyph(String id) {
    if (isSetListOfReactionGlyphs()) {
      return listOfReactionGlyphs.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

   * @param id
   * @return
   */
  public SpeciesGlyph getSpeciesGlyph(String id) {
    if (isSetListOfSpeciesGlyphs()) {
      return listOfSpeciesGlyphs.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

   * @param id
   * @return
   */
  public TextGlyph getTextGlyph(String id) {
    if (isSetListOfTextGlyphs()) {
      return listOfTextGlyphs.firstHit(new NameFilter(id));
    }
    return null;
  }
View Full Code Here

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

   * @return the {@link StateFeature} that has the given id or null if
   * no {@link StateFeature} are found that match {@code id}.
   */
  public StateFeature getStateFeature(String id) {
    if (isSetListOfStateFeatures()) {
      return listOfStateFeatures.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

   * @return the {@link StateFeatureInstance} that has the given id or null if
   * no {@link StateFeatureInstance} are found that match {@code id}.
   */
  public StateFeatureInstance getStateFeatureInstance(String id) {
    if (isSetListOfStateFeatureInstances()) {
      return listOfStateFeatureInstances.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.