Package sc.type

Class AbstractBeanMapper

    • Constructor Detail

      • AbstractBeanMapper

        public AbstractBeanMapper()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • addBindingListener

        public void addBindingListener​(java.lang.Object eventObject,
                                       IListener listener,
                                       int event)
        Specified by:
        addBindingListener in interface IBinding
      • invalidateBinding

        public void invalidateBinding​(java.lang.Object obj,
                                      boolean sendEvent,
                                      int event,
                                      boolean includeParams)
        Specified by:
        invalidateBinding in interface IBinding
      • applyBinding

        public boolean applyBinding​(java.lang.Object obj,
                                    java.lang.Object val,
                                    IBinding src,
                                    boolean refresh,
                                    boolean pendingChild0)
        Specified by:
        applyBinding in interface IBinding
      • applyReverseBinding

        public void applyReverseBinding​(java.lang.Object obj,
                                        java.lang.Object val,
                                        java.lang.Object src)
        Specified by:
        applyReverseBinding in interface IBinding
      • performCast

        public abstract java.lang.Object performCast​(java.lang.Object val)
        Specified by:
        performCast in interface IBinding
      • removeListener

        public void removeListener()
        This method is part of the IBinding contract which BeanMapper does not need to implement. This IBinding implementation adds/removes bindings via bindListener
        Specified by:
        removeListener in interface IBinding
      • initializeBinding

        public java.lang.Object initializeBinding()
        This method is not applicable to global binding objects like this one
        Specified by:
        initializeBinding in interface IBinding
      • isConstant

        public abstract boolean isConstant()
        Specified by:
        isConstant in interface IBinding
      • parentBindingChanged

        public void parentBindingChanged()
        Description copied from interface: IBinding
        Called from the VariableBinding when the parent's value has changed. E.g. for "a.b", b.parentBindingChanged() is called when we detect changes on 'a'.
        Specified by:
        parentBindingChanged in interface IBinding
      • activate

        public void activate​(boolean state,
                             java.lang.Object obj,
                             boolean chained)
        Description copied from interface: IBinding
        Called to deactive/re-activate a child binding for a condition or ternary expression
        Specified by:
        activate in interface IBinding
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Compares same property defined in different types in the same type hierarchy as equal. Could be made more efficient.
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(IBeanMapper other)
        Specified by:
        compareTo in interface java.lang.Comparable<IBeanMapper>