Package org.jitterbit.util.name

Examples of org.jitterbit.util.name.IllegalNameException


    }

    private void checkName() throws IllegalNameException {
        String name = getName();
        if (!EntityUtils.isNameUnique(this, name)) {
            throw new IllegalNameException("The name \"" + name + "\" is already in use.");
        }
        NameValidator v = NameValidatorStore.getInstance().get(this);
        if (v != null) {
            v.validateName(name);
        }
View Full Code Here


                if (validator != null) {
                    validator.validateName(name);
                }
                if (!EntityUtils.isNameUnique(entity, name)) {
                    String msg = format("DuplicateName.Message", name);
                    throw new IllegalNameException(msg);
                }
            }
        };
    }
View Full Code Here

                    // Without this block that name would be treated as invalid.
                    continue;
                }
                if (entity.getClass().equals(item.getClass())) {
                    if (entity.getName().equals(name)) {
                        throw new IllegalNameException("The name '" + name + "' is already in use.");
                    }
                }
            }
        }
View Full Code Here

                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

        }
    }

    private void ensureNameIsUnique(IntegrationEntity newOwner, String newName) throws IllegalNameException {
        if (!EntityUtils.isChildNameUnique(newOwner, newName)) {
            throw new IllegalNameException("The name " + newName + " is already taken.");
        }
    }
View Full Code Here

TOP

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

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.