protected UsesRelation () {
}
// Initialization constructors
- public UsesRelation (Document from, Document to) {
+ public UsesRelation (final Document from, final Document to) {
// ---------------------------------------------------
super(from);
this.refer = to;
this.reverse = new UsedByRelation(this, to, from);
}
// Internal constructor
- protected UsesRelation (Relation back, Document from, Document to) {
+ protected UsesRelation (final Relation back, final Document from, final Document to) {
// ------------------------------------------------------------------
super(from);
this.refer = to;
// Public member functions
// ==============================================================================================================================
- public Class<? extends Relation> getReverseClass () {
+ @Override
+ public Class<? extends Relation> getReverseClass () {
// ---------------------------------------------------
return UsedByRelation.class;
}
- public Document getTo () {
+ @Override
+ public Document getTo () {
// -------------------------
return refer;
}
- public boolean isBidirectional () {
+ @Override
+ public boolean isBidirectional () {
// ---------------------------------
return true;
}
- protected void setTo (Persistent to) {
+ @Override
+ public void setTo (final Persistent to) {
// ------------------------------------
refer = (Document)to;
}