Package entagged.tageditor.tools.renaming.data.stat

Examples of entagged.tageditor.tools.renaming.data.stat.Statistic


   *      entagged.tageditor.tools.renaming.data.FileDescriptor)
   */
  public boolean accept(DirectoryDescriptor parent, FileDescriptor file) {
    if (super.accept(parent, file)) {
      // Now filter more.
      final Statistic stat = file.getStatistic();
      int errorCount = 0;
      // If the source would be copied on that cases the there is no
      // error.
      if (!renameConfig.isCopyUnmodifiableFiles()) {
        errorCount = stat
            .getProperty(CanNotWriteProperty.PROPERTY_NAME);
      }
      errorCount += stat
          .getProperty(DestinationExistsProperty.PROPERTY_NAME);
      errorCount += stat
          .getProperty(DuplicateErrorProperty.PROPERTY_NAME);
      return errorCount == 0;
    }
    return false;
  }
View Full Code Here


   *
   * @param file
   *            The file whose errors are about to be described.
   */
  private void handleFile(AbstractFile file) {
    Statistic stats = file.getStatistic();
    Prop[] properties = stats.getProperties();
    StringBuffer message = new StringBuffer();
    for (int i = 0; i < properties.length; i++) {
      if (properties[i].getCategories().contains(
          Category.INFORMATIVE_CATEGORY)) {
        String msg = properties[i].getDescriptionFor(file);
View Full Code Here

TOP

Related Classes of entagged.tageditor.tools.renaming.data.stat.Statistic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.