Package org.jitterbit.util.name

Examples of org.jitterbit.util.name.Name


    }

    public KongaDataObject(KongaID id) {
        this.id = (id != null) ? id : ID_FACTORY.createID(this);
        try {
            nameObject = new Name(getNameValidator(this));
        } catch (IllegalNameException e) {
            // This should never happen. If it does the application is not
            // configured correctly.
            throw new RuntimeException("The application is not configured "
                            + "correctly. An attempt was made to create an instance of "
View Full Code Here


    }

    public KongaDataObject(KongaID id, String name, String desc) {
        this.id = (id != null) ? id : ID_FACTORY.createID(this);
        try {
            nameObject = new Name(name, getNameValidator(this));
        } catch (IllegalNameException e) {
            throw new IllegalArgumentException("The specified name is illegal: " + e.getMessage());
        }
        description = (desc == null) ? "" : desc;
    }
View Full Code Here

                KongaDataObject clone = (KongaDataObject) super.clone();
                clone.dataLock = new Object();
                if (propChangeManager != null) {
                    clone.propChangeManager = new PropertyChangeManager(clone);
                }
                clone.nameObject = new Name(nameObject);
                return clone;
            } catch (CloneNotSupportedException willNotHappen) {
                throw new RuntimeException(willNotHappen);
            }
        }
View Full Code Here

    public void setName(String name) throws IllegalNameException {
        if (name == null) {
            name = "";
        }
        name = name.trim();
        Name oldName = new Name(nameObject);
        if (this.nameObject.setName(name)) {
            // The name was changed.
            firePropertyChange(PROPERTY_NAME, oldName, this.nameObject);
        }
    }
View Full Code Here

TOP

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

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.