Package com.uppaal.model.core2
Class SetQueryCommand
- java.lang.Object
-
- com.uppaal.model.core2.AbstractCommand
-
- com.uppaal.model.core2.SetQueryCommand
-
- All Implemented Interfaces:
Command
public class SetQueryCommand extends AbstractCommand
-
-
Field Summary
-
Fields inherited from class com.uppaal.model.core2.AbstractCommand
version
-
-
Constructor Summary
Constructors Constructor Description SetQueryCommand(Query query, java.lang.String oldFormula, java.lang.String oldComment, java.lang.String newFormula, java.lang.String newComment)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()ElementgetModifiedElement()QuerygetQueryProperty()voidsetText(java.lang.String newFormula, java.lang.String newComment)Set the new query property and comment textvoidundo()-
Methods inherited from class com.uppaal.model.core2.AbstractCommand
getVersion, setVersion
-
-
-
-
Constructor Detail
-
SetQueryCommand
public SetQueryCommand(Query query, java.lang.String oldFormula, java.lang.String oldComment, java.lang.String newFormula, java.lang.String newComment)
Constructor- Parameters:
query- - The query objectoldFormula- - The old query formulaoldComment- - The old query commentnewFormula- - The new query formulanewComment- - The new query comment
-
-
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.
-
getQueryProperty
public Query getQueryProperty()
-
setText
public void setText(java.lang.String newFormula, java.lang.String newComment)Set the new query property and comment text- Parameters:
newFormula- - The new query formulanewComment- - The new query comment
-
-