Class ChenEerDiagram

    • Method Detail

      • pushOwner

        public void pushOwner​(Entity group)
        Pushes the owner of the following attributes.
        Parameters:
        group - the entity that owns the following attributes
        See Also:
        peekOwner()
      • popOwner

        public boolean popOwner()
        Pops an attribute owner from the stack. See also peekOwner().
        Returns:
        true if an owner was popped, false if the stack was empty
        See Also:
        peekOwner()
      • peekOwner

        public Entity peekOwner()
        Returns the owner of the current attribute.

        This is used to link attributes based on their lexical position (how they appear in sources) without nesting the entities (like how packages are done). It is for this reason that we can't use CucaDiagram.getCurrentGroup, as that method nests the entities.

        Returns:
        the owner of the current attribute, or null if there is no owner