Class MetadataProperty
- java.lang.Object
-
- com.atlassian.confluence.api.extension.MetadataProperty
-
public class MetadataProperty extends Object
Describes a meta-data property that's returned fromModelMetadataProvider
.- Since:
- 6.12.0
-
-
Constructor Summary
Constructors Constructor Description MetadataProperty(String propertyName, Type propertyType)
MetadataProperty(String propertyName, List<MetadataProperty> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MetadataProperty>
getChildren()
Get the child properties, that are specified without a java type.String
getPropertyName()
Get the name of the property.@Nullable Type
getPropertyType()
Get the java type of the property, or null if there are child properties instead.
-
-
-
Constructor Detail
-
MetadataProperty
public MetadataProperty(String propertyName, List<MetadataProperty> children)
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
Get the name of the property.
-
getPropertyType
public @Nullable Type getPropertyType()
Get the java type of the property, or null if there are child properties instead. The type may be a simple type (String, Integer etc), or a complex type annotated with json serialization annotations.
-
getChildren
public List<MetadataProperty> getChildren()
Get the child properties, that are specified without a java type. A property that has a propertyType will not have dynamic child properties.
-
-