public class Query extends Node
Modifier and Type | Field and Description |
---|---|
static int |
MAYBE_NOT_OK |
static int |
MAYBE_OK |
static int |
NOT_OKAY |
static int |
OKAY |
static int |
UNCHECKED |
listeners, properties, prototype
Constructor and Description |
---|
Query()
Constructor
|
Query(String formula,
String comment)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Query property has a visitor
|
void |
addQueryListener(QueryListener l) |
String |
getComment()
Get the comment of the query
|
QueryData |
getData() |
String |
getFormula()
Get the query property
|
String |
getShortFormula()
Get the short property
|
int |
getStatus()
Get the status of the query
|
String |
getStatusString()
Get the status string
|
void |
removeQueryListener(QueryListener l) |
void |
setComment(String comment) |
void |
setFormula(String formula) |
void |
setFormulaAndComment(String formula,
String comment)
Set the comment and query property.
|
void |
setStatus(int i)
Set the status
|
void |
setStatusString(String str)
Set the status string
|
clone, getFirst, getLast, getNext, getPrevious, insert, move, remove, setPrototype
acceptSafe, addListener, getColor, getCommandManager, getDocument, getLocalProperty, getParent, getProperties, getProperty, getPropertyValue, getPrototype, getPrototypeFromParent, getTemplate, getX, getY, hasFlag, importInto, isPropertyLocal, removeListener, setCommandManager, setProperties, setProperty, setPropertyFromPath
public static final int OKAY
public static final int NOT_OKAY
public static final int MAYBE_OK
public static final int UNCHECKED
public static final int MAYBE_NOT_OK
public Query(String formula, String comment)
formula
- - The formula stringcomment
- - The comment stringpublic Query()
public void addQueryListener(QueryListener l)
public void removeQueryListener(QueryListener l)
public String getFormula()
public String getComment()
public void setFormula(String formula)
public void setComment(String comment)
public void setFormulaAndComment(String formula, String comment)
comment
- - The comment stringqueryProperty
- - The comment and property stringpublic void setStatus(int i)
i
- - The status valuepublic int getStatus()
public void setStatusString(String str)
str
- - The status stringpublic String getStatusString()
public String getShortFormula()
public QueryData getData()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.