Class ExpandedReference<T>
- java.lang.Object
-
- com.atlassian.confluence.api.model.reference.Reference<T>
-
- com.atlassian.confluence.api.model.reference.ExpandedReference<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<T>asOptional()booleanexists()Tget()Map<Object,Object>getIdProperties()A map of properties key by the idProperty enum in the model class for the referent object.booleanisExpanded()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<T>iterator()ClassreferentClass()StringtoString()-
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 Detail
-
get
public T get()
-
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
public Map<Object,Object> 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
public Class referentClass()
- Specified by:
referentClassin classReference<T>- Returns:
- the class of the referent object.
-
-