Class JsonContentProperty
java.lang.Object
com.atlassian.confluence.api.model.content.JsonContentProperty
- All Implemented Interfaces:
NavigationAware
Container for arbitrary JSON data attached to some
Content
.- Since:
- 5.6
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Provides property names that can be used to expandJsonContentProperty
objects. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder.builder
(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.boolean
getId()
getKey()
getValue()
@Nullable Version
int
hashCode()
resolveNavigation
(NavigationService navigationService) toString()
-
Method Details
-
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
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
- Returns:
- the id of this content property.
-
getContentRef
- Returns:
- a reference to the content this property is part of.
-
getContent
- Returns:
- a reference to the content this property is part of.
-
getKey
- Returns:
- the key of this content property.
-
getValue
- Returns:
- the value of this content property
-
getVersion
- Returns:
- the version. Can be null.
-
equals
-
hashCode
public int hashCode() -
toString
-