Package com.abstratt.kirra
Class InstanceRef
- java.lang.Object
-
- com.abstratt.kirra.InstanceRef
-
- All Implemented Interfaces:
InstanceProtocol
public class InstanceRef extends Object implements InstanceProtocol
A typed reference to an instance. Can be resolved to an actual instance via {@link InstanceManagement.getInstance(InstanceRef)}.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
entityName
protected String
entityNamespace
protected String
objectId
-
Constructor Summary
Constructors Constructor Description InstanceRef()
InstanceRef(String entityNamespace, String entityName, String objectId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getEntityName()
String
getEntityNamespace()
String
getObjectId()
String
getScopeName()
String
getScopeNamespace()
int
hashCode()
static InstanceRef
parse(String asString, String defaultNamespace)
void
setEntityName(String entityName)
void
setEntityNamespace(String entityNamespace)
void
setObjectId(String objectId)
void
setScopeName(String entityName)
void
setScopeNamespace(String entityNamespace)
String
toString()
static String
toString(String entityNamespace, String entityName, String objectId)
-
-
-
Method Detail
-
parse
public static InstanceRef parse(String asString, String defaultNamespace)
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceInstanceProtocol
-
getEntityNamespace
public String getEntityNamespace()
- Specified by:
getEntityNamespace
in interfaceInstanceProtocol
-
setEntityName
public void setEntityName(String entityName)
-
setEntityNamespace
public void setEntityNamespace(String entityNamespace)
-
getScopeNamespace
public String getScopeNamespace()
-
getScopeName
public String getScopeName()
-
setScopeName
public void setScopeName(String entityName)
-
setScopeNamespace
public void setScopeNamespace(String entityNamespace)
-
getObjectId
public String getObjectId()
- Specified by:
getObjectId
in interfaceInstanceProtocol
-
setObjectId
public void setObjectId(String objectId)
-
-