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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classProvides property names that can be used to expandJsonContentPropertyobjects. -
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.booleangetId()getKey()getValue()@Nullable VersioninthashCode()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
-