wt.clients.doc
Class ReferenceAssociationsModel

java.lang.Object
  extended bywt.clients.doc.ReferenceAssociationsModel
All Implemented Interfaces:
AssociationsModel

public class ReferenceAssociationsModel
extends Object
implements AssociationsModel


Field Summary
private  WTDocument doc
           
 
Constructor Summary
ReferenceAssociationsModel()
           
 
Method Summary
 QueryResult getAssociations()
          Returns a QueryResult containing the documents which the context document is dependent on.
 WTDocument getDocument()
          Return the WTDocument whose depends on associations are available from this AssocationsModel.
 void setDocument(WTDocument document)
          Sets the WTDocument whose depends on 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

doc

private WTDocument doc
Constructor Detail

ReferenceAssociationsModel

public ReferenceAssociationsModel()
Method Detail

getDocument

public WTDocument getDocument()
Return the WTDocument whose depends on associations are available from this AssocationsModel.

Returns:
the WTDocument whose depends on associations are available from this model

setDocument

public void setDocument(WTDocument document)
Sets the WTDocument whose depends on associations are available from this model.


getAssociations

public QueryResult getAssociations()
                            throws WTException
Returns a QueryResult containing the documents which the context document is dependent on.

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