public class GlobalResourceIdentifier extends java.lang.Object implements IGlobalResourceIdentifier
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
The id.
|
protected java.net.URI |
uri
The URI.
|
protected java.lang.String |
versioninfo
The version info.
|
Constructor and Description |
---|
GlobalResourceIdentifier()
Create a resource identifier.
|
GlobalResourceIdentifier(java.lang.String id,
java.net.URI url,
java.lang.String versioninfo)
Create a resource identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if equals.
|
java.net.URI |
getRepositoryInfo()
todo: make struct to also allow containing
Get the url.
|
java.lang.String |
getResourceId()
Get the resource id.
|
java.lang.String |
getVersionInfo()
Get the version info.
|
int |
hashCode()
Get the hashcode.
|
void |
setRepositoryInfo(java.net.URI uri)
Set the repository info.
|
void |
setResourceId(java.lang.String id)
Set the id.
|
void |
setVersionInfo(java.lang.String versioninfo)
Set the version info.
|
java.lang.String |
toString()
Get a string representation of this object.
|
protected java.lang.String id
protected java.net.URI uri
protected java.lang.String versioninfo
public GlobalResourceIdentifier()
public GlobalResourceIdentifier(java.lang.String id, java.net.URI url, java.lang.String versioninfo)
cid
- The platform identifier.url
- The local URL.public java.lang.String getResourceId()
getResourceId
in interface IGlobalResourceIdentifier
public java.net.URI getRepositoryInfo()
getRepositoryInfo
in interface IGlobalResourceIdentifier
public void setResourceId(java.lang.String id)
id
- The id.public void setRepositoryInfo(java.net.URI uri)
info
- The info.public java.lang.String getVersionInfo()
getVersionInfo
in interface IGlobalResourceIdentifier
public void setVersionInfo(java.lang.String versioninfo)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object