Package org.sbml.jsbml.util.filters

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


   * @throws IOException
   * @throws XMLStreamException
   */
  public static void main(String[] args) throws XMLStreamException, IOException {
    SBMLDocument doc = SBMLReader.read(new File(args[0]));
    Filter filter = new NameFilter(args[1]);
    System.out.println(doc.filter(filter));
  }
View Full Code Here


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

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

      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 Compartment} of the listOfCompartments which has 'id' as
   *         id (or name depending on the version and level). Null if if the
   *         listOfCompartments is not set.
   */
  public Compartment getCompartment(String id) {
    return getListOfCompartments().firstHit(new NameFilter(id));
  }
View Full Code Here

   *         id (or name depending on the level and version). Null if the
   *         listOfCompartmentTypes is not set or the id is not found.
   */
  @Deprecated
  public CompartmentType getCompartmentType(String id) {
    return getListOfCompartmentTypes().firstHit(new NameFilter(id));
  }
View Full Code Here

   * @return the Event of the listOfEvents which has 'id' as id (or name
   *         depending on the level and version). Null if if the listOfEvents is
   *         not set.
   */
  public Event getEvent(String id) {
    return getListOfEvents().firstHit(new NameFilter(id));
  }
View Full Code Here

   * @return the {@link FunctionDefinition} of the listOfFunstionDefinitions
   *         which has 'id' as id (or name depending on the level and version).
   *         Null if if the listOfFunctionDefinitions is not set.
   */
  public FunctionDefinition getFunctionDefinition(String id) {
    return getListOfFunctionDefinitions().firstHit(new NameFilter(id));
  }
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

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.