Interface ReferenceConstraintsContext

    • Method Detail

      • getContextNode

        @NotNull
        SNode getContextNode()
        Returns:
        closest not-null ancestor of the reference
      • getContainmentLink

        @Nullable
        SContainmentLink getContainmentLink()
        Returns:
        containment link between context node and it's child, or null if context node is a node with the reference
      • getLinkTargetConcept

        @NotNull
        SAbstractConcept getLinkTargetConcept()
        Returns:
        concrete target concept of the reference
      • getPosition

        int getPosition()
        Returns:
        position in containment link
      • getReferenceNode

        @Nullable
        SNode getReferenceNode()
        Returns:
        node that contains the reference
      • isExists

        boolean isExists()
        Deprecated.
        use context.getReferenceNode().getReference(link) != null instead
        Returns:
        true if the reference exists
      • getModel

        @Deprecated
        SModel getModel()
        Deprecated.
        use context.getContextNode().getModel() instead
        Returns:
        context model
      • getEnclosingNode

        @Deprecated
        SNode getEnclosingNode()
        Deprecated.
        equals to getReferenceNode() != null ? getReferenceNode().getParent() : getContextNode()