public class ResourceIdentifier extends java.lang.Object implements IResourceIdentifier
Modifier and Type | Field and Description |
---|---|
protected IGlobalResourceIdentifier |
gid
The global identifier.
|
protected static java.util.Set<java.lang.String> |
IGNORED
The ignored directories for determining resource project name.
|
protected static java.util.Set<java.lang.String> |
JADEX_PROJECTS
The jadex project names.
|
protected ILocalResourceIdentifier |
lid
The local identifier.
|
Constructor and Description |
---|
ResourceIdentifier()
Create a resource identifier.
|
ResourceIdentifier(ILocalResourceIdentifier lid,
IGlobalResourceIdentifier gid)
Create a resource identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if equals.
|
IGlobalResourceIdentifier |
getGlobalIdentifier()
Get the global identifier.
|
ILocalResourceIdentifier |
getLocalIdentifier()
Get the local identifier.
|
int |
hashCode()
Get the hashcode.
|
static boolean |
isHashGid(IResourceIdentifier rid)
Test if the global id is non-null and a hash id.
|
static boolean |
isJadexRid(IResourceIdentifier rid)
Test if a rid refers to one of the jadex platform modules, i.e.
|
static boolean |
isLocal(IResourceIdentifier rid,
IComponentIdentifier root)
Test if a rid is local to this platform.
|
static IResourceIdentifier |
ridFromProperties(Properties rid,
IComponentIdentifier root)
Create a rid from properties.
|
static Properties |
ridToProperties(IResourceIdentifier rid,
IComponentIdentifier root)
Create properties from rid.
|
void |
setGlobalIdentifier(IGlobalResourceIdentifier gid)
Set the global identifier.
|
void |
setLocalIdentifier(ILocalResourceIdentifier lid)
Set the local identifier.
|
java.lang.String |
toString()
Get a string representation of this object.
|
protected static final java.util.Set<java.lang.String> IGNORED
protected static final java.util.Set<java.lang.String> JADEX_PROJECTS
protected ILocalResourceIdentifier lid
protected IGlobalResourceIdentifier gid
public ResourceIdentifier()
public ResourceIdentifier(ILocalResourceIdentifier lid, IGlobalResourceIdentifier gid)
lid
- The local identifier.gid
- The global idenfifier.public ILocalResourceIdentifier getLocalIdentifier()
getLocalIdentifier
in interface IResourceIdentifier
public IGlobalResourceIdentifier getGlobalIdentifier()
getGlobalIdentifier
in interface IResourceIdentifier
public void setLocalIdentifier(ILocalResourceIdentifier lid)
lid
- The lid to set.public void setGlobalIdentifier(IGlobalResourceIdentifier gid)
gid
- The gid to set.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static boolean isHashGid(IResourceIdentifier rid)
public static Properties ridToProperties(IResourceIdentifier rid, IComponentIdentifier root)
The
- resource identifier.public static IResourceIdentifier ridFromProperties(Properties rid, IComponentIdentifier root)
rid
- The resource identifier properties.public static boolean isLocal(IResourceIdentifier rid, IComponentIdentifier root)
public static boolean isJadexRid(IResourceIdentifier rid)
public java.lang.String toString()
toString
in class java.lang.Object