Class MetadataExpression

java.lang.Object
org.ametys.plugins.repository.query.expression.MetadataExpression
All Implemented Interfaces:
Expression

public class MetadataExpression extends Object implements Expression
Constructs an Expression testing the existence of a metadata.
  • Constructor Details

    • MetadataExpression

      public MetadataExpression(String metadata)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
    • MetadataExpression

      public MetadataExpression(String metadata, ExpressionContext context)
      Creates the comparison Expression.
      Parameters:
      metadata - the metadata name
      context - the context of the expression
  • Method Details

    • build

      public String build()
      Description copied from interface: Expression
      Build the expression.
      Specified by:
      build in interface Expression
      Returns:
      The XPath view of the expression.