Subversion Repositories SmartDukaan

Rev

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

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

import in.shop2020.metamodel.util.ReusableMetaModelComponent;

/**
 * Defines core object Feature in shop2020 content meta-model
 * @author naveen
 *
 */
public class FeatureDefinition extends ReusableMetaModelComponent {
        /**
         * 
         */
        private static final long serialVersionUID = 1L;
        
        /**
         * Intuitive label
         */
        private String label;
        
        /**
         * Editorial comments
         */
        private String description;
        
        /**
         * If yes, Feature need not have any bullets
         */
        private boolean allowsBlank;
        
        /**
         * Instance of BulletDefinition object
         */
        private BulletDefinition bulletDefinition;

        /**
         * Storing indexed info for featured.. 
         * These features will be ignored for solr serach. 
         */
        private boolean indexed = true;
        
        public boolean isIndexed() {
                return indexed;
        }

        public void setIndexed(boolean indexed) {
                this.indexed = indexed;
        }



        /**
         * Optional normalization rule definition ID
         */
        private long normalizationRuleDefinitionID;
        
        /**
         * Optional argument to add help docs id
         */
        private long helpDocDefinitionID;
        
        /**
         * 
         * @param newID
         */
        public FeatureDefinition(long newID, String label) {
                super(newID);
                this.label = label;
        }

        /**
         * 
         * @return label
         */
        public String getLabel() {
                return this.label;
        }
        
        /**
         * 
         * @param value
         */
        public void setLabel(String value) {
                this.label = value;
        }

        /**
         * 
         * @return description
         */
        public String getDescription() {
                return this.description;
        }
        
        /**
         * 
         * @param value
         */
        public void setDescription(String value) {
                this.description = value;
        }
        
        /**
         * 
         * @param value
         */
        public void setAllowsBlank(boolean value) {
                this.allowsBlank = value;
        }
        
        /**
         * 
         * @return boolean
         */
        public boolean allowsBlank() {
                return this.allowsBlank;
        }

        /**
         * @param bulletDefinition the bulletDefinition to set
         */
        public void setBulletDefinition(BulletDefinition bulletDefinition) {
                this.bulletDefinition = bulletDefinition;
        }

        /**
         * @return the bulletDefinition
         */
        public BulletDefinition getBulletDefinition() {
                return bulletDefinition;
        }

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

        /**
         * @return the normalizationRuleDefinitionID
         */
        public long getNormalizationRuleDefinitionID() {
                return normalizationRuleDefinitionID;
        }
        
        /**
         * 
         * @param helpDocDefinitionID
         */
        public void setHelpDocDefinitionID(long helpDocDefinitionID) {
        this.helpDocDefinitionID = helpDocDefinitionID;
    }

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



        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
                return "FeatureDefinition [allowsBlank=" + allowsBlank
                                + ", bulletDefinition=" + bulletDefinition + ", description="
                                + description + ", label=" + label
                                + ", normalizationRuleDefinitionID="
                                + normalizationRuleDefinitionID + "]";
        }

    }