Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 0e0cecc2047998b38378ce939899e8562b77cbe5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.eclipse.jst.jsp.core.internal.taglib;


/**
 * Contains info about a TaglibVariable: classname, variablename.
 * @author pavery
 */
public class TaglibVariable {
    
	private String fVarClass = null;
	private String fVarName = null;
	private final String ENDL = "\n"; //$NON-NLS-1$
	/**
	 * 
	 */
	public TaglibVariable(String varClass, String varName) {
		setVarClass(varClass);
		setVarName(varName);
	}
	/**
	 * @return Returns the fVarClass.
	 */
	public final String getVarClass() {
		return fVarClass;
	}
	/**
	 * @param varClass The fVarClass to set.
	 */
	public final void setVarClass(String varClass) {
		fVarClass = varClass;
	}
	/**
	 * @return Returns the fVarName.
	 */
	public final String getVarName() {
		return fVarName;
	}
	/**
	 * @param varName The fVarName to set.
	 */
	public final void setVarName(String varName) {
		fVarName = varName;
	}
	
	/**
	 * Convenience method.
	 * @return
	 */
	public final String getDeclarationString() {
		return getVarClass() + " " + getVarName() + " = null;" + ENDL; //$NON-NLS-1$ //$NON-NLS-2$
	}
}

Back to the top