Class MetadataExpression
- java.lang.Object
-
- org.ametys.plugins.repository.query.expression.MetadataExpression
-
- All Implemented Interfaces:
Expression
public class MetadataExpression extends Object implements Expression
Constructs anExpression
testing the existence of a metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
-
Field Summary
Fields Modifier and Type Field Description private String
_metadata
private String
_path
private boolean
_unversioned
-
Constructor Summary
Constructors Constructor Description MetadataExpression(String metadata)
Creates the comparison Expression.MetadataExpression(String metadata, boolean unversioned)
Creates the comparison Expression.
-
-
-
Field Detail
-
_unversioned
private boolean _unversioned
-
-
Constructor Detail
-
MetadataExpression
public MetadataExpression(String metadata)
Creates the comparison Expression.- Parameters:
metadata
- the metadata name
-
MetadataExpression
public MetadataExpression(String metadata, boolean unversioned)
Creates the comparison Expression.- Parameters:
metadata
- the metadata nameunversioned
- true if the metadata is unversioned, false otherwise.
-
-
Method Detail
-
build
public String build()
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-
-