org.sonar.api.resources
Class Library
java.lang.Object
org.sonar.api.resources.Resource
org.sonar.api.resources.Library
public final class Library
- extends Resource
Fields inherited from class org.sonar.api.resources.Resource |
QUALIFIER_CLASS, QUALIFIER_DIRECTORY, QUALIFIER_FIELD, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_METHOD, QUALIFIER_MODULE, QUALIFIER_PACKAGE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_UNIT_TEST_CLASS, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE |
Library
public Library(String key,
String version)
getVersion
public String getVersion()
setName
public Library setName(String name)
setDescription
public Library setDescription(String description)
getName
public String getName()
- Specified by:
getName
in class Resource
- Returns:
- the resource name
getLongName
public String getLongName()
- Specified by:
getLongName
in class Resource
- Returns:
- the resource long name
getDescription
public String getDescription()
- Specified by:
getDescription
in class Resource
- Returns:
- the resource description
getLanguage
public Language getLanguage()
- Specified by:
getLanguage
in class Resource
- Returns:
- the language
getScope
public String getScope()
- Specified by:
getScope
in class Resource
- Returns:
- the scope
getQualifier
public String getQualifier()
- Specified by:
getQualifier
in class Resource
- Returns:
- the qualifier
getParent
public Resource getParent()
- Description copied from class:
Resource
- The parent is used to build the resources tree, for example for relations between classes, packages and projects.
Return null if the parent is the project.
- Specified by:
getParent
in class Resource
matchFilePattern
public boolean matchFilePattern(String antPattern)
- Description copied from class:
Resource
- Check resource against an Ant pattern, like mypackag?/*Foo.java. It's used for example to match resource exclusions.
- Specified by:
matchFilePattern
in class Resource
- Parameters:
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.
- Returns:
- true if the resource matches the Ant pattern
equals
public boolean equals(Object o)
- Overrides:
equals
in class Resource
hashCode
public int hashCode()
- Overrides:
hashCode
in class Resource
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.