Examples of find()


Examples of org.apache.uima.ruta.textruler.core.TextRulerRulePattern.find()

    // TOOD precalculate this outside this method ?
    TextRulerRulePattern restForL1 = head.subPattern(hPos + h.size(), -1).copy();
    for (TextRulerRuleItem it : restForL1)
      ((WienRuleItem) it).getWordConstraint().setGeneralizeLinkMarkUp(true);
    int l1Pos = restForL1.find(l1);
    if (l1Pos < 0 || l1Pos != restForL1.size() - l1.size()) {
      TextRulerToolkit.logIf(logReasons, "REASON 1\n\tl1         \t" + l1 + "\n\trestforl1\t"
              + restForL1);
      return constraint3ReturnType.C3_L1CandidateSuffixError;
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.CollectionNode.find()

        List<InfoElement> infoElements = new ArrayList<InfoElement>();
        if(request.getNode() == null || request.getNode().length() == 0) {
            infoElements.add(new Identity("pubsub", "service"));
            infoElements.add(new Feature(NamespaceURIs.XEP0060_PUBSUB));
        } else {
            LeafNode node = root.find(request.getNode());
            infoElements.addAll(node.getNodeInfosFor(request));
        }
        return infoElements;
    }
View Full Code Here

Examples of org.apache.wicket.core.util.file.WebApplicationPath.find()

      if (null != propertiesFolder)
      {
        WebApplicationPath webPath = new WebApplicationPath(servletContext);
        webPath.add(propertiesFolder);
        IResourceStream stream = webPath.find(Initializer.class, velocityPropertiesFile);
        InputStream is = null;
        try
        {
          is = stream.getInputStream();
          Properties props = new Properties();
View Full Code Here

Examples of org.apache.wicket.markup.IMarkupFragment.find()

    {
      return childMarkup;
    }

    // search for the child insight the fragment markup
    return childMarkup.find(child.getId());
  }
}
View Full Code Here

Examples of org.apache.wicket.util.file.Path.find()

    final String contents = PathTest.class.getName() + ": loaded from root";
    final File file = createTempFile(contents);
    final File root = findRoot(file);
    final Path path = new Path(root.getCanonicalPath());
    String relative = root.toURI().relativize(file.toURI()).getPath();
    IResourceStream rs = path.find(PathTest.class, relative);
    assertNotNull(rs);
    assertContents(contents, rs);
  }

  public static void assertContents(String expectedContents, IResourceStream rs)
View Full Code Here

Examples of org.apache.wicket.util.file.WebApplicationPath.find()

      if (null != velocityPropertiesFolder)
      {
        WebApplicationPath webPath = new WebApplicationPath(sc);
        webPath.add(velocityPropertiesFolder);
        IResourceStream stream = webPath.find(Initializer.class, velocityPropertiesFile);
        InputStream is = null;
        try
        {
          is = stream.getInputStream();
          Properties props = new Properties();
View Full Code Here

Examples of org.apache.wiki.auth.user.UserDatabase.find()

        Principal[] principals = null;
        UserProfile profile = null;
        UserDatabase db = m_engine.getUserManager().getUserDatabase();
        try
        {
            profile = db.find( name );
            principals = db.getPrincipals( profile.getLoginName() );
            for (int i = 0; i < principals.length; i++)
            {
                principal = principals[i];
                if ( principal.getName().equals( name ) )
View Full Code Here

Examples of org.apache.ws.resource.ResourceHome.find()

   public NotificationProducerResource getProducerResource(  )
   {
      try
      {
         ResourceHome producerHome = (ResourceHome) new InitialContext(  ).lookup( m_producerHomeLocation );
         return (NotificationProducerResource) producerHome.find( m_producerId );
      }
      catch ( Exception e )
      {
         throw new RuntimeException( "Failed to lookup NotificationProducer resource due to internal error: " + e,
                                     e );
View Full Code Here

Examples of org.apache.xbean.finder.BundleAssignableClassFinder.find()

                public boolean rangeDiscoveryRequired(DiscoveryRange discoveryRange) {
                    return discoveryRange.equals(DiscoveryRange.BUNDLE_CLASSPATH);
                }
            });

            Set<String> classes = bundleClassFinder.find();

            for (String clazz : classes) {
                applicationClasses.add(bundle.loadClass(clazz).asSubclass(Application.class));
            }
View Full Code Here

Examples of org.apache.xbean.finder.ResourceFinder.find()

            if (applicationXmlUrl != null) {
                application = unmarshal(Application.class, "application.xml", applicationXmlUrl);
                for (final Module module : application.getModule()) {
                    try {
                        if (module.getEjb() != null) {
                            final URL url = finder.find(module.getEjb().trim());
                            ejbModules.put(module.getEjb(), url);
                        } else if (module.getJava() != null) {
                            final URL url = finder.find(module.getJava().trim());
                            clientModules.put(module.getConnector(), url);
                        } else if (module.getConnector() != null) {
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.