public interface Trackable extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Checks wether this resource actually (still) exists
|
long |
getChecksum()
Checksum of the resource content.
|
String |
getModuleName()
Utility method to get the name for the module defined by this resource.
|
String |
getName()
Returns the short name of the resource.
|
Repository |
getParentRepository()
Returns the parent repository containing this resource
|
String |
getPath()
Returns the path of the resource.
|
String |
getRelativePath()
Get the path of this resource relative to its root repository.
|
Repository |
getRootRepository()
Returns the root repository of this resource
|
URL |
getUrl()
Returns an url to the resource if the repository of this resource is
able to provide urls.
|
boolean |
isAbsolute()
Return true if this Trackable is in absolute mode.
|
long |
lastModified()
Returns the date the resource was last modified
|
void |
setAbsolute(boolean absolute)
Set this Trackable to absolute mode.
|
long lastModified()
long getChecksum()
throws IOException
IOExceptionboolean exists()
throws IOException
IOExceptionString getPath()
String getName()
URL getUrl() throws UnsupportedOperationException, MalformedURLException
UnsupportedOperationExceptionMalformedURLExceptionRepository getParentRepository()
Repository getRootRepository()
String getModuleName()
String getRelativePath()
void setAbsolute(boolean absolute)
absolute - true to operate in absolute modeboolean isAbsolute()
Copyright © 2016. All rights reserved.