public class LocalResourceIdentifier extends java.lang.Object implements ILocalResourceIdentifier
| Modifier and Type | Field and Description | 
|---|---|
| protected IComponentIdentifier | cidThe component identifier. | 
| protected java.lang.String | hostidThe host id. | 
| protected java.net.URI | uriThe URI. | 
| Constructor and Description | 
|---|
| LocalResourceIdentifier()Create a resource identifier. | 
| LocalResourceIdentifier(IComponentIdentifier cid,
                       java.net.URI uri)Create a resource identifier. | 
| LocalResourceIdentifier(IComponentIdentifier cid,
                       java.net.URI uri,
                       java.lang.String hostid)Create a resource identifier. | 
| LocalResourceIdentifier(IComponentIdentifier cid,
                       java.net.URL url)Create a resource identifier. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj)Test if equals. | 
| IComponentIdentifier | getComponentIdentifier()Get the platform identifier belonging to the resource identifier. | 
| java.lang.String | getHostIdentifier()Get the host identifier. | 
| java.net.URI | getUri()Get the uri. | 
| int | hashCode()Get the hashcode. | 
| void | setComponentIdentifier(IComponentIdentifier cid)Set the platform identifier belonging to the resource identifier. | 
| void | setHostIdentifier(java.lang.String hostid)Set the host identifier. | 
| void | setUri(java.net.URI uri)Set the url. | 
| java.lang.String | toString()Get a string representation of this object. | 
protected IComponentIdentifier cid
protected java.net.URI uri
protected java.lang.String hostid
public LocalResourceIdentifier()
public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URL url)
cid - The platform identifier.url - The local URL.public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URI uri)
cid - The platform identifier.url - The local URL.public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URI uri, java.lang.String hostid)
cid - The platform identifier.url - The local URL.public IComponentIdentifier getComponentIdentifier()
getComponentIdentifier in interface ILocalResourceIdentifierpublic void setComponentIdentifier(IComponentIdentifier cid)
cid - The component identifier of the platform.public java.net.URI getUri()
getUri in interface ILocalResourceIdentifierpublic void setUri(java.net.URI uri)
url - The resource url.public java.lang.String getHostIdentifier()
getHostIdentifier in interface ILocalResourceIdentifierpublic void setHostIdentifier(java.lang.String hostid)
hostid - The host identifier.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object