Package jadex.bridge
Class LocalResourceIdentifier
- java.lang.Object
-
- jadex.bridge.LocalResourceIdentifier
-
- All Implemented Interfaces:
ILocalResourceIdentifier
public class LocalResourceIdentifier extends java.lang.Object implements ILocalResourceIdentifier
Default implementation for resource identification.
-
-
Field Summary
Fields Modifier and Type Field Description protected IComponentIdentifier
cid
The component identifier.protected java.lang.String
hostid
The host id.protected java.net.URI
uri
The URI.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
cid
protected IComponentIdentifier cid
The component identifier.
-
uri
protected java.net.URI uri
The URI.
-
hostid
protected java.lang.String hostid
The host id.
-
-
Constructor Detail
-
LocalResourceIdentifier
public LocalResourceIdentifier()
Create a resource identifier.
-
LocalResourceIdentifier
public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URL url)
Create a resource identifier.- Parameters:
cid
- The platform identifier.url
- The local URL.
-
LocalResourceIdentifier
public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URI uri)
Create a resource identifier.- Parameters:
cid
- The platform identifier.url
- The local URL.
-
LocalResourceIdentifier
public LocalResourceIdentifier(IComponentIdentifier cid, java.net.URI uri, java.lang.String hostid)
Create a resource identifier.- Parameters:
cid
- The platform identifier.url
- The local URL.
-
-
Method Detail
-
getComponentIdentifier
public IComponentIdentifier getComponentIdentifier()
Get the platform identifier belonging to the resource identifier.- Specified by:
getComponentIdentifier
in interfaceILocalResourceIdentifier
- Returns:
- The component identifier of the platform.
-
setComponentIdentifier
public void setComponentIdentifier(IComponentIdentifier cid)
Set the platform identifier belonging to the resource identifier.- Parameters:
cid
- The component identifier of the platform.
-
getUri
public java.net.URI getUri()
Get the uri.- Specified by:
getUri
in interfaceILocalResourceIdentifier
- Returns:
- The resource uri.
-
setUri
public void setUri(java.net.URI uri)
Set the url.- Parameters:
url
- The resource url.
-
getHostIdentifier
public java.lang.String getHostIdentifier()
Get the host identifier.- Specified by:
getHostIdentifier
in interfaceILocalResourceIdentifier
- Returns:
- The host identifier.
-
setHostIdentifier
public void setHostIdentifier(java.lang.String hostid)
Set the host identifier.- Parameters:
hostid
- The host identifier.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equals.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Get a string representation of this object.- Overrides:
toString
in classjava.lang.Object
-
-