_files.add(fileDTO);
return fileDTO;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ String indent = " ";
+ buf.append(indent).append("Document: ").append(getTitle()).append('\n')
+ .append(indent).append(" Document ID: ").append(getId())
+ .append('\n');
+ for (FileDTO file : getFiles()) {
+ buf.append(file);
+ }
+ return buf.toString();
+ }
}
public void setPath(final String path) {
_path = path;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ String indent = " ";
+ String ftype = "Source";
+ if (isResult()) {
+ ftype = "Result";
+ }
+ String fstate = "file-actual";
+ if (getState() == 'O') {
+ fstate = "file-outdated";
+ }
+ buf.append(indent).append(ftype).append(" file: ").append(getPath())
+ .append('\n').append(indent).append(
+ " Automatic processing: ").append(getProcessing())
+ .append('\n').append(indent).append(" State: ").append(
+ fstate).append('\n');
+ return buf.toString();
+ }
}
/**
* Get the key.
+ *
* @return the key
*/
public String getKey() {
/**
* Set the key.
- * @param key the key to set
+ *
+ * @param key
+ * the key to set
*/
public void setKey(final String key) {
_key = key;
/**
* Get the number.
+ *
* @return the number
*/
public int getNumber() {
/**
* Set the number.
- * @param number the number to set
+ *
+ * @param number
+ * the number to set
*/
public void setNumber(final int number) {
_number = number;
/**
* Get the module.
+ *
* @return the module
*/
public String getModule() {
/**
* Set the module.
- * @param module the module to set
+ *
+ * @param module
+ * the module to set
*/
public void setModule(final String module) {
_module = module;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ StringBuffer buf = new StringBuffer();
+ buf.append("Activity ID: " + getNumber() + "\nSALOME module: "
+ + getModule() + "\n");
+ for (DocumentDTO doc : getDocs()) {
+ buf.append(doc);
+ }
+ return buf.toString();
+ }
}