Package org.jitterbit.integration.data.location.file

Examples of org.jitterbit.integration.data.location.file.RenamedFileName


    }
   
    @Test
    public void ensureGetAndSetRenameFileToWorks() {
        TestDataUtils.testGetterAndSetter(loc, FileLocation.PROPERTY_RENAME_FILE, "getRenameFileTo", "setRenameFileTo",
                        new RenamedFileName(null), new RenamedFileName("processed.txt"));
    }
View Full Code Here


     * <b>TODO:</b> More tags?
     *
     * @return a new file name, such as <code>[file]_fetched_[time]-[date].txt</code>.
     */
    public final RenamedFileName getRenameFileTo() {
        return new RenamedFileName(getProperty(PROPERTY_RENAME_FILE));
    }
View Full Code Here

     * <LI><code>[date]</code>: the date of the transfer</LI>
     * </UL>
     * <b>TODO:</b> More tags?
     */
    public final void setRenameFileTo(RenamedFileName renameTo) {
        RenamedFileName old;
        synchronized (getDataLock()) {
            old = getRenameFileTo();
            setProperty(PROPERTY_RENAME_FILE, renameTo);
        }
        if (!old.equals(renameTo)) {
            firePropertyChange(PROPERTY_RENAME_FILE, old, renameTo);
        }
    }
View Full Code Here

            firePropertyChange(PROPERTY_RENAME_FILE, old, renameTo);
        }
    }

    public final void setRenameFileTo(String renameTo) {
        setRenameFileTo(new RenamedFileName(renameTo));
    }
View Full Code Here

    }

    private RenamedFileName getRenameFileTo() {
        String name = deleteSourceFileOption.isSelected() ? FileLocation.DELETE_SOURCE_MARKER :
            renameFileToField.getValue().trim();
        return new RenamedFileName(name);
    }
View Full Code Here

            setTextWhenEmpty(Strings.get("File.RenameFile.Example"));
        }

        @Override
        protected Set<ValidationIssue> getValidationIssues(String value) {
            return new RenamedFileName(value).validate();
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.location.file.RenamedFileName

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.