Examples of NameFilter


Examples of org.apache.jackrabbit.mk.util.NameFilter

    static NodeFilter parse(String json) {
        // parse json format filter
        JsopTokenizer t = new JsopTokenizer(json);
        t.read('{');

        NameFilter nodeFilter = null, propFilter = null;

        do {
            String type = t.readString();
            t.read(':');
            String[] globs = parseArray(t);
            if (type.equals("nodes")) {
                nodeFilter = new NameFilter(globs);
            } else if (type.equals("properties")) {
                propFilter = new NameFilter(globs);
            } else {
                throw new IllegalArgumentException("illegal filter format");
            }
        } while (t.matches(','));
        t.read('}');
View Full Code Here

Examples of org.jtalks.jcommune.plugin.api.filters.NameFilter

        component.setId(componentId);
        List<Plugin> pluginList = Arrays.asList((Plugin) new DummyPlugin());

        when(componentService.getComponentOfForum()).thenReturn(component);
        when(pluginService.getPluginConfiguration(configuredPluginName, componentId)).thenReturn(expectedConfiguration);
        when(pluginLoader.getPlugins(new NameFilter(configuredPluginName))).thenReturn(pluginList);

        ModelAndView pluginConfigModelAndView = pluginController.startConfiguringPlugin(configuredPluginName);

        assertViewName(pluginConfigModelAndView, "plugin/pluginConfiguration");
        assertModelAttributeAvailable(pluginConfigModelAndView, "pluginConfiguration");
View Full Code Here

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

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

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

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

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

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

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

      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

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

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

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

   *         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

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

   * @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
TOP
Copyright © 2018 www.massapi.com. 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.