|
||||||||||
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
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(java.lang.String path)
Construct a PathDescriptor from a path. |
|
PathDescriptor(java.lang.String base,
java.lang.String path)
Construct a PathDescriptor from a path and a base. |
|
PathDescriptor(java.net.URL baseUrl,
java.lang.String path)
Construct a PathDescriptor from a path and a base. |
Method Summary | |
---|---|
java.net.URL |
getBaseUrl()
Get the base URL. |
java.lang.String |
getLocation()
Get the location for files. |
java.lang.String |
getPath()
Get the path. |
java.net.URL |
getPathUrl()
Get the path as a URL. |
boolean |
isFile()
Check if this PathDescriptor decribes a file. |
boolean |
isRelative()
Check if this PathDescriptor decribes a relative path. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PathDescriptor(java.lang.String path) throws java.net.MalformedURLException
path
- the path.
java.net.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(java.lang.String base, java.lang.String path) throws java.net.MalformedURLException
base
- a base reference.path
- the path.
java.net.MalformedURLException
- if a URL cannot be formed from the path.public PathDescriptor(java.net.URL baseUrl, java.lang.String path) throws java.net.MalformedURLException
baseUrl
- a base reference.path
- the path.
java.net.MalformedURLException
- if a URL cannot be formed from the path.Method Detail |
---|
public boolean isFile()
public boolean isRelative()
getPathUrl()
returns null.public java.net.URL getBaseUrl()
public java.net.URL getPathUrl()
public java.lang.String getPath()
public java.lang.String getLocation()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |