Class Expansions
java.lang.Object
com.atlassian.confluence.api.model.Expansions
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpansions
(Expansion... expansions) Expansions
(Iterable<Expansion> expansions) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
checkRecursiveExpansion
(String expansion) Checks to see if the passed in expansion string is expanded again somewhere in the expansions map.static String
Encode expand string to a format that conformsinvalid reference
com.atlassian.plugins.rest.common.expand.parameter.DefaultExpandParameter.ExpandKey
boolean
getSubExpansions
(String propertyName) int
hashCode()
boolean
isEmpty()
merge
(Expansions expansions) static Expansions
Create a new Expansions that prepends the propertyName to the path of all expansions represented in this Expansions object.toArray()
toString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Expansions
-
Expansions
-
-
Method Details
-
of
-
merge
-
merge
-
canExpand
-
getSubExpansions
-
prepend
Create a new Expansions that prepends the propertyName to the path of all expansions represented in this Expansions object.The new set of expansions will answer true to canExpand(propertyName) and getSubExpansions(propertyName) will return the original set of expansions.
- Parameters:
propertyName
- - the propertyName to prepend to the set of expansions- Returns:
- a new set of expansions with the propertyName at the root of the expansions.
-
toArray
-
isEmpty
public boolean isEmpty() -
toString
-
checkRecursiveExpansion
Checks to see if the passed in expansion string is expanded again somewhere in the expansions map. This check is used to prevent recursive expansions.- Parameters:
expansion
-
-
encode
Encode expand string to a format that conformsinvalid reference
com.atlassian.plugins.rest.common.expand.parameter.DefaultExpandParameter.ExpandKey
- Parameters:
expand
- single expand string that needs to encode- Returns:
- encoded expand string
-
equals
-
hashCode
public int hashCode()
-