public class FileTransferID extends BaseID implements IFileID
Constructor and Description |
---|
FileTransferID(Namespace namespace,
URI uri) |
FileTransferID(Namespace namespace,
URL url) |
Modifier and Type | Method and Description |
---|---|
String |
getFilename()
Get the file name from this IFileID.
|
protected String |
getFileNameOnly() |
URI |
getURI()
Get the URI associated with the file identified by this IFileID.
|
URL |
getURL()
Get the url associated with the file identified by this IFileID.
|
protected int |
namespaceCompareTo(BaseID o)
|
protected boolean |
namespaceEquals(BaseID o)
Called by
Namespace.testIDEquals(BaseID, BaseID) . |
protected String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID) . |
String |
toString() |
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getName, getNamespace, hashCode, toExternalForm
compareTo
protected int namespaceCompareTo(BaseID o)
BaseID
namespaceCompareTo
in class BaseID
o
- the other ID to compare to. Will not be null
.Comparable
contract.protected boolean namespaceEquals(BaseID o)
BaseID
Namespace.testIDEquals(BaseID, BaseID)
.namespaceEquals
in class BaseID
o
- the other ID to test against. May be null
.true
if this ID is equal to the given ID.
false
otherwise.protected String namespaceGetName()
BaseID
Namespace.getNameForID(BaseID)
.namespaceGetName
in class BaseID
null
. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseID
Namespace.getHashCodeForID(BaseID)
.namespaceHashCode
in class BaseID
public String getFilename()
IFileID
getFilename
in interface IFileID
null
.public URL getURL() throws MalformedURLException
IFileID
getURL
in interface IFileID
MalformedURLException
- thrown if URL cannot be created for this IFileIDprotected String getFileNameOnly()
public String toString()
public URI getURI() throws URISyntaxException
IFileID
getURI
in interface IFileID
null
.URISyntaxException
- thrown if URI cannot be created for this IFileID.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.