Package org.codehaus.groovy.binding
Class AbstractFullBinding
- java.lang.Object
-
- org.codehaus.groovy.binding.AbstractFullBinding
-
- All Implemented Interfaces:
BindingUpdatable,FullBinding
- Direct Known Subclasses:
AbstractSyntheticBinding,PropertyPathFullBinding
public abstract class AbstractFullBinding extends java.lang.Object implements FullBinding
- Since:
- Groovy 1.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Closureconverterprotected ClosurereverseConverterprotected SourceBindingsourceBindingprotected TargetBindingtargetBindingprotected Closurevalidator
-
Constructor Summary
Constructors Constructor Description AbstractFullBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClosuregetConverter()ClosuregetReverseConverter()SourceBindinggetSourceBinding()TargetBindinggetTargetBinding()ClosuregetValidator()voidreverseUpdate()If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoidsetConverter(Closure converter)voidsetReverseConverter(Closure reverseConverter)voidsetSourceBinding(SourceBinding sourceBinding)voidsetTargetBinding(TargetBinding targetBinding)voidsetValidator(Closure validator)voidupdate()Causes the values to be propagated from the source to the target-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.groovy.binding.BindingUpdatable
bind, rebind, unbind
-
-
-
-
Field Detail
-
sourceBinding
protected SourceBinding sourceBinding
-
targetBinding
protected TargetBinding targetBinding
-
validator
protected Closure validator
-
converter
protected Closure converter
-
reverseConverter
protected Closure reverseConverter
-
-
Method Detail
-
update
public void update()
Description copied from interface:BindingUpdatableCauses the values to be propagated from the source to the target- Specified by:
updatein interfaceBindingUpdatable
-
reverseUpdate
public void reverseUpdate()
Description copied from interface:BindingUpdatableIf supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrown- Specified by:
reverseUpdatein interfaceBindingUpdatable
-
getSourceBinding
public SourceBinding getSourceBinding()
- Specified by:
getSourceBindingin interfaceFullBinding
-
setSourceBinding
public void setSourceBinding(SourceBinding sourceBinding)
- Specified by:
setSourceBindingin interfaceFullBinding
-
getTargetBinding
public TargetBinding getTargetBinding()
- Specified by:
getTargetBindingin interfaceFullBinding
-
setTargetBinding
public void setTargetBinding(TargetBinding targetBinding)
- Specified by:
setTargetBindingin interfaceFullBinding
-
getValidator
public Closure getValidator()
- Specified by:
getValidatorin interfaceFullBinding
-
setValidator
public void setValidator(Closure validator)
- Specified by:
setValidatorin interfaceFullBinding
-
getConverter
public Closure getConverter()
- Specified by:
getConverterin interfaceFullBinding
-
setConverter
public void setConverter(Closure converter)
- Specified by:
setConverterin interfaceFullBinding
-
getReverseConverter
public Closure getReverseConverter()
- Specified by:
getReverseConverterin interfaceFullBinding
-
setReverseConverter
public void setReverseConverter(Closure reverseConverter)
- Specified by:
setReverseConverterin interfaceFullBinding
-
-