Subversion Repositories SmartDukaan

Rev

Rev 323 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/**
 * 
 */
package in.shop2020.metamodel.definitions;

import in.shop2020.metamodel.util.ReusableMetaModelComponent;

/**
 * Base class for various types of data objects in shop2020 content model
 * 
 * @author naveen
 *
 */
public class DatatypeDefinition extends ReusableMetaModelComponent {

        /**
         * 
         */
        private static final long serialVersionUID = 1L;
        
        /**
         * Intuitive name based on category of product
         */
        private String name;
        
        /**
         * Editor's comments
         */
        private String description;

        /**
         * 
         * @param newID
         * @param name
         */
        public DatatypeDefinition(long newID, String name) {
                super(newID);
                this.name = name;
        }

        /**
         * @param name the name to set
         */
        public void setName(String name) {
                this.name = name;
        }

        /**
         * @return the name
         */
        public String getName() {
                return name;
        }

        /**
         * @param description the description to set
         */
        public void setDescription(String description) {
                this.description = description;
        }

        /**
         * @return the description
         */
        public String getDescription() {
                return description;
        }


        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
                return "DatatypeDefinition [description=" + description + ", name="
                                + name + ", id=" + id + "]";
        }

}