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 IComponentIdentifiercidThe component identifier.protected java.lang.StringhostidThe host id.protected java.net.URIuriThe 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 booleanequals(java.lang.Object obj)Test if equals.IComponentIdentifiergetComponentIdentifier()Get the platform identifier belonging to the resource identifier.java.lang.StringgetHostIdentifier()Get the host identifier.java.net.URIgetUri()Get the uri.inthashCode()Get the hashcode.voidsetComponentIdentifier(IComponentIdentifier cid)Set the platform identifier belonging to the resource identifier.voidsetHostIdentifier(java.lang.String hostid)Set the host identifier.voidsetUri(java.net.URI uri)Set the url.java.lang.StringtoString()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:
getComponentIdentifierin 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:
getUriin 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:
getHostIdentifierin 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equals.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Get a string representation of this object.- Overrides:
toStringin classjava.lang.Object
-
-