public interface Attribute extends ConfigurationObject
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue(Template template,
java.lang.String attributeName,
PObject requestJsonAttributes)
Get the attribute value.
|
java.lang.Class |
getValueType()
Get the class of the value.
|
void |
printClientConfig(org.json.JSONWriter json,
Template template)
Write this attribute out the the json writer so that clients can know what attributes are expected.
|
void |
setConfigName(java.lang.String name)
Set the name of the attribute as set in the configuration file.
|
validatevoid printClientConfig(org.json.JSONWriter json,
Template template)
throws org.json.JSONException
json - the json writer to write totemplate - the template that this attribute is part oforg.json.JSONExceptionvoid setConfigName(java.lang.String name)
name - the name of the attributejava.lang.Class getValueType()
java.lang.Object getValue(@Nonnull
Template template,
@Nonnull
java.lang.String attributeName,
@Nonnull
PObject requestJsonAttributes)
template - the template of the current request.attributeName - the name of the attributerequestJsonAttributes - the json data for populating the attribute values