Package org.simplestructruedata.entities

Source Code of org.simplestructruedata.entities.SSDObject

/**
*
*/
package org.simplestructruedata.entities;

import org.simplestructruedata.exception.SSDIllegalIdentifier;


/**
* @author Jean Villete
*
*/
public abstract class SSDObject {

    private String              identifier;


    public SSDObject(String identifier) {
        identifier = identifier.trim();
        if (identifier ==  null || identifier.length() < 1) {
            throw new SSDIllegalIdentifier("identifier argument can't be null or empty");
        }
        this.identifier = identifier;
    }

    // GETTERS AND SETTERS //
    public String getIdentifier() {
        return identifier;
    }
 
}
TOP

Related Classes of org.simplestructruedata.entities.SSDObject

TOP
Copyright © 2018 www.massapi.com. 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.