Property | Type | Description | |
---|---|---|---|
_validator | IFn |
Method | Description | |
---|---|---|
ARef ( ) : System |
Initializes an
|
|
ARef ( IPersistentMap meta ) : System |
Initializes an
|
|
deref ( ) : object |
Gets the (immutable) value the reference is holding.
|
|
getValidator ( ) : IFn |
Gets the validator.
|
|
getWatches ( ) : IPersistentMap |
Gets a map of watchers (key=Agent, value=IFn).
|
|
notifyWatches ( ) : void |
Notify all watchers.
|
|
setValidator ( IFn vf ) : void |
Sets the validator. The current value must validate in order for this validator to be accepted. If not, an exception will be thrown. |
Method | Description | |
---|---|---|
Validate ( IFn vf, object val ) : void |
Invoke an Uneventful return marks a successful validation. To indicate a failed validation, the validation function should return This appears in multiple places. Should find it a common home? |
|
Validate ( object val ) : void |
Call the reference's validator on the given value.
|
Method | Description | |
---|---|---|
addWatch ( |
||
removeWatch ( |
public ARef ( IPersistentMap meta ) : System | ||
meta | IPersistentMap | The metadata to use |
return | System |
protected static Validate ( IFn vf, object val ) : void | ||
vf | IFn | The |
val | object | The value to validate. |
return | void |
protected Validate ( object val ) : void | ||
val | object | The value to validate |
return | void |
public setValidator ( IFn vf ) : void | ||
vf | IFn | The new validtor |
return | void |