Package org.jboss.forge.resources

Examples of org.jboss.forge.resources.ResourceFilter


               EnumCompleter completer = new EnumCompleter((Class<Enum<?>>) option.getType());
               completer.complete(state);
            }
            else if (isJavaResourceAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(final Resource<?> resource)
                  {
                     return ((resource instanceof DirectoryResource) || (resource instanceof JavaResource));
                  }
               });
            }
            else if (isJavaPackageAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(final Resource<?> resource)
                  {
                     return (resource instanceof DirectoryResource);
View Full Code Here


            throws IOException
   {
      WebResourceFacet web = this.project.getFacet(WebResourceFacet.class);
      HtmlTag unorderedList = new HtmlTag("ul");

      ResourceFilter filter = new ResourceFilter()
      {
         @Override
         public boolean accept(Resource<?> resource)
         {
            FileResource<?> file = (FileResource<?>) resource;
View Full Code Here

            throws IOException
   {
      WebResourceFacet web = this.project.getFacet(WebResourceFacet.class);
      HtmlTag unorderedList = new HtmlTag("ul");

      ResourceFilter filter = new ResourceFilter()
      {
         @Override
         public boolean accept(Resource<?> resource)
         {
            FileResource<?> file = (FileResource<?>) resource;
View Full Code Here

   @SuppressWarnings("unchecked")
   public static <E extends Resource<?>, R extends Collection<E>, I extends Collection<Resource<?>>> R filterByType(
            final Class<E> type, final I list)
   {
      ResourceFilter filter = new ResourceFilter()
      {
         @Override
         public boolean accept(Resource<?> resource)
         {
            return type.isAssignableFrom(resource.getClass());
View Full Code Here

      return Collections.<Resource<?>> singletonList(item);
   }

   public List<? extends Resource<?>> resolve()
   {
      return resolve(new ResourceFilter()
      {
         @Override
         public boolean accept(Resource<?> resource)
         {
            return true;
View Full Code Here

      return listChildrenRecursively(webRoot);
   }

   private List<Resource<?>> listChildrenRecursively(final DirectoryResource webRoot)
   {
      return listChildrenRecursively(webRoot, new ResourceFilter()
      {
         @Override
         public boolean accept(final Resource<?> resource)
         {
            return true;
View Full Code Here

      return listChildrenRecursively(webRoot);
   }

   private List<Resource<?>> listChildrenRecursively(final DirectoryResource webRoot)
   {
      return listChildrenRecursively(webRoot, new ResourceFilter()
      {
         @Override
         public boolean accept(final Resource<?> resource)
         {
            return true;
View Full Code Here

               EnumCompleter completer = new EnumCompleter((Class<Enum<?>>) option.getType());
               completer.complete(state);
            }
            else if (isJavaResourceAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(Resource<?> resource)
                  {
                     return (resource instanceof DirectoryResource || resource instanceof JavaResource);
                  }
               });
            }
            else if (isJavaPackageAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(Resource<?> resource)
                  {
                     return (resource instanceof DirectoryResource);
View Full Code Here

               EnumCompleter completer = new EnumCompleter((Class<Enum<?>>) option.getType());
               completer.complete(state);
            }
            else if (isJavaResourceAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(final Resource<?> resource)
                  {
                     return ((resource instanceof DirectoryResource) || (resource instanceof JavaResource));
                  }
               });
            }
            else if (isJavaPackageAssignable(option))
            {
               completeJavaPaths(state, option, valueMap, new ResourceFilter()
               {
                  @Override
                  public boolean accept(final Resource<?> resource)
                  {
                     return (resource instanceof DirectoryResource);
View Full Code Here

      return listChildrenRecursively(webRoot);
   }

   private List<Resource<?>> listChildrenRecursively(final DirectoryResource webRoot)
   {
      return listChildrenRecursively(webRoot, new ResourceFilter()
      {
         @Override
         public boolean accept(final Resource<?> resource)
         {
            return true;
View Full Code Here

TOP

Related Classes of org.jboss.forge.resources.ResourceFilter

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.