public class PropertyInexistenceImpl extends ConstraintImpl
For Jackrabbit 2.x compatibility: if the property is relative (as in "child/propertyName"), then this requires that the given child node exists.
Constructor and Description |
---|
PropertyInexistenceImpl(SelectorImpl selector,
String selectorName,
String propertyName) |
PropertyInexistenceImpl(String selectorName,
String propertyName) |
Modifier and Type | Method and Description |
---|---|
void |
bindSelector(SourceImpl source) |
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
boolean |
equals(Object obj) |
boolean |
evaluate()
Evaluate the result using the currently set values.
|
protected String |
getLocalPath(String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
Set<PropertyExistenceImpl> |
getPropertyExistenceConditions()
Get the set of property existence conditions that can be derived for this
condition.
|
Set<SelectorImpl> |
getSelectors()
Get the set of selectors for the given condition.
|
int |
hashCode() |
protected String |
normalizePath(String path)
Validate and normalize the path.
|
protected String |
normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping).
|
protected String |
protect(Object expression) |
protected String |
quote(String pathOrName) |
protected String |
quoteJson(String string) |
void |
restrict(FilterImpl f)
Apply the condition to the filter, further restricting the filter if
possible.
|
void |
restrictPushDown(SelectorImpl s)
Push as much of the condition down to this selector, further restricting
the selector condition if possible.
|
void |
setQuery(QueryImpl query) |
String |
toString() |
containsUnfilteredFullTextCondition, convertToUnion, evaluateStop, getFullTextConstraint, requiresFullTextIndex, simplify
protected QueryImpl query
public PropertyInexistenceImpl(SelectorImpl selector, String selectorName, String propertyName)
public boolean evaluate()
ConstraintImpl
evaluate
in class ConstraintImpl
public Set<PropertyExistenceImpl> getPropertyExistenceConditions()
ConstraintImpl
getPropertyExistenceConditions
in class ConstraintImpl
public Set<SelectorImpl> getSelectors()
ConstraintImpl
getSelectors
in class ConstraintImpl
public void bindSelector(SourceImpl source)
public void restrict(FilterImpl f)
ConstraintImpl
restrict
in class ConstraintImpl
f
- the filterpublic void restrictPushDown(SelectorImpl s)
ConstraintImpl
restrictPushDown
in class ConstraintImpl
s
- the selectorpublic int hashCode()
hashCode
in class ConstraintImpl
public boolean equals(Object obj)
equals
in class ConstraintImpl
public org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.public void setQuery(QueryImpl query)
protected String normalizePropertyName(String propertyName)
propertyName
- the property name to normalizeprotected String normalizePath(String path)
path
- the path to validateprotected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.