|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.site.decoration.inheritance.PathDescriptor
URIPathDescriptor instead.
public class PathDescriptor
This class holds an instance of a maven path. This consists of a relative path (e.g. images/maven-logo.png) and a base reference which can also be a relative path (e.g. '.' or '../doxia') or an URL that is used for an absolute anchor.
| Constructor Summary | |
|---|---|
PathDescriptor(String path)
Deprecated. Construct a PathDescriptor from a path. |
|
PathDescriptor(String base,
String path)
Deprecated. Construct a PathDescriptor from a path and a base. |
|
PathDescriptor(URL baseUrl,
String path)
Deprecated. Construct a PathDescriptor from a path and a base. |
|
| Method Summary | |
|---|---|
URL |
getBaseUrl()
Deprecated. Get the base URL. |
String |
getLocation()
Deprecated. Get the location for files. |
String |
getPath()
Deprecated. Get the path. |
URL |
getPathUrl()
Deprecated. Get the path as a URL. |
boolean |
isFile()
Deprecated. Check if this PathDescriptor decribes a file. |
boolean |
isRelative()
Deprecated. Check if this PathDescriptor decribes a relative path. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathDescriptor(String path)
throws MalformedURLException
path - the path.
MalformedURLException - if a URL cannot be formed from the path.
public PathDescriptor(String base,
String path)
throws MalformedURLException
base - a base reference.path - the path.
MalformedURLException - if a URL cannot be formed from the path.
public PathDescriptor(URL baseUrl,
String path)
throws MalformedURLException
baseUrl - a base reference.path - the path.
MalformedURLException - if a URL cannot be formed from the path.| Method Detail |
|---|
public boolean isFile()
public boolean isRelative()
getPathUrl() returns null.public URL getBaseUrl()
public URL getPathUrl()
public String getPath()
public String getLocation()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||