Subversion Repositories SmartDukaan

Rev

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

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

/**
 * Used to represent 3-state machine where ever applicable
 * 
 * @author naveen
 *
 */
public enum EditorialImportance {
        MANDATORY,
        RECOMMENDED,
        OPTIONAL;
        
        /**
         * @return String representation
         */
        public String toString() {
                String text = "";
                if(this == EditorialImportance.MANDATORY) {
                        text = "Mandatory";
                }
                else if(this == EditorialImportance.RECOMMENDED) {
                        text = "Recommended";
                }
                else if(this == EditorialImportance.OPTIONAL) {
                        text = "Optional";
                }
                
                return text;
        }
}