com.atlassian.confluence.api.model.content
Class JsonContentProperty

java.lang.Object
  extended by 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 some Content.

Since:
5.6

Nested Class Summary
static class JsonContentProperty.ContentPropertyBuilder
           
static class JsonContentProperty.Expansions
          Provides property names that can be used to expand JsonContentProperty objects.
 
Method Summary
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(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()
           
 Version getVersion()
           
 int hashCode()
           
 Navigation.Builder resolveNavigation(NavigationService navigationService)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

getKey

public String getKey()
Returns:
the key of this content property.

getValue

public JsonString getValue()
Returns:
the value 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.

getVersion

@Nullable
public Version getVersion()
Returns:
the version. Can be null.

resolveNavigation

public Navigation.Builder resolveNavigation(NavigationService navigationService)
Specified by:
resolveNavigation in interface NavigationAware

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.