public class QueryList extends Node implements Iterable<Query>
listeners, properties, prototype
Constructor and Description |
---|
QueryList()
Default constructor.
|
QueryList(Element prototype)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
The query model has a visitor
|
void |
addLast(Query query)
Added the query at the last query
|
void |
addQueryListListener(QueryListListener l) |
Query |
get(int index)
Get the query using the index
|
int |
getVersion()
Returns the current version number of the query list.
|
int |
indexOf(Query query)
Get the index of the query
|
void |
insert(Query q,
int index)
Insert query into the query list
|
boolean |
isBlank()
Checks whether the query model is blank (empty or contains white space).
|
boolean |
isEmpty()
There isn't query in the model.
|
Iterator<Query> |
iterator() |
void |
remove(int index)
Remove the query
|
void |
remove(Query query)
Remove the query from the query list
|
void |
removeAll()
Remove all queries
|
void |
removeQueryListListener(QueryListListener l) |
int |
size()
Get the number of the query list
|
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public QueryList(Element prototype)
public QueryList()
public void addQueryListListener(QueryListListener l)
public void removeQueryListListener(QueryListListener l)
public boolean isEmpty()
public void addLast(Query query)
query
- - The new querypublic void removeAll()
public Query get(int index)
index
- public void insert(Query q, int index)
q
- - The queryindex
- - The insert positionpublic void remove(Query query)
query
- - The querypublic void remove(int index)
index
- - Index to remove the querypublic int indexOf(Query query)
query
- - The querypublic int size()
public int getVersion()
public boolean isBlank()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.