pl.edu.agh.cast.data.model
Interface IReference<T extends Identifiable>

Type Parameters:
T - type of referred Identifiable instance
All Superinterfaces:
IReplicable, Serializable

public interface IReference<T extends Identifiable>
extends Serializable, IReplicable

Interface of reference to Identifiable object.

Author:
AGH CAST Team

Method Summary
 IReferenceList<T> asReferenceList()
          Transforms this reference to reference list with one element.
 T getReference()
          Returns the instance referred by the reference.
 boolean isResolved()
          Checks if reference has already been resolved.
 boolean isVoid()
          Checks if reference does not point to any object (it is null).
 void setReference(T reference)
          Sets the instance referred by the reference.
 
Methods inherited from interface pl.edu.agh.cast.common.IReplicable
replicate, replicateTo
 

Method Detail

getReference

T getReference()
Returns the instance referred by the reference.

Returns:
referred instance (implements Identifiable)

setReference

void setReference(T reference)
Sets the instance referred by the reference.

Parameters:
reference - referred instance (implements Identifiable)

asReferenceList

IReferenceList<T> asReferenceList()
Transforms this reference to reference list with one element.

Returns:
The reference list containing the only one element of the reference.

isVoid

boolean isVoid()
Checks if reference does not point to any object (it is null).

Returns:
true if reference does not point to any object

isResolved

boolean isResolved()
Checks if reference has already been resolved.

Returns:
true if reference has already been resolved


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.