Subversion Repositories SmartDukaan

Rev

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

Rev 479 Rev 500
Line 5... Line 5...
5
 
5
 
6
import in.shop2020.metamodel.util.MetaModelComponent;
6
import in.shop2020.metamodel.util.MetaModelComponent;
7
 
7
 
8
import java.io.UnsupportedEncodingException;
8
import java.io.UnsupportedEncodingException;
9
import java.net.URLEncoder;
9
import java.net.URLEncoder;
-
 
10
import java.util.StringTokenizer;
10
 
11
 
11
/**
12
/**
12
 * @author naveen
13
 * @author naveen
13
 *
14
 *
14
 */
15
 */
Line 100... Line 101...
100
	 */
101
	 */
101
	public String getLocation() {
102
	public String getLocation() {
102
		return location;
103
		return location;
103
	}
104
	}
104
 
105
 
-
 
106
	public String getYoutubeId(){
-
 
107
		StringTokenizer token = new StringTokenizer(location,"?v=");
-
 
108
		if(token.countTokens() == 2){
-
 
109
			token.nextToken();
-
 
110
			return token.nextToken();
-
 
111
		}
-
 
112
		return "";
-
 
113
	}
-
 
114
	
105
	/**
115
	/**
106
	 * @param fileName the fileName to set
116
	 * @param fileName the fileName to set
107
	 */
117
	 */
108
	public void setFileName(String fileName) {
118
	public void setFileName(String fileName) {
109
		this.fileName = fileName;
119
		this.fileName = fileName;