public class XMPPFileID extends BaseID implements IFileID
| Modifier and Type | Field and Description |
|---|---|
static String |
FILENAME_KEY |
static String |
XMPPIDNAMESPACE_KEY |
| Constructor and Description |
|---|
XMPPFileID(XMPPID id,
String fn) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createQuery(String filename,
String xmppidScheme) |
static URL |
createURL(XMPPID xmppid2,
String filename2) |
String |
getFilename()
Get the file name from this IFileID.
|
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.
|
XMPPID |
getXMPPID() |
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 |
toExternalForm()
Get this ID instance in String form.
|
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalFormclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getName, getNamespace, hashCodecompareTopublic static final String FILENAME_KEY
public static final String XMPPIDNAMESPACE_KEY
public XMPPFileID(XMPPID id, String fn) throws MalformedURLException
MalformedURLExceptionpublic static URL createURL(XMPPID xmppid2, String filename2) throws MalformedURLException
MalformedURLExceptionpublic static String createQuery(String filename, String xmppidScheme) throws MalformedURLException
MalformedURLExceptionpublic XMPPID getXMPPID()
public String toExternalForm()
IDtoExternalForm in interface IDtoExternalForm in class BaseIDprotected int namespaceCompareTo(BaseID o)
BaseIDnamespaceCompareTo in class BaseIDo - the other ID to compare to. Will not be null.Comparable contract.protected boolean namespaceEquals(BaseID o)
BaseIDNamespace.testIDEquals(BaseID, BaseID).namespaceEquals in class BaseIDo - the other ID to test against. May be null.true if this ID is equal to the given ID.
false otherwise.protected String namespaceGetName()
BaseIDNamespace.getNameForID(BaseID).namespaceGetName in class BaseIDnull. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseIDNamespace.getHashCodeForID(BaseID).namespaceHashCode in class BaseIDpublic String getFilename()
IFileIDgetFilename in interface IFileIDnull.public URL getURL() throws MalformedURLException
IFileIDgetURL in interface IFileIDMalformedURLException - thrown if URL cannot be created for this IFileIDpublic URI getURI() throws URISyntaxException
IFileIDgetURI in interface IFileIDnull.URISyntaxException - thrown if URI cannot be created for this IFileID.Copyright © 2020 Eclipse Foundation. All rights reserved.