Subversion Repositories SmartDukaan

Rev

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

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

import in.shop2020.metamodel.util.MetaModelComponent;

/**
 * Represents individual valid value in the enumerated list
 * @author naveen
 *
 */
public class EnumValue extends MetaModelComponent {

        /**
         * 
         */
        private static final long serialVersionUID = 1L;
        
        /**
         * Unique identifier
         */
        private long id;
        
        /**
         * One value from the enumerated list
         */
        private String value;

        private long helpDocDefinitionID;
        /**
         * 
         * @param id
         * @param value
         */
        public EnumValue(long id, String value) {
                this.id = id;
                this.value = value;
        }

        /**
         * @param id the id to set
         */
        public void setID(long id) {
                this.id = id;
        }

        /**
         * @return the id
         */
        public long getID() {
                return id;
        }

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

        /**
         * @return the value
         */
        public String getValue() {
                return value;
        }

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

    /**
     * @param helpDocDefinitionID the helpDocDefinitionID to set
     */
    public void setHelpDocDefinitionID(long helpDocDefinitionID) {
        this.helpDocDefinitionID = helpDocDefinitionID;
    }

    /**
     * @return the helpDocDefinitionID
     */
    public long getHelpDocDefinitionID() {
        return helpDocDefinitionID;
    }

}