wt.clients.doc
Class ReferenceAssociationsModel
java.lang.Object
wt.clients.doc.ReferenceAssociationsModel
- All Implemented Interfaces:
- AssociationsModel
- public class ReferenceAssociationsModel
- extends Object
- implements AssociationsModel
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 |
doc
private WTDocument doc
ReferenceAssociationsModel
public ReferenceAssociationsModel()
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