public class AdvancedSearchQueryGroup
extends java.lang.Object
Constructor and Description |
---|
AdvancedSearchQueryGroup(java.lang.String operator,
java.lang.String indent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addQueryGroup(AdvancedSearchQueryGroup queryGroup)
Adds a AdvancedSearchQueryGroup to this AdvancedSearchQueryGroup's list of
querygroups.
|
void |
addQueryTerm(AdvancedSearchQueryTerm queryTerm)
Adds a AdvancedSearchQueryTerm to this AdvancedSearchQueryGroup's list of
queryterms.
|
void |
setIncludeOuterQueryGroup(boolean b)
Sets the boolean value of includeOuterQueryGroup.
|
java.lang.String |
toString()
Creates the XML string that represents this AdvancedSearchQueryGroup,
including the querygroups and queryterms that are descendants of this
querygroup.
|
public AdvancedSearchQueryGroup(java.lang.String operator, java.lang.String indent)
operator
- Must be either "INTERSECT" or "UNION"indent
- A string of spaces for indenting the xml outputpublic void addQueryGroup(AdvancedSearchQueryGroup queryGroup)
queryGroup
- The AdvancedSearchQueryGroup object to be added to
the list.public void addQueryTerm(AdvancedSearchQueryTerm queryTerm)
queryTerm
- The AdvancedSearchQueryTerm object to be added to the
list.public void setIncludeOuterQueryGroup(boolean b)
b
- When false, allows the outer QueryGroup to be stripped off,
resulting in a less nested SQL statement.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2020 Regents of the University of California. All Rights Reserved.