org.sonar.api.resources
Class Directory
java.lang.Object
org.sonar.api.resources.AbstractResource
org.sonar.api.resources.Directory
- All Implemented Interfaces:
- Resource
public class Directory
- extends AbstractResource
Field Summary |
static java.lang.String |
SEPARATOR
|
Method Summary |
boolean |
matchFilePattern(java.lang.String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java. |
static java.lang.String |
parseKey(java.lang.String key)
|
Methods inherited from class org.sonar.api.resources.AbstractResource |
equals, getDescription, getKey, getLanguage, getName, getParent, getQualifier, getScope, hashCode, setDescription, setKey, setLanguage, setName, setQualifier, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SEPARATOR
public static final java.lang.String SEPARATOR
- See Also:
- Constant Field Values
Directory
public Directory(java.lang.String key)
Directory
public Directory(java.lang.String key,
Language language)
matchFilePattern
public boolean matchFilePattern(java.lang.String antPattern)
- Description copied from interface:
Resource
- Check resource against an Ant pattern, like mypackag?/*Foo.java. It's used for example
to match resource exclusions.
- Parameters:
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.
- Returns:
- true if the resource matches the Ant pattern
parseKey
public static java.lang.String parseKey(java.lang.String key)
Copyright © 2009 SonarSource SA. All Rights Reserved.