|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.provider.filetransfer.identity.FileTransferID
public class FileTransferID
Field Summary |
---|
Fields inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
namespace |
Constructor Summary | |
---|---|
FileTransferID(Namespace namespace,
java.net.URI uri)
|
|
FileTransferID(Namespace namespace,
java.net.URL url)
|
Method Summary | |
---|---|
java.lang.String |
getFilename()
Get the file name from this IFileID. |
protected java.lang.String |
getFileNameOnly()
|
java.net.URI |
getURI()
Get the URI associated with the file identified by this IFileID. |
java.net.URL |
getURL()
Get the url associated with the file identified by this IFileID. |
protected int |
namespaceCompareTo(BaseID o)
Called by Namespace.getCompareToForObject(BaseID, BaseID) . |
protected boolean |
namespaceEquals(BaseID o)
Called by Namespace.testIDEquals(BaseID, BaseID) . |
protected java.lang.String |
namespaceGetName()
Called by Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by Namespace.getHashCodeForID(BaseID) . |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ecf.core.identity.ID |
---|
equals, getName, getNamespace, hashCode, toExternalForm |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public FileTransferID(Namespace namespace, java.net.URL url)
public FileTransferID(Namespace namespace, java.net.URI uri)
Method Detail |
---|
protected int namespaceCompareTo(BaseID o)
BaseID
Namespace.getCompareToForObject(BaseID, 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 java.lang.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 java.lang.String getFilename()
IFileID
getFilename
in interface IFileID
null
.public java.net.URL getURL() throws java.net.MalformedURLException
IFileID
getURL
in interface IFileID
java.net.MalformedURLException
- thrown if URL cannot be created for this IFileIDprotected java.lang.String getFileNameOnly()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public java.net.URI getURI() throws java.net.URISyntaxException
IFileID
getURI
in interface IFileID
null
.
java.net.URISyntaxException
- thrown if URI cannot be created for this IFileID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |