Class TrackerNodeImpl

  • All Implemented Interfaces:
    java.io.Serializable, TrackerNode

    public class TrackerNodeImpl
    extends java.lang.Object
    implements TrackerNode, java.io.Serializable
    Since:
    6.0.0
    Author:
    henrichen
    See Also:
    Serialized Form
    • Constructor Detail

      • TrackerNodeImpl

        public TrackerNodeImpl​(java.lang.Object property)
    • Method Detail

      • getDependent

        public TrackerNode getDependent​(java.lang.Object property)
        Description copied from interface: TrackerNode
        Returns the associated TrackerNode of the associated field script of this tracker node.
        Specified by:
        getDependent in interface TrackerNode
        Parameters:
        property - field script to get the dependent
        Returns:
        the linked TrackerNode
      • getDependents

        public java.util.Set<TrackerNode> getDependents​(java.lang.Object property)
        Description copied from interface: TrackerNode
        Returns all associated TrackerNodes of the associated field script of this tracker node.
        Specified by:
        getDependents in interface TrackerNode
        Parameters:
        property - field script to get the dependent
        Returns:
        all linked TrackerNodes
      • getDependents

        public java.util.Set<TrackerNode> getDependents()
        Description copied from interface: TrackerNode
        Returns all dependent nodes of this node.
        Specified by:
        getDependents in interface TrackerNode
        Returns:
        all precedent nodes of this node.
      • addDependent

        public void addDependent​(java.lang.Object script,
                                 TrackerNode dependent)
        Description copied from interface: TrackerNode
        Add a dependent node of the field script.
        Specified by:
        addDependent in interface TrackerNode
        Parameters:
        script - the field script to link this track node to its dependent nodes.
        dependent - the TrackerNode to be added
      • tieProperty

        public void tieProperty​(java.lang.Object property,
                                TrackerNode trackerNode)
        Description copied from interface: TrackerNode
        tie property with tracker node of this node.
        Specified by:
        tieProperty in interface TrackerNode
      • removeDependent

        public TrackerNode removeDependent​(java.lang.Object script)
        Description copied from interface: TrackerNode
        Remove a dependent node of this node per the specified field script.
        Specified by:
        removeDependent in interface TrackerNode
        Parameters:
        script - field script that link to the to be removed dependent tracker node.
        Returns:
        the removed TrackerNode
      • addBinding

        public void addBinding​(Binding binding)
        Description copied from interface: TrackerNode
        add associated Binding with this node
        Specified by:
        addBinding in interface TrackerNode
      • getBindings

        public java.util.Set<Binding> getBindings()
        Description copied from interface: TrackerNode
        Returns all associated Bindings.
        Specified by:
        getBindings in interface TrackerNode
        Returns:
        associated Bindings.
      • getLoadBindings

        public java.util.Set<LoadBinding> getLoadBindings()
        Description copied from interface: TrackerNode
        Returns associated LoadBindings except ReferenceBindings.
        Specified by:
        getLoadBindings in interface TrackerNode
        Returns:
        associated LoadBindings except ReferenceBindings.
      • getDirectDependents

        public java.util.Set<TrackerNode> getDirectDependents()
        Description copied from interface: TrackerNode
        Returns all direct dependent nodes of this node.
        Specified by:
        getDirectDependents in interface TrackerNode
        Returns:
        all direct dependent nodes of this node.
      • getAssociates

        public java.util.Set<TrackerNode> getAssociates()
        Description copied from interface: TrackerNode
        Returns all associate nodes of this node.
        Specified by:
        getAssociates in interface TrackerNode
        Returns:
        all associate nodes of this node.
      • getBean

        public java.lang.Object getBean()
        Description copied from interface: TrackerNode
        Returns associated bean of this TrackerNode.
        Specified by:
        getBean in interface TrackerNode
        Returns:
        associated bean of this TrackerNode.
      • setBean

        public void setBean​(java.lang.Object bean)
        Description copied from interface: TrackerNode
        Sets associated bean of this TrackerNode.
        Specified by:
        setBean in interface TrackerNode
        Parameters:
        bean - the associated bean.
      • getFieldScript

        public java.lang.Object getFieldScript()
        Description copied from interface: TrackerNode
        Returns associated field script of this TrackerNode.
        Specified by:
        getFieldScript in interface TrackerNode
        Returns:
        associated field script of this TrackerNode.
      • getPropNameMapping

        public java.util.Map<java.lang.Object,​?> getPropNameMapping()
        Description copied from interface: TrackerNode
        get property, tracker node mapping map
        Specified by:
        getPropNameMapping in interface TrackerNode
      • toString

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

        public boolean isPropNameNodeMapped​(TrackerNode trackerNode)
        Description copied from interface: TrackerNode
        Internal used only
        Specified by:
        isPropNameNodeMapped in interface TrackerNode
        Returns:
        boolean is the tracker node with specific propName in bracket mapped or not