public interface ObservableInfo extends ElementInfo
Modifier and Type | Method and Description |
---|---|
ComputedValueInfo |
asComputedValue()
Convert the Observable to a ComputedValue.
|
ComponentInfo |
getComponent()
Return the component for the Observable.
|
java.util.List<ObserverInfo> |
getObservers()
Return the list of observers for the Observable.
|
java.lang.Object |
getValue()
Return the value of the specified Observable.
|
boolean |
hasAccessor()
Return true if the specified Observable has an accessor.
|
boolean |
hasMutator()
Return true if the specified Observable has a mutator.
|
boolean |
isComputedValue()
Return true if the Observable is a ComputedValue.
|
void |
setValue(java.lang.Object value)
Set the value of the specified Observable.
|
getName, isDisposed
boolean isComputedValue()
Spy.isComputedValue(arez.Observable)
ComputedValueInfo asComputedValue()
isComputedValue()
returns true.Spy.asComputedValue(arez.Observable)
@Nonnull java.util.List<ObserverInfo> getObservers()
Observable
.Spy.getObservers(arez.Observable)
@Nullable ComponentInfo getComponent()
Arez.areNativeComponentsEnabled()
returns false.Spy.getComponent(arez.Observable)
boolean hasAccessor()
Arez.arePropertyIntrospectorsEnabled()
returns false.Spy.hasAccessor(arez.Observable)
@Nullable java.lang.Object getValue() throws java.lang.Throwable
Arez.arePropertyIntrospectorsEnabled()
returns true
and hasAccessor()
for the same element returns true.java.lang.Throwable
- if the property accessor throws an exception.Spy.getValue(arez.Observable)
boolean hasMutator()
Arez.arePropertyIntrospectorsEnabled()
returns false.Spy.hasMutator(arez.Observable)
void setValue(@Nullable java.lang.Object value) throws java.lang.Throwable
Arez.arePropertyIntrospectorsEnabled()
returns true
and hasMutator()
for the same element returns true.value
- the value to setjava.lang.Throwable
- if the property accessor throws an exception.Spy.setValue(arez.Observable, Object)