Class ExpandedReference<T>
java.lang.Object
com.atlassian.confluence.api.model.reference.Reference<T>
com.atlassian.confluence.api.model.reference.ExpandedReference<T>
- All Implemented Interfaces:
Iterable<T>
An expanded reference has a value, call get() will return that referent value.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
get()
A map of properties key by the idProperty enum in the model class for the referent object.boolean
indicates a reference is expanded and can be resolved to an object by calling get, or whether the reference is collapsed and calling get will throw an exception.iterator()
toString()
Methods inherited from class com.atlassian.confluence.api.model.reference.Reference
collapsed, collapsed, collapsed, empty, equals, existsAndExpanded, getIdProperty, hashCode, orEmpty, orEmpty, to
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
-
get
-
asOptional
-
exists
public boolean exists() -
isExpanded
public boolean isExpanded()Description copied from class:Reference
indicates a reference is expanded and can be resolved to an object by calling get, or whether the reference is collapsed and calling get will throw an exception.- Specified by:
isExpanded
in classReference<T>
- Returns:
- true
-
getIdProperties
Description copied from class:Reference
A map of properties key by the idProperty enum in the model class for the referent object. The map contains properties sufficient to identify the referent object.- Specified by:
getIdProperties
in classReference<T>
- Returns:
- a map of id properties keyed by idProperty enum
-
referentClass
- Specified by:
referentClass
in classReference<T>
- Returns:
- the class of the referent object.
-
toString
-