public interface ProvidedObject
Modifier and Type | Method and Description |
---|---|
void |
deleteObject()
Signals the provided object to delete itself.
|
ProvidedObjectID |
getID()
Returns the ID of this Provided Object
|
java.lang.String |
getLabel()
Returns the label of this provided object
|
java.lang.Object |
getObject()
Same as calling getObject(true);
|
java.lang.Object |
getObject(boolean waitIfFuture)
Returns the object stored in this provided object.
|
java.lang.Class<?> |
getType()
Returns the type of the object contained in this Provided Object.
|
boolean |
isDeleted()
Returns whether or not this object has been deleted.
|
void |
setLabel(java.lang.String label)
Sets the label of this provided object to the new label.
|
void |
setObject(java.lang.Object object)
Changes the content of this provided object by replacing the original
object with the new object.
|
ProvidedObjectID getID()
java.lang.String getLabel()
void setLabel(java.lang.String label) throws ProvidedObjectDeletedException
label
- the new label of the objectProvidedObjectDeletedException
- If the object was removed from memory because there were no
useful references to it anymorejava.lang.Object getObject(boolean waitIfFuture) throws ProvidedObjectDeletedException
waitIfFuture
- if set to false, the returned object might be an instance of
ProMFuture. Otherwise not.ProvidedObjectDeletedException
- If the object was removed from memory because there were no
useful references to it anymorejava.lang.Object getObject() throws ProvidedObjectDeletedException
ProvidedObjectDeletedException
- If the object was removed from memory because there were no
useful references to it anymorevoid setObject(java.lang.Object object) throws ProvidedObjectDeletedException
object
- ProvidedObjectDeletedException
- If the object was removed from memory because there were no
useful references to it anymoreboolean isDeleted()
void deleteObject()
java.lang.Class<?> getType() throws ProvidedObjectDeletedException
ProvidedObjectDeletedException
- If the object was removed from memory because there were no
useful references to it anymore