Class MovementConstructorTreeItem


  • public class MovementConstructorTreeItem
    extends Object
    Class that is an element of the register and document tree.
    • Constructor Detail

      • MovementConstructorTreeItem

        public MovementConstructorTreeItem​(MovementConstructorTreeItem parentElement,
                                           String name,
                                           org.eclipse.swt.graphics.Image image,
                                           MovementConstructorTreeItem.Type type,
                                           org.eclipse.emf.ecore.EObject eObject)
        Сreates an element of the movements constructor tree , with type element
        Parameters:
        parentElement - - parent element in the tree, may be null
        name - - name of the element in the tree ,cannot be null
        image - - image of the element in the tree, cannot be null
        type - - type of element in the tree, cannot be null
        eObject - - TypeDescription or BasicFeature of the element in the tree, can be null
      • MovementConstructorTreeItem

        public MovementConstructorTreeItem​(MovementConstructorTreeItem parentElement,
                                           String name,
                                           org.eclipse.swt.graphics.Image image,
                                           MovementConstructorTreeItem.Type type)
        Сreates an element of the movements constructor tree , with type element
        Parameters:
        parentElement - - parent element in the tree, may be null
        name - - name of the element in the tree ,cannot be null
        image - - image of the element in the tree, cannot be null
        type - - type of element in the tree, cannot be null
    • Method Detail

      • setChildren

        public void setChildren​(Collection<MovementConstructorTreeItem> children)
        Sets children of the element
        Parameters:
        children - - child elements in the tree, cannot be null
      • getParent

        public MovementConstructorTreeItem getParent()
        Returns parent of this tree element
        Returns:
        parent of this tree element , may return null
      • getText

        public String getText()
        Returns name of element
        Returns:
        name of element, cannot return null
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Returns image of element
        Returns:
        image of element, cannot return null
      • addChild

        public void addChild​(MovementConstructorTreeItem treeItem)
        Add child in tree item
        Parameters:
        treeItem - - child of element, cannot be null
      • getValue

        public String getValue()
        Returns expression value
        Returns:
        string - value , cannot be null
      • setValue

        public void setValue​(String value)
        Sets expression value
        Parameters:
        value - expression value , cannot be null
      • setValidateResult

        public void setValidateResult​(String validateValue)
        Sets validate result message
        Parameters:
        validateValue - - validate result message,may be null
      • getValidateResult

        public String getValidateResult()
        Returns validate result
        Returns:
        validate result message,may be null
      • setIssueType

        public void setIssueType​(org.eclipse.xtext.diagnostics.Severity issue)
        Set issue type
        Parameters:
        issue - - issue type,may be null
      • getIssueType

        public org.eclipse.xtext.diagnostics.Severity getIssueType()
        Returns:
        the issue,may be null
      • setMatch

        public void setMatch​(boolean match)
        Set document section element match
        Parameters:
        match - - match - item has the same type as the value true or not false
      • isMatch

        public boolean isMatch()
        Returns document section element match
        Returns:
        - match - item has the same type as the value true or not false
      • getEObject

        public org.eclipse.emf.ecore.EObject getEObject()
        Returns field-type element e-object: TypeDescription for standard attribute, BasicFeature for md-attribute and etc or null for others.
        Returns:
        field-type element e-object, can be null
      • setAccountDrValue

        public void setAccountDrValue​(String accountDrValue)
        Sets account Dr value.
        Parameters:
        accountDrValue - the account Dr value, cannot be null
      • setAccountValue

        public void setAccountValue​(String accountValue,
                                    MovementConstructorTreeItem.Type type)
        Sets account value by type.
        Parameters:
        accountValue - the account value, cannot be null
        type - the account type, cannot be null
      • setAccountCrValue

        public void setAccountCrValue​(String accountCrValue)
        Sets account Cr value.
        Parameters:
        accountCrValue - the account Cr value, cannot be null
      • getAccountDrValue

        public String getAccountDrValue()
        Gets account Dt value.
        Parameters:
        the - account Dt value, cannot be null
      • getAccountCrValue

        public String getAccountCrValue()
        Gets account Cr value.
        Parameters:
        the - account Cr value, cannot be null