Class MetadataExpression
- java.lang.Object
 - 
- org.ametys.plugins.repository.query.expression.MetadataExpression
 
 
- 
- All Implemented Interfaces:
 Expression
public class MetadataExpression extends Object implements Expression
Constructs anExpressiontesting 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_metadataprivate String_pathprivate 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:ExpressionBuild the expression.- Specified by:
 buildin interfaceExpression- Returns:
 - The XPath view of the expression.
 
 
 - 
 
 -