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 TypeMethodDescriptionbooleanexists()get()A map of properties key by the idProperty enum in the model class for the referent object.booleanindicates 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, toMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:Referenceindicates 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:
isExpandedin classReference<T>- Returns:
- true
-
getIdProperties
Description copied from class:ReferenceA 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:
getIdPropertiesin classReference<T>- Returns:
- a map of id properties keyed by idProperty enum
-
referentClass
- Specified by:
referentClassin classReference<T>- Returns:
- the class of the referent object.
-
toString
-