@Override public String toString() { if (Utils.isEmpty(filename)) { String dir = directory.toString(); if (dir.endsWith("/")) { return dir + name + " (" + objectType.getTypeDescription() + ")"; } else { return dir + "/" + name + " (" + objectType.getTypeDescription() + ")"; } } else { return filename; } }
/** @return true if the report subject is a transformation. */ public boolean isTransformation() { if (objectType.equals(RepositoryObjectType.TRANSFORMATION)) { return true; } return false; }