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 SummaryFields Modifier and Type Field Description protected IComponentIdentifiercidThe component identifier.protected java.lang.StringhostidThe host id.protected java.net.URIuriThe URI.
 - 
Constructor SummaryConstructors 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 SummaryAll 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- 
cidprotected IComponentIdentifier cid The component identifier.
 - 
uriprotected java.net.URI uri The URI.
 - 
hostidprotected java.lang.String hostid The host id.
 
- 
 - 
Constructor Detail- 
LocalResourceIdentifierpublic LocalResourceIdentifier() Create a resource identifier.
 - 
LocalResourceIdentifierpublic LocalResourceIdentifier(IComponentIdentifier cid, java.net.URL url) Create a resource identifier.- Parameters:
- cid- The platform identifier.
- url- The local URL.
 
 - 
LocalResourceIdentifierpublic LocalResourceIdentifier(IComponentIdentifier cid, java.net.URI uri) Create a resource identifier.- Parameters:
- cid- The platform identifier.
- url- The local URL.
 
 - 
LocalResourceIdentifierpublic 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- 
getComponentIdentifierpublic IComponentIdentifier getComponentIdentifier() Get the platform identifier belonging to the resource identifier.- Specified by:
- getComponentIdentifierin interface- ILocalResourceIdentifier
- Returns:
- The component identifier of the platform.
 
 - 
setComponentIdentifierpublic void setComponentIdentifier(IComponentIdentifier cid) Set the platform identifier belonging to the resource identifier.- Parameters:
- cid- The component identifier of the platform.
 
 - 
getUripublic java.net.URI getUri() Get the uri.- Specified by:
- getUriin interface- ILocalResourceIdentifier
- Returns:
- The resource uri.
 
 - 
setUripublic void setUri(java.net.URI uri) Set the url.- Parameters:
- url- The resource url.
 
 - 
getHostIdentifierpublic java.lang.String getHostIdentifier() Get the host identifier.- Specified by:
- getHostIdentifierin interface- ILocalResourceIdentifier
- Returns:
- The host identifier.
 
 - 
setHostIdentifierpublic void setHostIdentifier(java.lang.String hostid) Set the host identifier.- Parameters:
- hostid- The host identifier.
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if equals.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this object.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-