Subversion Repositories SmartDukaan

Rev

Rev 208 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 208 Rev 242
Line 2... Line 2...
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.creation.util;
4
package in.shop2020.creation.util;
5
 
5
 
6
import java.io.Serializable;
6
import java.io.Serializable;
-
 
7
import java.io.UnsupportedEncodingException;
-
 
8
import java.net.URLEncoder;
7
 
9
 
8
/**
10
/**
9
 * @author naveen
11
 * @author naveen
10
 *
12
 *
11
 */
13
 */
Line 43... Line 45...
43
	 */
45
	 */
44
	public String getLabel() {
46
	public String getLabel() {
45
		return label;
47
		return label;
46
	}
48
	}
47
	/**
49
	/**
-
 
50
	 * @return the label
-
 
51
	 */
-
 
52
	public String getEncodedLabel() {
-
 
53
		try {
-
 
54
			return URLEncoder.encode(label, "UTF-8");
-
 
55
		} catch (UnsupportedEncodingException e) {
-
 
56
			CreationUtils.getStackTrace(e);
-
 
57
			return "";
-
 
58
		}
-
 
59
	}
-
 
60
	/**
48
	 * @param type the type to set
61
	 * @param type the type to set
49
	 */
62
	 */
50
	public void setType(String type) {
63
	public void setType(String type) {
51
		this.type = type;
64
		this.type = type;
52
	}
65
	}