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

java.lang.Object
  extended by com.atlassian.confluence.api.model.content.JsonContentProperty

@ExperimentalApi
public class JsonContentProperty
extends java.lang.Object

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(java.lang.Object o)
           
 Content getContent()
           
 Reference<Content> getContentRef()
           
 JsonContentPropertyId getId()
           
 java.lang.String getKey()
           
 JsonString getValue()
           
 Version getVersion()
           
 int hashCode()
           
 java.lang.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 java.lang.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.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.