Class CAConfigModel.PropertyInfo
- java.lang.Object
-
- com.composum.sling.nodes.components.CAConfigModel.PropertyInfo
-
- Enclosing class:
- CAConfigModel
public class CAConfigModel.PropertyInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyInfo(String name, org.apache.sling.caconfig.management.ValueInfo<?> valueInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBasicTypeName(Class<?> clazz)StringgetJsonValue()org.apache.sling.caconfig.spi.metadata.ConfigurationMetadatagetMetadata()StringgetName()PropertiesgetProperties()All properties except "required", which is handled inisRequired().StringgetPropertiesJsonEncoded()URL encoded value ofgetProperties()to easier put that into an attribute.StringgetRenderedValue()StringgetTypeName()org.apache.sling.caconfig.management.ValueInfo<?>getValueInfo()booleanisMultiValue()booleanisRequired()booleanisResourceExists()
-
-
-
Field Detail
-
valueInfo
protected final org.apache.sling.caconfig.management.ValueInfo<?> valueInfo
-
name
protected final String name
-
metadata
protected final org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata metadata
-
-
Constructor Detail
-
PropertyInfo
public PropertyInfo(String name, org.apache.sling.caconfig.management.ValueInfo<?> valueInfo)
-
-
Method Detail
-
getValueInfo
public org.apache.sling.caconfig.management.ValueInfo<?> getValueInfo()
-
getName
public String getName()
-
getMetadata
public org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata getMetadata()
-
isResourceExists
public boolean isResourceExists()
-
isMultiValue
public boolean isMultiValue()
-
getJsonValue
public String getJsonValue()
-
getRenderedValue
public String getRenderedValue()
-
isRequired
public boolean isRequired()
-
getProperties
public Properties getProperties()
All properties except "required", which is handled inisRequired().
-
getPropertiesJsonEncoded
public String getPropertiesJsonEncoded() throws UnsupportedEncodingException
URL encoded value ofgetProperties()to easier put that into an attribute.- Throws:
UnsupportedEncodingException
-
getTypeName
public String getTypeName()
-
-