public class SearchCriteria
extends java.lang.Object
DTO (Data Transfer Object) which contains all the search criteria input by
the user. It is constructed by the GUI layer class to pass the search
criteria.
There are three categories of criteria in this class:
1. Some attributes information of the Ptolemy model that the user wants to
search on.
2. The XQuery command to be executed directly in the XML database for
searching.
3. The pattern to be matched to search the model.
Constructor and Description |
---|
SearchCriteria() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Attribute> |
getAttributes()
Get the attributes criteria from the search criteria.
|
DBGraphSearchCriteria |
getDBGraphSearchCriteria()
Get the graph search criteria from the search criteria.
|
java.lang.String |
getModelName()
Get the name of the model from the search criteria.
|
java.lang.String |
getPatternMoML()
Get the MoML of the graph pattern search criteria.
|
java.lang.String |
getSearchCommand()
Get the search command criteria from the search criteria.
|
void |
setAttributes(java.util.ArrayList<Attribute> attributes)
Set the attribute criteria for the search criteria.
|
void |
setDBGraphSearchCriteria(DBGraphSearchCriteria dbGraphSearchCriteria)
Set the graph search criteria for the search criteria.
|
void |
setModelName(java.lang.String modelName)
Set the name of the model for the search criteria.
|
void |
setPatternMoML(java.lang.String patternMoML)
Set the MoML for the graph pattern search criteria.
|
void |
setSearchCommand(java.lang.String searchCommand)
Set the XQuery search command for the search criteria.
|
public java.util.ArrayList<Attribute> getAttributes()
setAttributes(java.util.ArrayList<ptolemy.kernel.util.Attribute>)
public DBGraphSearchCriteria getDBGraphSearchCriteria()
setDBGraphSearchCriteria(ptdb.common.dto.DBGraphSearchCriteria)
public java.lang.String getModelName()
setModelName(java.lang.String)
public java.lang.String getPatternMoML()
setPatternMoML(String)
public java.lang.String getSearchCommand()
setSearchCommand(java.lang.String)
public void setAttributes(java.util.ArrayList<Attribute> attributes)
attributes
- The attributes input by the user to set in the
search criteria.getAttributes()
public void setDBGraphSearchCriteria(DBGraphSearchCriteria dbGraphSearchCriteria)
dbGraphSearchCriteria
- The graph search criteria input by the user
to set in the search criteria.getDBGraphSearchCriteria()
public void setModelName(java.lang.String modelName)
modelName
- The name of the model to be set in the search criteria.getModelName()
public void setPatternMoML(java.lang.String patternMoML)
patternMoML
- The MoMl of the pattern to be set in the search
criteria.getPatternMoML()
public void setSearchCommand(java.lang.String searchCommand)
searchCommand
- The XQuery search command to set in the search
criteria.getSearchCommand()