Class JsonContentProperty
- java.lang.Object
-
- com.atlassian.confluence.api.model.content.JsonContentProperty
-
- All Implemented Interfaces:
NavigationAware
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 class
JsonContentProperty.ContentPropertyBuilder
static class
JsonContentProperty.Expansions
Provides property names that can be used to expandJsonContentProperty
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonContentProperty.ContentPropertyBuilder
builder()
Creates a builder.static JsonContentProperty.ContentPropertyBuilder
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
equals(Object o)
Content
getContent()
Reference<Content>
getContentRef()
JsonContentPropertyId
getId()
String
getKey()
JsonString
getValue()
@Nullable Version
getVersion()
int
hashCode()
Navigation.Builder
resolveNavigation(NavigationService navigationService)
String
toString()
-
-
-
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:
resolveNavigation
in interfaceNavigationAware
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-