Class JsonContentProperty
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.JsonContentProperty
-
- All Implemented Interfaces:
NavigationAware
@ExperimentalApi public class JsonContentProperty extends Object implements NavigationAware
Container for arbitrary JSON data attached to someContent.- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonContentProperty.ContentPropertyBuilderstatic classJsonContentProperty.ExpansionsProvides property names that can be used to expandJsonContentPropertyobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonContentProperty.ContentPropertyBuilderbuilder()Creates a builder.static JsonContentProperty.ContentPropertyBuilderbuilder(JsonContentProperty propertyTemplate)Creates a builder, initialized from the given template.static Reference<JsonContentProperty>buildReference(@Nullable JsonContentPropertyId id)Creates a collapsed reference to a JsonContentProperty with the given id, or an empty reference, if none was given.booleanequals(Object o)ContentgetContent()Reference<Content>getContentRef()JsonContentPropertyIdgetId()StringgetKey()JsonStringgetValue()@Nullable VersiongetVersion()inthashCode()Navigation.BuilderresolveNavigation(NavigationService navigationService)StringtoString()
-
-
-
Method Detail
-
builder
public static JsonContentProperty.ContentPropertyBuilder builder()
Creates a builder.- Returns:
- the builder
-
builder
public static JsonContentProperty.ContentPropertyBuilder builder(JsonContentProperty propertyTemplate)
Creates a builder, initialized from the given template.- Parameters:
propertyTemplate- the template to build from- Returns:
- the builder
-
buildReference
public static Reference<JsonContentProperty> buildReference(@Nullable JsonContentPropertyId id)
Creates a collapsed reference to a JsonContentProperty with the given id, or an empty reference, if none was given.- Parameters:
id- the content property id. Can be null.- Returns:
- the reference.
-
getId
public JsonContentPropertyId getId()
- Returns:
- the id of this content property.
-
getContentRef
public Reference<Content> getContentRef()
- Returns:
- a reference to the content this property is part of.
-
getContent
public Content getContent()
- Returns:
- a reference to the content this property is part of.
-
getKey
public String getKey()
- Returns:
- the key of this content property.
-
getValue
public JsonString getValue()
- Returns:
- the value of this content property
-
getVersion
public @Nullable Version getVersion()
- Returns:
- the version. Can be null.
-
resolveNavigation
public Navigation.Builder resolveNavigation(NavigationService navigationService)
- Specified by:
resolveNavigationin interfaceNavigationAware
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-