org.sonar.api.resources
Class ResourceTypes

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

@Beta
public class ResourceTypes
extends Object
implements TaskComponent, 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)
           
 Collection<ResourceType> getAllWithPropertyKey(String propertyKey)
           
 Collection<ResourceType> getAllWithPropertyValue(String propertyKey, boolean propertyValue)
           
 Collection<ResourceType> getAllWithPropertyValue(String propertyKey, String propertyValue)
           
 List<ResourceType> getChildren(String qualifier)
           
 List<String> getChildrenQualifiers(String qualifier)
           
 List<String> getLeavesQualifiers(String qualifier)
           
 ResourceType getRoot(String qualifier)
           
 Collection<ResourceType> getRoots()
           
 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()

getRoots

public Collection<ResourceType> getRoots()

getAll

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

getAllWithPropertyKey

public Collection<ResourceType> getAllWithPropertyKey(String propertyKey)

getAllWithPropertyValue

public Collection<ResourceType> getAllWithPropertyValue(String propertyKey,
                                                        String propertyValue)

getAllWithPropertyValue

public Collection<ResourceType> getAllWithPropertyValue(String propertyKey,
                                                        boolean propertyValue)

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)

getRoot

public ResourceType getRoot(String qualifier)


Copyright © 2009-2014 SonarSource. All Rights Reserved.