Class LiteralImpl
java.lang.Object
org.apache.jackrabbit.oak.query.ast.StaticOperandImpl
org.apache.jackrabbit.oak.query.ast.LiteralImpl
A literal of a certain data type, possibly "cast(..)" of a literal.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyValueconvertValueToType(PropertyValue v, PropertyValue targetType) @NotNull org.apache.jackrabbit.oak.query.ast.AstElementcopyOf()booleanprotected StringgetLocalPath(String path) Calculate the session local path (the path excluding the workspace name) if possible.inthashCode()protected StringnormalizePath(String path) Validate and normalize the path.protected StringnormalizePropertyName(String propertyName) Normalize the property name (including namespace remapping).protected Stringprotected static Stringprotected static StringvoidtoString()
-
Field Details
-
query
-
-
Constructor Details
-
LiteralImpl
-
-
Method Details
-
getLiteralValue
-
currentValue
- Specified by:
currentValuein classStaticOperandImpl
-
toString
-
equals
-
hashCode
public int hashCode() -
protect
-
quote
-
quoteJson
-
setQuery
-
normalizePropertyName
Normalize the property name (including namespace remapping). Asterisks are kept.- Parameters:
propertyName- the property name to normalize- Returns:
- the normalized (oak-) property name
-
normalizePath
Validate and normalize the path.- Parameters:
path- the path to validate- Returns:
- the validated and normalized path
-
convertValueToType
-
getLocalPath
Calculate the session local path (the path excluding the workspace name) if possible.- Parameters:
path- the absolute path- Returns:
- the session local path, or null if not within this workspace
-
copyOf
@NotNull public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()- Returns:
- a clone of self. Default implementation in
AstElementreturns same reference tothis.
-