Package org.jitterbit.integration.data

Examples of org.jitterbit.integration.data.ProjectNameValidator


    private boolean validateProjectName() {
        String newName = params.getNewProjectName();
        if (newName != null) {
            try {
                new ProjectNameValidator().validateName(newName);
            } catch (IllegalNameException e) {
                Alert.error(e.getMessage(), "Invalid New Project Name");
                return false;
            }
        }
View Full Code Here


    }

    private void installNameValidators() {
        NameValidatorStore nameValidators = NameValidatorStore.getInstance();
        nameValidators.put(IntegrationEntity.class, new DefaultIntegrationNameValidator());
        nameValidators.put(IntegrationProject.class, new ProjectNameValidator());
    }
View Full Code Here

    }

    private String getNewProjectName(File dir) throws CommandException {
        try {
            String projectName = dir.getName();
            ProjectNameValidator validator = new ProjectNameValidator();
            validator.validateName(projectName);
            return projectName;
        } catch (IllegalNameException ex) {
            throw new CommandException(ex.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.ProjectNameValidator

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.