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()
boolean
exists()
T
get()
Map<Object,Object>
getIdProperties()
A map of properties key by the idProperty enum in the model class for the referent object.boolean
isExpanded()
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()
Class
referentClass()
String
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 Detail
-
get
public T get()
-
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
public Map<Object,Object> 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
public Class referentClass()
- Specified by:
referentClass
in classReference<T>
- Returns:
- the class of the referent object.
-
-