001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>clear</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_class_clear.asp">http://www.w3schools.com/cssref/pr_class_clear.asp</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum Clear implements Serializable {
013    
014            /**
015             * No floating elements allowed on the left side.
016             */
017            LEFT,
018    
019            /**
020             * No floating elements allowed on the right side.
021             */
022            RIGHT,
023    
024            /**
025             * No floating elements allowed on either the left or the right side.
026             */
027            BOTH,
028    
029            /**
030             * Default. Allows floating elements on both sides.
031             */
032            NONE,
033    
034            /**
035             * Specifies that the value of the clear 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    }