Package org.jitterbit.util.name

Examples of org.jitterbit.util.name.NameValidator


         */
        private class NameValidatorImpl implements NameValidator {

            @Override
            public void validateName(String name) throws IllegalNameException {
                NameValidator validator = NameValidatorStore.getInstance().get(itemToMove);
                if (validator != null) {
                    validator.validateName(name);
                }
                if (!EntityUtils.isChildNameUnique(newOwner, name)) {
                    String msg = format("DuplicateName.Message", name);
                    throw new IllegalNameException(msg);
                }
View Full Code Here


        inputForm.addValidInputSensor(e);
    }

    private boolean isProjectNameValid() {
        try {
            NameValidator validator = NameValidatorStore.getInstance().get(IntegrationEntity.class);
            validator.validateName(currentProjectName);
            return true;
        } catch (IllegalNameException e) {
            return false;
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.util.name.NameValidator

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.