org.sonar.api.resources
Class ResourceTypes
java.lang.Object
org.sonar.api.resources.ResourceTypes
- All Implemented Interfaces:
- ServerComponent, TaskComponent
@Beta
public class ResourceTypes
- extends Object
- implements TaskComponent, ServerComponent
- Since:
- 2.14
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVAILABLE_FOR_FILTERS
public static final com.google.common.base.Predicate<ResourceType> AVAILABLE_FOR_FILTERS
ResourceTypes
public ResourceTypes(ResourceTypeTree[] trees)
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.