Package com.uppaal.model.core2
Class Query
- java.lang.Object
-
- com.uppaal.model.core2.Element
-
- com.uppaal.model.core2.Node
-
- com.uppaal.model.core2.Query
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Query extends Node
The query class- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Query property has a visitorvoidaddQueryListener(QueryListener l)java.lang.StringgetComment()Get the comment of the queryjava.lang.StringgetFormula()Get the query propertyQueryResultgetResult()Get the status of the queryjava.lang.StringgetShortFormula()Get the short property without line breaksvoidremoveQueryListener(QueryListener l)voidsetComment(java.lang.String comment)voidsetFormula(java.lang.String formula)voidsetFormulaAndComment(java.lang.String formula, java.lang.String comment)Set the comment and query property.voidsetResult(QueryResult r)Set the resultjava.lang.StringtoString()-
Methods inherited from class com.uppaal.model.core2.Node
clone, getFirst, getLast, getNext, getPrevious, getXPathTag, insert, move, remove, setPrototype
-
Methods inherited from class com.uppaal.model.core2.Element
acceptSafe, addListener, getColor, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getPrototypeFromParent, getTemplate, getX, getXMLLabelKinds, getXPath, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setProperty, setPropertyFromPath
-
-
-
-
Method Detail
-
addQueryListener
public void addQueryListener(QueryListener l)
-
removeQueryListener
public void removeQueryListener(QueryListener l)
-
getFormula
public java.lang.String getFormula()
Get the query property- Returns:
- The property string
-
getComment
public java.lang.String getComment()
Get the comment of the query- Returns:
- The comment string
-
setFormula
public void setFormula(java.lang.String formula)
-
setComment
public void setComment(java.lang.String comment)
-
setFormulaAndComment
public void setFormulaAndComment(java.lang.String formula, java.lang.String comment)Set the comment and query property. Should be called for redo/undo.- Parameters:
formula- - the property formulacomment- - the user comment
-
setResult
public void setResult(QueryResult r)
Set the result- Parameters:
r- the result containing status, errors and messages.
-
getResult
public QueryResult getResult()
Get the status of the query- Returns:
- status - checked or not checked?
-
getShortFormula
public java.lang.String getShortFormula()
Get the short property without line breaks- Returns:
- short property
-
accept
public void accept(Visitor visitor) throws java.lang.Exception
Query property has a visitor
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-