wt.clients.replication.unit
Class DescribedByAssociationsModel
java.lang.Object
wt.clients.replication.unit.DescribedByAssociationsModel
- All Implemented Interfaces:
- AssociationsModel
- public class DescribedByAssociationsModel
- extends Object
- implements AssociationsModel
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 |
unit
private WTUnit unit
DescribedByAssociationsModel
public DescribedByAssociationsModel()
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