Package org.jboss.forge.resources

Examples of org.jboss.forge.resources.ResourceFilter


      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

   @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

   private  void visitSources(final Resource<?> searchFolder, final JavaResourceVisitor visitor )
   {
       if (searchFolder instanceof DirectoryResource) {

             searchFolder.listResources(new ResourceFilter() {
               @Override
               public boolean accept(Resource<?> resource) {
                   if (resource instanceof DirectoryResource) {
                       visitSources(resource, visitor);
                   }
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.