description = null;
}
// Initialization constructors
- protected ConvertsRelation (Document from, File to) {
+ protected ConvertsRelation (final Document from, final File to) {
// ---------------------------------------------------
super(from);
this.refer = to;
this.got = true;
this.description = null; // Conversion not described
}
- public ConvertsRelation (Document from, File to, String description) {
+ public ConvertsRelation (final Document from, final File 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 File getTo () {
+ @Override
+ public File getTo () {
// --------------------
return refer;
}
- protected void setTo (Persistent to) {
+
+ @Override
+ public void setTo (final Persistent to) {
// ------------------------------------
refer = (File)to;
}