wt.clients.replication.unit
Class DescribedByAssociationsModel

java.lang.Object
  extended bywt.clients.replication.unit.DescribedByAssociationsModel
All Implemented Interfaces:
AssociationsModel

public class DescribedByAssociationsModel
extends Object
implements AssociationsModel


Field Summary
private  WTUnit unit
           
 
Constructor Summary
DescribedByAssociationsModel()
           
 
Method Summary
 QueryResult getAssociations()
          Returns a QueryResult containing the documents which describe the context unit.
 WTUnit getUnit()
          Return the whose described by associations are available from this AssocationsModel.
 void setUnit(WTUnit unit)
          Sets the WTUnit whose described by associations are available from this model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

private WTUnit unit
Constructor Detail

DescribedByAssociationsModel

public DescribedByAssociationsModel()
Method Detail

getUnit

public WTUnit getUnit()
Return the whose described by associations are available from this AssocationsModel.

Returns:
the WTUnit whose described by associations are available from this model

setUnit

public void setUnit(WTUnit unit)
Sets the WTUnit whose described by associations are available from this model.

Parameters:
unit - the WTUnit whose associations are available from this model

getAssociations

public QueryResult getAssociations()
                            throws WTException
Returns a QueryResult containing the documents which describe the context unit.

Specified by:
getAssociations in interface AssociationsModel
Returns:
the QueryResult of describing documents
Throws:
WTException - if an error occurs retrieving the describing documents