org.sonar.api.resources
Class ResourceTypes

java.lang.Object
  extended by org.sonar.api.resources.ResourceTypes
All Implemented Interfaces:
BatchComponent, ServerComponent

@Beta
public final class ResourceTypes
extends Object
implements BatchComponent, ServerComponent

Since:
2.14

Field Summary
static com.google.common.base.Predicate<ResourceType> AVAILABLE_FOR_FILTERS
           
 
Constructor Summary
ResourceTypes(ResourceTypeTree[] trees)
           
 
Method Summary
 ResourceType get(String qualifier)
           
 Collection<ResourceType> getAll()
           
 Collection<ResourceType> getAll(com.google.common.base.Predicate<ResourceType> predicate)
           
 List<ResourceType> getChildren(String qualifier)
           
 List<String> getChildrenQualifiers(String qualifier)
           
 List<String> getLeavesQualifiers(String qualifier)
           
 ResourceTypeTree getTree(String qualifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVAILABLE_FOR_FILTERS

public static final com.google.common.base.Predicate<ResourceType> AVAILABLE_FOR_FILTERS
Constructor Detail

ResourceTypes

public ResourceTypes(ResourceTypeTree[] trees)
Method Detail

get

public ResourceType get(String qualifier)

getAll

public Collection<ResourceType> getAll()

getAll

public Collection<ResourceType> getAll(com.google.common.base.Predicate<ResourceType> predicate)

getChildrenQualifiers

public List<String> getChildrenQualifiers(String qualifier)

getChildren

public List<ResourceType> getChildren(String qualifier)

getLeavesQualifiers

public List<String> getLeavesQualifiers(String qualifier)

getTree

public ResourceTypeTree getTree(String qualifier)


Copyright © 2009-2012 SonarSource. All Rights Reserved.