org.sonar.api.resources
Class JavaPackage

java.lang.Object
  extended by org.sonar.api.resources.Resource
      extended by org.sonar.api.resources.JavaPackage
All Implemented Interfaces:
Serializable

Deprecated. since 4.2 use Directory instead

@Deprecated
public class JavaPackage
extends Resource

A class that represents a Java package in Sonar

Since:
1.10
See Also:
Serialized Form

Field Summary
static String DEFAULT_PACKAGE_NAME
          Deprecated.  
 
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
 
Constructor Summary
JavaPackage()
          Deprecated.  
JavaPackage(String deprecatedKey)
          Deprecated.  
 
Method Summary
 String getDescription()
          Deprecated.  
 Language getLanguage()
          Deprecated.  
 String getLongName()
          Deprecated.  
 String getName()
          Deprecated.  
 Resource getParent()
          Deprecated. The parent is used to build the resources tree, for example for relations between classes, packages and projects.
 String getQualifier()
          Deprecated. The qualifier tells the type of the resource.
 String getScope()
          Deprecated.  
 boolean isDefault()
          Deprecated.  
 boolean matchFilePattern(String antPattern)
          Deprecated. Check resource against an Ant pattern, like mypackag?/*Foo.java.
 
Methods inherited from class org.sonar.api.resources.Resource
equals, getDeprecatedKey, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, normalize, setDeprecatedKey, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PACKAGE_NAME

public static final String DEFAULT_PACKAGE_NAME
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

JavaPackage

public JavaPackage()
Deprecated. 

JavaPackage

public JavaPackage(String deprecatedKey)
Deprecated. 
Method Detail

isDefault

public boolean isDefault()
Deprecated. 

matchFilePattern

public boolean matchFilePattern(String antPattern)
Deprecated. 
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

getDescription

public String getDescription()
Deprecated. 
Specified by:
getDescription in class Resource
Returns:
the resource description

getScope

public String getScope()
Deprecated. 
Specified by:
getScope in class Resource
Returns:
the scope

getQualifier

public String getQualifier()
Deprecated. 
Description copied from class: Resource
The qualifier tells the type of the resource. For example, it can be a File, a Class, a Project, a Unit Test...

Specified by:
getQualifier in class Resource
Returns:
the qualifier
See Also:
for the list of qualifiers, to find out if a resource if a class, a unit test,... from its qualifier

getName

public String getName()
Deprecated. 
Specified by:
getName in class Resource
Returns:
the resource name

getParent

public Resource getParent()
Deprecated. 
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

getLongName

public String getLongName()
Deprecated. 
Specified by:
getLongName in class Resource
Returns:
the resource long name

getLanguage

public Language getLanguage()
Deprecated. 
Specified by:
getLanguage in class Resource
Returns:
the language of the resource. Only Files have a non null value.


Copyright © 2009–2015 SonarSource. All rights reserved.