001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>text-transform</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_text_text-transform.asp">CSS text-transform Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum TextTransform implements Serializable {
013    
014            /**
015             * No capitalization. The text renders as it is. This is default.
016             */
017            NONE,
018    
019            /**
020             * Transforms the first character of each word to uppercase.
021             */
022            CAPITALIZE,
023    
024            /**
025             * Transforms all characters to uppercase.
026             */
027            UPPERCASE,
028    
029            /**
030             * Transforms all characters to lowercase.
031             */
032            LOWERCASE,
033    
034            /**
035             * Specifies that the value of the text-transform property should be inherited from the parent element.
036             */
037            INHERIT;
038    
039            @Override
040            public String toString() {
041                    return name().toLowerCase();
042            }
043    
044    }