public abstract static class QueryOptions.BaseConstraintItem extends Object
Constructor and Description |
---|
BaseConstraintItem()
Construct a new BaseConstraintItem
|
Modifier and Type | Method and Description |
---|---|
void |
addTermOption(String termOption)
Adds a term option to this data source.
|
QName |
getAttribute()
Gets the XML QName referring to an attribute.
|
QName |
getElement()
Gets the XML QName referring to an element.
|
String |
getFieldName()
Gets the name of a field that backs this constraint.
|
QueryOptions.FragmentScope |
getFragmentScope()
Gets the FragmenScope of this constraint source.
|
String |
getJsonKeyName()
Gets the name of a json key that backs this constraint.
|
String |
getPath()
Gets the string representing a path index data source.
|
QueryOptions.PathIndex |
getPathIndex()
Gets the path index object that backs this data source.
|
NamespaceContext |
getPathNamespaceBindings()
Gets the namespace context in scope for a path index configuration.
|
List<String> |
getTermOptions()
Gets the term options for this constraint source.
|
Double |
getWeight()
Gets the relative weight assigned to this constraint source.
|
void |
setAttribute(QueryOptions.MarkLogicQName attribute)
Sets an attribute QName to partially find an element-attribute index.
|
void |
setElement(QueryOptions.MarkLogicQName element)
Sets an element QName to reference an element.
|
void |
setField(QueryOptions.Field field)
Sets a field to back this constraint source.
|
void |
setFragmentScope(QueryOptions.FragmentScope fragmentScope)
Sets a fragment scope for this constraint source.
|
void |
setJsonKey(QueryOptions.JsonKey jsonKey)
Sets a json key index specification for this constraint source.
|
void |
setPath(QueryOptions.PathIndex pathIndex)
Sets a path index specification for this constraint source.
|
void |
setTermOptions(List<String> termOptions)
Sets the term options for this constraint source.
|
void |
setWeight(Double weight)
Sets the relative weight for this constraint source.
|
public BaseConstraintItem()
public void addTermOption(String termOption)
termOption
- A term option.public QName getAttribute()
public QName getElement()
public String getPath()
public NamespaceContext getPathNamespaceBindings()
public QueryOptions.PathIndex getPathIndex()
public String getFieldName()
public String getJsonKeyName()
public QueryOptions.FragmentScope getFragmentScope()
public List<String> getTermOptions()
public Double getWeight()
public void setAttribute(QueryOptions.MarkLogicQName attribute)
attribute
- The attribute QName. To be meaningful needs setElement to be called as well.public void setElement(QueryOptions.MarkLogicQName element)
element
- The element QName.public void setField(QueryOptions.Field field)
field
- The field object.public void setPath(QueryOptions.PathIndex pathIndex)
pathIndex
- The path index specification.public void setJsonKey(QueryOptions.JsonKey jsonKey)
jsonKey
- The json key.public void setFragmentScope(QueryOptions.FragmentScope fragmentScope)
fragmentScope
- the fragment scope.public void setTermOptions(List<String> termOptions)
termOptions
- A list of term options.public void setWeight(Double weight)
weight
- The weight.Copyright © 2013-2016 MarkLogic Corporation.