Class Expansion
- java.lang.Object
-
- com.atlassian.confluence.api.model.Expansion
-
- Direct Known Subclasses:
GraphQLQueryExpansion
@ExperimentalApi public class Expansion extends Object
Represents a property on a model object and the sub-properties of that property that should be filled in by the service when returning the model object. This allows the service to only provide as much information in the model as required by the requester.Use the
ExpansionsParser
to produce expansions from dot delimited strings.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<String,Expansion>
AS_EXPANSION
-
Constructor Summary
Constructors Constructor Description Expansion(String propertyName)
Expansion(String propertyName, Expansions subExpansions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Expansion
combine(Object... expansionParts)
Creates an Expansion made up of the given parts.boolean
equals(Object o)
String
getPropertyName()
Expansions
getSubExpansions()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Expansion
public Expansion(String propertyName)
-
Expansion
public Expansion(String propertyName, Expansions subExpansions)
-
-
Method Detail
-
getPropertyName
public String getPropertyName()
-
getSubExpansions
public Expansions getSubExpansions()
-
combine
public static Expansion combine(Object... expansionParts)
Creates an Expansion made up of the given parts. e.g calling combine("a", "b", "c") will return an Expansion for "a.b.c"
-
-