001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>text-decoration</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_text_text-decoration.asp">CSS text-decoration Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum TextDecoration implements Serializable {
013    
014            /**
015             * Defines a normal text. This is default.
016             */
017            NONE,
018    
019            /**
020             * Defines a line below the text.
021             */
022            UNDERLINE,
023    
024            /**
025             * Defines a line above the text.
026             */
027            OVERLINE,
028    
029            /**
030             * Defines a line through the text.
031             */
032            LINE_THROUGH,
033    
034            /**
035             * Defines a blinking text.
036             */
037            BLINK,
038    
039            /**
040             * Specifies that the value of the text-decoration property should be inherited from the parent element.
041             */
042            INHERIT;
043    
044            @Override
045            public String toString() {
046                    return name().toLowerCase().replace("_", "-");
047            }
048    
049    }