Package ca.phon.query.db.xml
Class XMLQuery
java.lang.Object
ca.phon.query.db.xml.XMLQuery
- All Implemented Interfaces:
Query
,JAXBWrapper<QueryType>
- Direct Known Subclasses:
XMLLazyQuery
XML-based implementation of
Query
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the comments for this query.getDate()
Gets the date of creation of this query.getName()
Gets the name of this query.Gets the script for this query.getTags()
Gets the tags for this query.getUUID()
Gets the UUID used to uniquely identify this query.Obtain the JAXB query object associated with this query.boolean
Gets whether or not this query is starred.void
setComments
(String comments) Sets comments for this queryvoid
setDate
(LocalDateTime date) Sets the date of creation of this query.void
Sets the name of this query.void
Sets the script for this query.void
setStarred
(boolean starred) Sets the starred status of this query.void
Sets the UUID used to uniquely identify this query.
-
Field Details
-
query
JAXB object
-
-
Constructor Details
-
XMLQuery
Construct an XMLQuery from a JAXB query object.- Parameters:
query
-
-
-
Method Details
-
getXMLObject
Obtain the JAXB query object associated with this query.- Specified by:
getXMLObject
in interfaceJAXBWrapper<QueryType>
- Returns:
-
getName
Description copied from interface:Query
Gets the name of this query. -
setName
Description copied from interface:Query
Sets the name of this query. -
getUUID
Description copied from interface:Query
Gets the UUID used to uniquely identify this query. -
setUUID
Description copied from interface:Query
Sets the UUID used to uniquely identify this query. -
getDate
Description copied from interface:Query
Gets the date of creation of this query. -
setDate
Description copied from interface:Query
Sets the date of creation of this query. -
isStarred
public boolean isStarred()Description copied from interface:Query
Gets whether or not this query is starred. -
setStarred
public void setStarred(boolean starred) Description copied from interface:Query
Sets the starred status of this query.- Specified by:
setStarred
in interfaceQuery
- Parameters:
starred
- the starred state for this query
-
getScript
Description copied from interface:Query
Gets the script for this query. -
setScript
Description copied from interface:Query
Sets the script for this query. -
getTags
Description copied from interface:Query
Gets the tags for this query. -
getComments
Description copied from interface:Query
Gets the comments for this query.- Specified by:
getComments
in interfaceQuery
- Returns:
- the list of comments
-
setComments
Description copied from interface:Query
Sets comments for this query- Specified by:
setComments
in interfaceQuery
-