public class GetPropertyTag
extends javax.servlet.jsp.tagext.TagSupport
Constructor and Description |
---|
GetPropertyTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
protected ClassLoader |
getClassLoader()
Method for retrieving the classloader from the OSGi console.
|
Object |
getDefaultValue()
Gets the default value to return if no value exists for the key.
|
String |
getKey()
Gets key to retrieve the value from from the ValueMap.
|
org.apache.sling.api.resource.ValueMap |
getProperties()
Gets the ValueMap from which to retrieve the value.
|
String |
getReturnClass()
Gets the name of class into which to coerce the returned value.
|
String |
getVar()
Gets the variable name to which to save the value
|
void |
setDefaultValue(Object defaultValue)
Sets the default value to return if no value exists for the key.
|
void |
setKey(String key)
Sets the key to retrieve the value from from the ValueMap.
|
void |
setProperties(org.apache.sling.api.resource.ValueMap properties)
Sets the ValueMap from which to retrieve the value.
|
void |
setReturnClass(String returnClass)
Sets the name of class into which to coerce the returned value.
|
void |
setVar(String var)
Sets the variable name to which to save the value.
|
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
protected ClassLoader getClassLoader()
public Object getDefaultValue()
public String getKey()
public org.apache.sling.api.resource.ValueMap getProperties()
public String getReturnClass()
public String getVar()
public void setDefaultValue(Object defaultValue)
defaultValue
- the default valuepublic void setKey(String key)
key
- the keypublic void setProperties(org.apache.sling.api.resource.ValueMap properties)
properties
- the ValueMap of propertiespublic void setReturnClass(String returnClass)
returnClass
- the class namepublic void setVar(String var)
var
- the variable nameCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.