description = null;
}
// Initialization constructors
- public VersionsRelation (Document from, Document to) {
+ public VersionsRelation (final Document from, final Document to) {
// -------------------------------------------------------
super(from);
this.refer = to;
this.got = true;
this.description = null; // Conversion not described
}
- public VersionsRelation (Document from, Document to, String description) {
+ public VersionsRelation (final Document from, final Document to, final String description) {
// ---------------------------------------------------------------------------
super(from);
this.refer = to;
this.got = true;
this.description = description; // May be null
- if (description != null) this.setAttribute( new DescriptionAttribute(this, description) );
+ if (description != null) {
+ this.setAttribute( new DescriptionAttribute(this, description) );
+ }
}
// ==============================================================================================================================
// -------------------------------
if (!got) {
DescriptionAttribute field = (DescriptionAttribute)this.getAttribute(DescriptionAttribute.class);
- if (field != null) description = field.getValue();
+ if (field != null) {
+ description = field.getValue();
+ }
got = true; // Don't need to be modified later as set and remove attribute functions are private to this class
}
return description; // May be null
}
- public Document getTo () {
+ @Override
+ public Document getTo () {
// -------------------------
return refer;
}
- protected void setTo (Persistent to) {
+ @Override
+ public void setTo (final Persistent to) {
// ------------------------------------
refer = (Document)to;
}