|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.util.lang.Packages
public final class Packages
Utilities for dealing with packages.
Method Summary | |
---|---|
static java.lang.String |
absolutePath(java.lang.Class p,
java.lang.String relativePath)
Takes a package and a relative path to a resource and returns an absolute path to the resource. |
static java.lang.String |
absolutePath(java.lang.Package p,
java.lang.String relativePath)
Takes a package and a relative path to a resource and returns an absolute path to the resource. |
static java.lang.String |
absolutePath(java.lang.String packageName,
java.lang.String relativePath)
Takes a package and a relative path to a resource and returns an absolute path to the resource. |
static java.lang.String |
extractPackageName(java.lang.Class forClass)
Determines the package name for the given class. |
static java.lang.String |
parent(java.lang.String packageName)
Gets the parent package name. |
static java.lang.String |
resolveScope(java.lang.Class forClass)
Resolve scope for the given class by extracting it's package name and converting all dots to slashes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String absolutePath(java.lang.Class p, java.lang.String relativePath)
p
- The package to start atrelativePath
- The relative path to the class
public static java.lang.String absolutePath(java.lang.Package p, java.lang.String relativePath)
p
- The package to start atrelativePath
- The relative path to the class
public static java.lang.String absolutePath(java.lang.String packageName, java.lang.String relativePath)
packageName
- The package to start atrelativePath
- The relative path to the class
public static java.lang.String extractPackageName(java.lang.Class forClass)
forClass
- the class
public static java.lang.String parent(java.lang.String packageName)
packageName
- The Package name
public static java.lang.String resolveScope(java.lang.Class forClass)
forClass
- the class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |