コード例 #1
0
 @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;
   }
 }
コード例 #2
0
 /** @return true if the report subject is a transformation. */
 public boolean isTransformation() {
   if (objectType.equals(RepositoryObjectType.TRANSFORMATION)) {
     return true;
   }
   return false;
 }