Class AppendQueriesCommand

  • All Implemented Interfaces:
    Command

    public class AppendQueriesCommand
    extends AbstractCommand
    A transaction command for inserting queries. The transaction supports optionally setting the query, repeatedly.
    • Field Detail

      • queryList

        protected QueryList queryList
        The query list
      • newQueryList

        protected QueryList newQueryList
    • Constructor Detail

      • AppendQueriesCommand

        public AppendQueriesCommand​(QueryList queryList,
                                    QueryList newQueryList)
        Append the imported queries into the model xml file
        Parameters:
        queryList - - The old queries
        newQueryList - - The imported queries
    • Method Detail

      • execute

        public void execute()
      • undo

        public void undo()
      • getModifiedElement

        public Element getModifiedElement()
        Returns:
        the modified element or its closest relative (sibling or parent) if the element is not displayed.
      • getIntervalStart

        public int getIntervalStart()
      • getIntervalEnd

        public int getIntervalEnd()