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;

/**
 * Represents a comparison rule
 * 
 * @author naveen
 *
 */
public class CMPRuleDefinition extends ReusableMetaModelComponent {

        /**
         * 
         */
        private static final long serialVersionUID = 1L;

        /**
         * Relative path to Jython script 
         */
        private String script;
        
        /**
         * Editor's comments
         */
        private String description;
        
        /**
         * @param newID
         */
        public CMPRuleDefinition(long newID, String script) {
                super(newID);
                
                this.script = script;
        }

        /**
         * @return the script
         */
        public String getScript() {
                return script;
        }

        /**
         * @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 "CMPRuleDefinition [description=" + description + ", script="
                                + script + ", getID()=" + getID() + "]";
        }

}