Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 
 package org.jboss.forge.addon.maven.resources;
 

Author(s):
Aslak Knutsen
Lincoln Baxter, III
public class MavenProfileResourceImpl extends VirtualResource<Profileimplements MavenProfileResource
   private final Profile profile;
   public MavenProfileResourceImpl(ResourceFactory factoryResource<?> parentProfile profile)
   {
      super(factoryparent);
      this. = profile;
   }
   @Override
   public String getName()
   {
      return .getId();
   }
   @Override
   protected List<Resource<?>> doListResources()
   {
      List<Resource<?>> children = new ArrayList<>();
      for (Dependency dep : .getDependencies())
      {
         children.add(new MavenDependencyResourceImpl(getResourceFactory(), thisdep));
      }
      return children;
   }
   @Override
   {
      return ;
   }
   @Override
   public boolean delete() throws UnsupportedOperationException
   {
      throw new UnsupportedOperationException("not supported");
   }
   @Override
   public boolean delete(boolean recursivethrows UnsupportedOperationException
   {
      throw new UnsupportedOperationException("not supported");
   }
New to GrepCode? Check out our FAQ X