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 String
getBasicTypeName(Class<?> clazz)
String
getJsonValue()
org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata
getMetadata()
String
getName()
Properties
getProperties()
All properties except "required", which is handled inisRequired()
.String
getPropertiesJsonEncoded()
URL encoded value ofgetProperties()
to easier put that into an attribute.String
getRenderedValue()
String
getTypeName()
org.apache.sling.caconfig.management.ValueInfo<?>
getValueInfo()
boolean
isMultiValue()
boolean
isRequired()
boolean
isResourceExists()
-
-
-
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()
-
-