View Javadoc

1   /*
2    * Copyright (c) 2005, Mike Heath
3    * All rights reserved.
4    * 
5    * Redistribution and use in source and binary forms, with or without modification, are permitted
6    * provided that the following conditions are met:
7    * 
8    *     * Redistributions of source code must retain the above copyright notice, this list of conditions
9    *       and the following disclaimer.
10   *     * Redistributions in binary form must reproduce the above copyright notice, this list of
11   *       conditions and the following disclaimer in the documentation and/or other materials provided
12   *       with the distribution.
13   *     * The names of its contributors may not be used to endorse or promote products derived from this
14   *       software without specific prior written permission.
15   * 
16   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20   * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27   */
28  package net.sf.cssbean;
29  
30  /***
31   * @author Mike Heath <elcapo@gmail.com>
32   */
33  public enum Weight implements Value {
34  	NORMAL("normal"),
35  	BOLD("bold"),
36  	BOLDER("bolder"),
37  	LIGHTER("lighter"),
38  	WEIGHT_100("100"),
39  	WEIGHT_200("200"),
40  	WEIGHT_300("300"),
41  	WEIGHT_400("400"),
42  	WEIGHT_500("500"),
43  	WEIGHT_600("600"),
44  	WEIGHT_700("700"),
45  	WEIGHT_800("800"),
46  	WEIGHT_900("900");
47  	
48  	private final String value;
49  	
50  	private Weight(String value) {
51  		this.value = value;
52  	}
53  	
54  	public String getValue() {
55  		return value;
56  	}
57  
58  }